Re: [Twisted-Python] Private positional argument API anti-pattern

2013-06-21 Thread Glyph
On Jun 21, 2013, at 8:05 AM, exar...@twistedmatrix.com wrote: > Hello, > > I've noticed there are a couple public APIs in Twisted now that accept a > "private" positional argument. I use scare quotes because I don't see how > it's actually possible to make a positional argument private. > >

[Twisted-Python] Private positional argument API anti-pattern

2013-06-21 Thread exarkun
Hello, I've noticed there are a couple public APIs in Twisted now that accept a "private" positional argument. I use scare quotes because I don't see how it's actually possible to make a positional argument private. Given a function defined like this: def foo(_bar=None): ... Ther