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/2017-July/148623.html below:

[Python-Dev] Impact of Namedtuple on startup time

[Python-Dev] Impact of Namedtuple on startup time [Python-Dev] Impact of Namedtuple on startup timeGreg Ewing greg.ewing at canterbury.ac.nz
Mon Jul 17 18:27:21 EDT 2017
Barry Warsaw wrote:
> namedtuple is great and clever, but it’s also a bit clunky.  It has a weird
> signature and requires a made up type name.

Maybe a metaclass could be used to make something
like this possible:


    class Foo(NamedTuple, fields = 'x,y,z'):
       ...

Then the name is explicit and you get to add methods
etc. if you want.

-- 
Greg
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