No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I've thought about getting into test-driven development myself, but one thing I don't quite understand yet is what happens if I make a design mistake, like create a class and later on realize that it should be removed altogether. Removing it would mean all the tests I've written for that … |
|
Hi, I'm having trouble removing objects from a list. It seems that when I remove single objects in a loop, the loop kind of skips elements in the list, not continuing from the point where the last removal occurred. I want to remove only certain elements from a list, and … |
|
I have encountered a problem with variables which I have defined in a module and then manipulating them from other modules. I have something like this in moduleA.py: [code] gVar = None def getVar(): return gVar def setVar(val): gVar = val [/code] Then, in moduleB.py I have this: [code] import … |
|
Hi, For some reason, every Python script I try to run in the Windows command prompt fails to run. I get this output for "python setup.py py2exe": [code] Traceback (most recent call last): File "setup.py", line 4, in ? import py2exe ImportError: No module named py2exe [/code] I've installed py2exe … |