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-September/149217.html below:

[Python-Dev] PEP 549: Instance Properties (aka: module properties)

[Python-Dev] PEP 549: Instance Properties (aka: module properties) [Python-Dev] PEP 549: Instance Properties (aka: module properties)Ivan Levkivskyi levkivskyi at gmail.com
Wed Sep 6 12:15:58 EDT 2017
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

--
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170906/ca59c935/attachment.html>
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