On Tue, Mar 15, 2011 at 9:48 AM, R. David Murray <[email protected]> wrote: > But directly calling a __xxx__ method in Python is a very > unusual thing to do. It would be extremely odd to have that > be the expected way to call a method on a class.
Can't namedtuple be improved to support the named fields _and_ have as_dict() and replace() without leading underscores ? cheers James -- -- James Mills -- -- "Problems are solved by method" _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
