[Python-Dev] PEP 549: Instance Properties (aka: module properties)
Guido van Rossum
guido at python.org
Wed Sep 6 12:45:37 EDT 2017
More information about the Python-Dev mailing list
Wed Sep 6 12:45:37 EDT 2017
- Previous message (by thread): [Python-Dev] PEP 549: Instance Properties (aka: module properties)
- Next message (by thread): [Python-Dev] PEP 549: Instance Properties (aka: module properties)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Sep 6, 2017 at 9:15 AM, Ivan Levkivskyi <levkivskyi at gmail.com> wrote: > > On 6 September 2017 at 17:26, Guido van Rossum <guido at python.org> wrote: > >> >> Is there a real use case for @property? Otherwise, if we're going to mess >> with module's getattro, it makes more sense to add __getattr__, which would >> have made Nathaniel's use case somewhat simpler. (Except for the __dir__ >> thing -- what else might we need?) >> >> > One additional (IMO quite strong) argument in favor of module level > __getattr__ is that this is already used by PEP 484 for stub files and is > supported by mypy, see https://github.com/python/mypy/pull/3647 > So we're looking for a competing PEP here. Shouldn't be long, just summarize the discussion about use cases and generality here. -- --Guido van Rossum (python.org/~guido) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20170906/6a3f7291/attachment.html>
- Previous message (by thread): [Python-Dev] PEP 549: Instance Properties (aka: module properties)
- Next message (by thread): [Python-Dev] PEP 549: Instance Properties (aka: module properties)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list