« first day (630 days earlier)      last day (1558 days later) » 

1:44 AM
0
Q: Invert dict of sets in Python

Trey HunnerWhat is the most Pythonic way to take a dict of lists and produce a new dict with the list items as keys and the previous dict's keys as list items. Here's a visual explanation: favorite_fruits = {"alice": {"apple", "orange"}, "bob": {"apple"}, "carol": {"orange"}} people_by_fruit = {"orange": ...

 
2:18 AM
Doesn't MyClass::new mean I am calling the constructor and it should return me an object of MyClass?
1 message moved from Java::chat (Fish and chips)
 
 
7 hours later…
9:41 AM
0
Q: Use option threadsafe in appengine

Luis Jhoham Venegas TobarTry with the option in threadsafe: False and fix errors whites and leave almost no longer triggers 500 but I intances in appengine Any idea what might affect me Thank you

What is the OP asking?
 
10:15 AM
Is this question too broad?
0
Q: Can language become so elegant, it turns into programming?

Brian CoyleFirst, I appreciate that few people have time to consider abstract ideas, which this question seems to involve. Before pressing the disgust button, please read. Bjame Stroustrup gave a talk on "ghastly" and elegant C++. Even I understood and learned much. His own code examples are clear, as are ...

 
10:26 AM
Not an answer?
0
A: Meteor test driven development

Philip BeadleIve successfully been using xolvio:cucumber and velocity to do my testing. Works really well and runs continuously so you can always see that your tests are passing.

 
6 messages moved from SO Close Vote Reviewers
 
 
8 hours later…
6:02 PM
0
Q: Google Code Jam - Qualification Round 2015 - Problem A. Standing Ovation

Vishwa IyerThis is my submission for the Standing Ovation Question: def numFriends(st): friends = 0; people_standing = int(st[0:1]); if len(st) <= 1: return 0; for j in range(1, len(st)): char = st[j:j+1]; if people_standing < j and int(char) != 0: friend...

 
6:19 PM
0
Q: Improving multiple assignment using an iterator function

jvdmOften I need to perform multiple assignment from a sequence (e.g. from the result of a split()) but with some semantics that are not available in the language: Assign N first elements and silently ignore the rest (like Perl's list assignment). >>> a, b = 'foo bar is here'.split() >>> a, b ('fo...

 
 
1 hour later…
7:22 PM
0
Q: Do you use a Python interactive shell while building programs?

A.SI have been using Python for scientific computing and visualizations so far. For that, I have been using the Spyder IDE which has an iPython shell inside. Now, I am about to use Python for web development and I have seen people use IDEs and editors such as Sublime Text, Pycharm and Vim for that ...

 
 
1 hour later…
8:24 PM
0
Q: Validate that the user's input is either X, Y, or Z

CrackersJust a note, I am a beginner coder and have been coding python for just less than a year, but I'm still needing help in things like this, so be nice :) In my code I want the user to be to input the class that they are in (either class x, y, or z), and be able to validate that they have ONLY inpu...

 

« first day (630 days earlier)      last day (1558 days later) »