On 2012-06-06, at 9:28 AM, Isaac Morland wrote:

> On Wed, 6 Jun 2012, Nick Coghlan wrote:
> 
>> 2. Signature.bind introduces the ability to split the "bind arguments
>> to parameters" operation from the "call object" operation
> 
> Has anybody considered calling bind __call__?  That is, the result of calling 
> the signature of a procedure instead of the procedure itself is the locals() 
> dictionary the procedure would start with (except presumably missing 
> non-parameter local variables).

I'd stick with more explicit 'bind' method.

Compare (given the 'sig = signature(func)'):
   
    ba = sig(*args, **kwargs)

to:
    
    ba = sig.bind(*args, **kwargs)

The second case looks more clear to me.

Thanks,
-
Yury
  
_______________________________________________
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