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/120055.html below:

[Python-Dev] Updated PEP 362 (Function Signature Object)

[Python-Dev] Updated PEP 362 (Function Signature Object) [Python-Dev] Updated PEP 362 (Function Signature Object)Larry Hastings larry at hastings.org
Fri Jun 8 04:18:54 CEST 2012
On 06/07/2012 07:08 PM, Steven D'Aprano wrote:
> Perhaps func.__signature__ should be a computed the first time it is 
> accessed?

The PEP already declares that signatures are lazily generated.  
signature() checks to see if __signature__ is set, and if it is returns 
it.  (Or, rather, a deepcopy of it, assuming we go down that route.)  If 
__signature__ isn't set, signature() computes it and returns that.  
(Possibly caching in __signature__, possibly not, possibly caching the 
result then returning a deepcopy.)


//arry/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120607/6559b911/attachment.html>
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