[issue7793] regrtest fails with "RuntimeError: maximum recursion depth exceeded" in some cases

Amaury Forgeot d'Arc report at bugs.python.org
Wed Jan 27 10:46:31 CET 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The module is probably reloaded, which causes code like:
    _ord = ord
    def ord(c):
        ... _ord(c) ...
to form a recursion loop.
Attached patch removes the need for a special ord().

All this should be simply removed in py3k branch: ord() and chr() do the right thing even on narrow unicode builds.

----------
keywords: +patch
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file16022/test_multibytecodec.patch

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


More information about the Python-bugs-list mailing list