Re: Fun with function argument counts

2014-02-11 Thread Ethan Furman
On 02/11/2014 05:05 PM, Chris Angelico wrote: On Wed, Feb 12, 2014 at 11:34 AM, Travis Griggs wrote: 6) Who writes a function with 19 mandatory arguments anyway subprocess._execute_child() and distutils.cygwincompiler._execute_child() Hmm. Those are internal functions (leading underscore)

Re: Fun with function argument counts

2014-02-11 Thread Chris Angelico
On Wed, Feb 12, 2014 at 11:34 AM, Travis Griggs wrote: > 1) I did not want to try load all modules at once into my environment. I > suspect that would create problems. Using os.fork() to isolate the > load/analysis of each module was a handy way to deal with that. The trick of > using if pid: b

Fun with function argument counts

2014-02-11 Thread Travis Griggs
After the recent discussion about the classic error: if self.isFooBar: return 42 Among many thing, the OPs contention was that the ability to have this kind of error was a Bad Thing (tm). Which led to me asking about code smells and parameterless functions/methods. So I got curious. Semantic