On Mon, Jun 18, 2012 at 07:10:33PM -0400, Yury Selivanov wrote:

> It seems that we have the following options for 'signature(obj)':
> 
> 1. If 'obj' has a '__signature__' attribute - return a copy of it,
> if not - create a new one.
> 
> 2. If 'obj' has a '__signature__' attribute - return it,
> if not - create a new one.
> 
> 3. Same as '2', but Signature is also immutable.

There's a slight ambiguity there. Do you mean, create a __signature__ 
attribute, or just create a new Signature instance?

I presume you mean the later, a Signature instance, and not cache it in 
__signature__.



-- 
Steven

_______________________________________________
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

Reply via email to