Am Mittwoch 11 August 2010, 21:52:29 schrieb Jason Tackaberry:
> Or possibly I could keep __getattr__ and implement __setattr__,
> converting '_' to '-' so that there's symmetry with __getattr__, which
> would keep the same API as now but prevents ever being able to handle
> attributes that actually, truly use underscores (e.g. mplayer_options
> instead of mplayer-options).

That does not sound like zen-compatible python to me. :-)
("Explicit is better than implicit")

FWIW, the __setitem__ looks very good to me.

Have a nice day,
  Hans

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to