summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/iterator.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-12-05 09:18:30 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-12-05 09:18:30 (GMT)
commit9d279b87d81b7cd9471e8373d022451bb00f094f (patch)
tree845d27846df2e3be00de264b2d156691b8be38cd /Doc/c-api/iterator.rst
parent02d37d5dd2cefced3e2d834d453d6a5c848a2b9e (diff)
parent969175091c4556e5b7e128ba91ae39f0b80153af (diff)
downloadcpython-9d279b87d81b7cd9471e8373d022451bb00f094f.zip
cpython-9d279b87d81b7cd9471e8373d022451bb00f094f.tar.gz
cpython-9d279b87d81b7cd9471e8373d022451bb00f094f.tar.bz2
(Merge 3.4) Issue #22599: Enhance tokenize.open() to be able to call it during
Python finalization. Before the module kept a reference to the builtins module, but the module attributes are cleared during Python finalization. Instead, keep directly a reference to the open() function. This enhancement is not perfect, calling tokenize.open() can still fail if called very late during Python finalization. Usually, the function is called by the linecache module which is called to display a traceback or emit a warning.
Diffstat (limited to 'Doc/c-api/iterator.rst')
0 files changed, 0 insertions, 0 deletions