wim

Chicago, IL

wimglenn.com

Age: 34

Hi from Chicago! 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*

aus flappy flag

5h
comment python requests to urllib2
I can't see anything obviously wrong. I assume you know you have to call result.read() for the urllib2 version ...
6h
comment Escaping backslash in Python requests arguments
That's correct though. The slash should be url encoded.
11h
awarded Great Question
2d
comment How to lowercase the month name with strftime
I'm not sure what's offensive about that. Yes I changed it back because excessive political-correctness annoys me
2d
answered Python - Display Every Permutation of a List or Set of Strings
2d
revised Python - Display Every Permutation of a List or Set of Strings
added 1 character in body
2d
revised How to lowercase the month name with strftime
deleted 1 character in body
2d
asked How to lowercase the month name with strftime
2d
comment How to install a module for all users with pip on linux?
Now the behaviour you want is already how pip should already work by default. So something is mucked around with the environments somehow. Please provide the outputs of python -c "import sys; print(sys.path)" and sudo python -c "import sys; print(sys.path)".
2d
revised How to install a module for all users with pip on linux?
deleted 2 characters in body
2d
revised How to install a module for all users with pip on linux?
edited body
2d
revised How to install a module for all users with pip on linux?
added 95 characters in body
2d
comment How to install a module for all users with pip on linux?
No it's not. For example, if you deploy apps in docker containers you want to install to system directly. You have no use virtualenv because isolation is provided by cgroups, and you don't have to worry about system packages changing because you deploy the containers as immutable. This is a perfectly valid use of pip without using virtualenv.
2d
revised How to install a module for all users with pip on linux?
added 86 characters in body
2d
revised How to install a module for all users with pip on linux?
edited title
2d
comment How to install a module for all users with pip on linux?
@wRAR pip and virtualenv are for entirely different tasks. It's true that many people use pip and virtualenv in combination, but I don't think it's right to say that's the correct use.
2d
revised How to install a module for all users with pip on linux?
added 100 characters in body
2d
answered How to install a module for all users with pip on linux?
2d
comment Sorting list of lists by two columns
I made an edit. Try the updated version
2d
revised Sorting list of lists by two columns
deleted 42 characters in body
1 2 3 4 5