summaryrefslogtreecommitdiff
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-12-05 10:17:10 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-12-05 10:17:10 +0100
commit969175091c4556e5b7e128ba91ae39f0b80153af (patch)
tree374d5bca899dec2a8531e679ec59680754c343ba /Python/getargs.c
parent3ab745e3867f2ac1ecc5520c7e347959c8d79945 (diff)
downloadcpython-git-969175091c4556e5b7e128ba91ae39f0b80153af.tar.gz
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 'Python/getargs.c')
0 files changed, 0 insertions, 0 deletions