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/120034.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
Thu Jun 7 16:00:29 CEST 2012
On 06/06/2012 11:56 PM, Nick Coghlan wrote:
> I'd say return a copy in the first case to be safe against accidental
> modification. If someone actually wants in-place modification, they
> can access __signature__ directly.

I really don't understand this anxiety about mutable Signature objects.  
Can you give a plausible example of "accidental modification" of a 
Signature object?  I for one--as clumsy as I am--cannot recall ever 
"accidentally" modifying an object.

I really don't think signature() should bother copying/deep-copying the 
Signature before returning it.


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