[pypy-svn] pypy fast-forward: Suggestion to implement ResourceWarnings (CPython issue #10093) in PyPy

amauryfa commits-noreply at bitbucket.org
Thu Jan 13 19:48:37 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40648:a6c7ddb8027e
Date: 2011-01-13 13:49 +0100
http://bitbucket.org/pypy/pypy/changeset/a6c7ddb8027e/

Log:	Suggestion to implement ResourceWarnings (CPython issue #10093) in
	PyPy

diff --git a/lib-python/TODO b/lib-python/TODO
--- a/lib-python/TODO
+++ b/lib-python/TODO
@@ -72,3 +72,7 @@
       class B(object): __slots__ = ('b', 'a')
       a = A()
       a.__class__ = B
+
+- Show a ResourceWarning when a file/socket is not explicitely closed, like
+  CPython did for 3.2: http://svn.python.org/view?view=rev&revision=85920
+  in PyPy this should be enabled by default


More information about the Pypy-commit mailing list