Local variables initialization

Michal Kwiatkowski ruby at no.spam
Sun Feb 26 20:49:06 EST 2006


Alex Martelli wrote:
> But of course, then the method's body would have to use _.one rather
> than var_one, _.two rather than var_two, and _.empty_list rather than
> empty_list (what a strange name -- does it STAY empty throughout the
> method's execution?!).  To me this looks like a small price to pay, and

empty_list name was chosen only for sake of an example.

> the 'def method(_, self, ...)' signature a clear, strong indication that
> something weird, but not TOO weird, is going on. YMMV...

Thanks for your reply, I'll consider your suggestion.

mk
-- 
 . o .       >>  http://joker.linuxstuff.pl  <<
 . . o   It's easier to get forgiveness for being wrong
 o o o   than forgiveness for being right.



More information about the Python-list mailing list