3 ms·
You realize that you're looking at a 399 line script, right? A couple of globals are perfectly reasonable at that scale. Also note that checking for "x is not
by humbledrone 15y ago
You realize that you're looking at a 399 line script, right? A couple of globals are perfectly reasonable at that scale.
Also note that checking for "x is not None" is the recommended, idiomatic Python style (see http://www.python.org/dev/peps/pep-0008/ http://www.python.org/dev/peps/pep-0008/ for reference).
More importantly, the script works, and was apparently used by quite a few people. Rewriting something that is already known to work, just because you don't like its style, is generally a bad idea.
- dev360 15y agoThis code is a complete abomination, why would you stick your neck out and defend it? What igorgue is saying is, even if somebody gave me this code, I wouldn't take it, and I concur.