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-December/151432.html below:

[Python-Dev] pep-0557 dataclasses top level module vs part of collections?

[Python-Dev] pep-0557 dataclasses top level module vs part of collections? [Python-Dev] pep-0557 dataclasses top level module vs part of collections?Eric Snow ericsnowcurrently at gmail.com
Thu Dec 21 21:32:38 EST 2017
On Thu, Dec 21, 2017 at 4:21 PM, Gregory P. Smith <greg at krypto.org> wrote:
> It seems a suggested use is "from dataclasses import dataclass"
>
> But people are already familiar with "from collections import namedtuple"
> which suggests to me that "from collections import dataclass" would be a
> more natural sounding API addition.

FWIW, I'd consider this a good time to add a new top-level
classtools/classutils module (a la functools).  There are plenty of
other things that would fit there that we've shoved into other places.

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