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/2000-July/006480.html below:

[Python-Dev] test_extcall

[Python-Dev] test_extcall [Python-Dev] test_extcallVladimir Marangozov Vladimir.Marangozov@inrialpes.fr
Fri, 14 Jul 2000 06:47:43 +0200 (CEST)
test_extcall.py contains the following code generating a cycle
that cannot be broken explicitely:

...
# what about willful misconduct?
def saboteur(**kw):
    kw['x'] = locals()    <-- yields cyclic kw:  {'x': {'kw': {...}}, 'a': 1}
d = {}
saboteur(a=1, **d)
...

Whoever wrote this test: is locals() absolutely necessary?


Also, is there a good reason for not implementing GC for module objects?
They are containers after all...

-- 
       Vladimir MARANGOZOV          | Vladimir.Marangozov@inrialpes.fr
http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252



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