wim

Chicago, IL

wimglenn.com

Age: 33

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

1d
awarded Autobiographer
1d
comment How to pass parameters to error handler?
In this case e is the exception instance
2d
comment How many exceptions are possible when reading a json in pyhton/django?
This is a bad habit called "pokemon exception handling". Only catch the exceptions you intend to handle!
Feb
9
awarded Notable Question
Feb
6
awarded Notable Question
Feb
6
comment How do I find out the file that is the beginning of a Python program?
look in sys.argv
Feb
5
accepted Create an instance from serializer without persisting it to db
Feb
5
awarded Good Question
Feb
4
revised Trying to print all powers of 3 less than 1000 in 2 lines of code
added 290 characters in body
Feb
4
answered Trying to print all powers of 3 less than 1000 in 2 lines of code
Feb
3
comment How can I protect myself from false accusations when our company practices password escrow?
blank piece of paper in the envelope
Feb
2
revised Passing arguments to python unittests tests functions
added 90 characters in body
Feb
2
answered Passing arguments to python unittests tests functions
Feb
2
comment Python " for...in" nested loop doesn't work as expected
Hi Jane, you'll have to show us what file1 and file2 are.
Feb
2
comment How to extract variable name and value from string in python
exec is the builtin for dynamic execution of code, there's not much to say other than what's already documented.
Feb
2
revised How to extract variable name and value from string in python
added 119 characters in body
Feb
2
answered How to extract variable name and value from string in python
Feb
1
comment How can you get the order back after using argsort?
why not just make a copy?
Jan
29
comment Python Distribute List of Tuple Items by Matching Recursively
Possible duplicate of Find sets of disjoint sets from a list of tuples or sets in python
Jan
29
comment Create an instance from serializer without persisting it to db
The feature analogous to Model(**data) and Factory.build, i.e. to create a model instance without actually saving it. I'm aware that the default behaviour is to save (as mentioned in the question), and I'm also aware of how to write my own code to make a serializer which does not save (this is also mentioned in the question). So the answers below do not "explain" anything new to me. The information that is missing is whether this is possible in rest framework without defining a custom method. Is that clear enough for you?
1 2 3 4 5