On Thu, 14 Jun 2012 09:32:59 -0700 Benjamin Peterson <benja...@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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com