[BangPypers] Simulating atexit using weakref (was How to run a block of code just before the interpreter is being exited ...)
Anand B Pillai
anandpillai at letterboxes.org
Tue Sep 10 08:13:58 CEST 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 10 September 2013 11:30 AM, Anand B Pillai wrote:
> Don't advise anyone to use this code - it is just to illustrate
> the one of the ways in which weak references can be used. In
> general it is better not to rely on the order of gc in your code
> to implement a feature.
Here is the code in pastebin - http://pastebin.com/wmLduVBh
>
>
> _______________________________________________ BangPypers mailing
> list BangPypers at python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>
- --
Regards,
- --Anand
-
--------------------------------------------------------------------------------------
Software Architect/Consultant
anandpillai at letterboxes.org
Please note my updated email address <anandpillai at letterboxes.org>.
Kindly update your address books.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJSLrimAAoJEMTxYeOp9eaojpMH/iE3LpuZIXGawjXVssEQCG8N
aDhvaylMx4LbwkP1UYIwDaf5k+iVk/uUSIql9V52ZZ7Yj1Nl8b91u1kxIw8TUUDa
b/VzdBpJUdH7P7/ZZORq6XPqOrZ7r5s3hWDnmiOnJ09OU4O93vq9ruQdiIvNlTv+
TwNMfG0LJC5P4/3WcMRd17ePNAClevlW8/QQBzLTQLn5HHHkI1Y2yC/gzCRB/aCt
eWTzt0khabNZxIGYVhxKTxPr0YMzBoQq8c7Xx/P4VyN+8wzE3hemrtU+h/hv5EZI
OTnNphmuSHR6IzaXXowxXR9OeRAxKAmuy3fWgPBo++NI3n4B1/ThrDQ/gx3anTg=
=jI8B
-----END PGP SIGNATURE-----
More information about the BangPypers
mailing list