wim

London, United Kingdom

google.com

Age: 32

Hi from London, England! I hope my answers have been helpful for you. Python developer with interest in mathematics, music, robotics and computer vision.

project euler progress badger badger badger

‚Äč

[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
1d
answered Summation Puzzle instruction
2d
revised Why do we have to use the __dunder__ methods instead of operators when calling via super?
NameError
2d
asked Fuzzy matching dict keys
2d
asked Why do we have to use the __dunder__ methods instead of operators when calling via super?
2d
comment When should __method__ be called directly?
I don't think you should pass in self explicitly when calling the dunder method
Sep
18
asked Fast json in python with whitespace support?
Sep
18
revised Adding and combining values with dictionary comprehensions?
added 211 characters in body
Sep
18
answered Adding and combining values with dictionary comprehensions?
Sep
18
comment printing variables values in python. Is there any elegant formatting to do it?
The problem is that the objects themselves don't know what name[s] they are bound to. If you want something like that you have to use a namespace (i.e. dict).
Sep
18
awarded Popular Question
Sep
17
comment Treating iterable and not-iterable objects seamlessy
be careful if you deal with strings. they are iterable too (even 1 character strings)
Sep
17
comment Treating iterable and not-iterable objects seamlessy
no return in a lambda
Sep
16
comment Proper way to raise exception in python?
possible duplicate of Is there a difference between raising an exception and exception()
Sep
16
accepted How does python parse "x is y is z"?
Sep
16
accepted python mock - patching a method without obstructing implementation
Sep
16
comment How does python parse "x is y is z"?
@fwiw the other post (on the dupe) fully answers my question and has a link to the grammar. its certainly a dupe.
Sep
15
comment How does python parse "x is y is z"?
@user2357112 My logic was like this: I'm not sure if it will pair left or right side, but one of (False is None) is False or False is (None is False) should be True.
Sep
15
asked Should enum instances be compared by identity or equality?
Sep
15
asked How does python parse "x is y is z"?
Sep
15
awarded Nice Question
1 2 3 4 5