[issue19763] Make it easier to backport statistics to 2.7

Christian Heimes report at bugs.python.org
Mon Nov 25 09:19:51 CET 2013


Christian Heimes added the comment:

Python's stdlib contains other modules that contain code for older versions of Python. The platform module even contains lines like "os.devnull was added in Python 2.4, so emulate it for earlier". asyncio has backward compatibility code, too. The only old syntax I'd like to add is the super() thing in the test module. They are just tests...

The modified imports and doc test adjustments like

-    >>> mean([1, 2, 3, 4, 4])
-    2.8
+    >>> mean([1, 2, 3, 4, 4]) == 2.8
+    True

would greatly help, though.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19763>
_______________________________________


More information about the Python-bugs-list mailing list