[pypy-commit] pypy py3.7: hack to get the ABCs back into collections

rlamy pypy.commits at gmail.com
Sat Aug 31 19:32:44 EDT 2019


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.7
Changeset: r97357:e0e7a3c09e30
Date: 2019-09-01 00:07 +0100
http://bitbucket.org/pypy/pypy/changeset/e0e7a3c09e30/

Log:	hack to get the ABCs back into collections

diff --git a/lib-python/3/collections/__init__.py b/lib-python/3/collections/__init__.py
--- a/lib-python/3/collections/__init__.py
+++ b/lib-python/3/collections/__init__.py
@@ -39,6 +39,9 @@
     pass
 
 
+# XXX: temporary PyPy hack until we implement module __getattr__
+from _collections_abc import *
+
 def __getattr__(name):
     # For backwards compatibility, continue to make the collections ABCs
     # through Python 3.6 available through the collections module.


More information about the pypy-commit mailing list