A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-March/109284.html below:

[Python-Dev] pydoc for named tuples is missing methods

[Python-Dev] pydoc for named tuples is missing methods [Python-Dev] pydoc for named tuples is missing methodsJames Mills 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 ?

cheers
James

-- 
-- James Mills
--
-- "Problems are solved by method"
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4