[Python-Dev] pydoc for named tuples is missing methods
prologic at shortcircuit.net.au
Tue Mar 15 01:44:07 CET 2011
On Tue, Mar 15, 2011 at 9:48 AM, R. David Murray <rdmurray at bitdance.com> 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 ?
-- James Mills
-- "Problems are solved by method"
More information about the Python-Dev