On 11/23/06, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> On 11/23/06, Tony Lownds <[EMAIL PROTECTED]> wrote:
> > I have a working optional argument syntax implementation, I'm hoping
> > to get some direction on
> > the implementation decisions so far.... please see below.

I would rather see it integrated into a Signature object (Brett had an
implementation), instead of showing up as two separate attributes.

> >  >>> f.func_returns
> > Traceback (most recent call last):
> >    File "<stdin>", line 1, in <module>
> > AttributeError: 'function' object has no attribute 'func_returns'

> I would prefer this to be None. Attributes that don't always exist are
> a pain to use.

I suspect he was trying to distinguish "returns None" from "Doesn't
say what it returns".  There is no good way to do this, but a separate
flag on a Signature object seems the least bad to me.

-jJ
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to