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
comment "whl" or "wheel" tag for Python package format?
talk about reinventing the wheel! you missed one python whl question though
1d
comment "whl" or "wheel" tag for Python package format?
wheel used to have a few hundred questions but most of them weren't about .whl files, it was a hodge-podge of stuff about colour wheels, mouse wheels, whatever other random stuff. a while ago I moved the python questions over to whl to at least group them in a sensible way. Martijn's python-wheel is a better name and would have been a better choice in hindsight
2d
answered Calling lambda functions with iteration over a numpy array of shape `(n,)`
Dec
16
comment Python large list error
​-1 can not reproduce
Dec
14
accepted Python __index__ special method
Dec
13
awarded Popular Question
Dec
12
asked Python __index__ special method
Dec
11
comment Why is the command 'sudo pip uninstall' not working?
try install with the wheel -> pip install https://pypi.python.org/packages/2.7/a/argparse/argparse-1.2.2-py2.py3-none-any.whl
Dec
10
revised Is it possible to get formal argument names/values as a dictionary?
added 4 characters in body
Dec
9
accepted Why doesn't my idea work in python2?
Dec
9
answered python: combine two nested dictionaries with dictionaries as values of the top level keys
Dec
9
comment Using Python to start a daemon and then return control
you need to redirect stdout and/or stderr if you don't want the output to go to terminal. control is returned to the program regardless.
Dec
9
comment Using Python to start a daemon and then return control
you're mistaken, subprocess.Popen is not blocking
Dec
9
answered Checking if two list have the same elements in it, in the same order, but with other starting points in Python
Dec
9
comment Unable to cast int from b'0\n'
it's not b'0\n', it's an empty bytestring b''. int(b'0\n') works.
Dec
9
answered Pythonic way of getting all consecutive 2-tuples from list
Dec
8
comment can one get the name of the variable that a function is returning a value to automatically?
But it doesn't have to be assigned to anything
Dec
8
comment How can I create a matrix from three lists?
maybe you want a mapping like {(k1, k2): v for k1, k2, v in zip(x,y,z)}
Dec
8
comment if the type of instances is simply 'instance', how does Python know these are instances of the foo class?
Python is strongly typed and the interpreter keeps track of all variables types. Python lists don't care what type of objects are contained inside, they can be inhomogeneous.
Dec
8
comment Linebreak a string in Python sourcecode
I agree, just an fyi for any future readers
1 2 3 4 5