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/2012-June/120247.html below:

[Python-Dev] PEP 362 Third Revision

[Python-Dev] PEP 362 Third Revision [Python-Dev] PEP 362 Third RevisionAntoine Pitrou solipsis at pitrou.net
Thu Jun 14 21:24:03 CEST 2012
On Thu, 14 Jun 2012 09:32:59 -0700
Benjamin Peterson <benjamin at python.org> wrote:
> >
> > How about adding 'kind' and keeping 'is_*' attributes,
> > but making them read-only dynamic properties, i.e.:
> >
> >   class Parameter:
> >       ...
> >
> >       @property
> >       def is_vararg(self):
> >           return self.kind == 'vararg'
> >
> >       ...
> >
> > ?
> 
> Seems a bit bloatly to me. (One way to do it.)

Agreed with Benjamin.
Also, the "is_*" attributes are misleading: it looks like they are
orthogonal but only one of them can be true at any time.

Regards

Antoine.


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