Just van Rossum wrote: > > M.-A. Lemburg wrote: > > > > General question: why if func_globals not a writable attribute? > > > > Why should it be ? Just think of the security holes this would > > open. > > Huh? You can change func_globals in place, I don't see how it's more vulnerable > to replace it with another dict. Assigning to func_code, func_defaults, func_doc > and func_dict is allowed, I was just wondering if there's a specific reason why > it's not allowed for func_globals. Am I missing something obvious here? Hmm, looking at the code it seems that assigning to various function object attributes has always been allowed. I wonder why... since it doesn't have any obvious use except preventing to pretend that function objects are immutable (which is what I would have expected). Nevermind, -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Consulting & Company: http://www.egenix.com/ Python Software: http://www.lemburg.com/python/
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