Style question: Nicknames for deeply nested objects
rantingrick
rantingrick at gmail.com
Sun Jan 30 16:13:20 EST 2011
On Jan 30, 12:53 pm, Stephen Hansen <me+list/pyt... at ixokai.io> wrote:
> On 1/30/11 10:35 AM, rantingrick wrote:
>
> > Well congratulations Stephen, you win the obfuscation prize of the
> > year!
>
> Yes,
>
> On 1/30/11 10:09 AM, rantingrick wrote:
>
> > Here is how a pythonic local block would look
>
> > with this as localvar:
> > localvar.do_something()
>
> verses
>
> with my(this) as localvar:
> localvar.do_something()
>
> Is dreadfully more, er, obfuscated.
Absolutely!
> I mean someone would have to know what the 'my' function does to
> understand what's going on!
Yes, and also how decorators word and generators work, and ...
> OH MY GOD. How can someone be expected to understand what a function does!
Yes, and also how decorators word and generators work, and ...
> Be serious! You can't expect that of them.
I don't. I don't expect anyone to write 10 lines of obfuscation code
when just two will suffice. Maybe you should join the perl group as
they would proud!
More information about the Python-list
mailing list