This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbt
Recipients belopolsky, chris.jerdonek, mcdonc, python-dev, sbt
Date 2012-09-10.13:07:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I see the same error on Windows (when pressing ^C), but on Linux I get

Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.7/", line 28, in _run_exitfuncs
    import traceback
  File "/usr/lib/python2.7/", line 3, in <module>
    import linecache
  File "/usr/lib/python2.7/", line 9, in <module>
    import os
  File "/usr/lib/python2.7/", line 119, in <module>
    sys.modules['os.path'] = path
AttributeError: 'module' object has no attribute 'modules'

This also suggests that module teardown has begun before/while sys.exitfunc is running.
Date User Action Args
2012-09-10 13:08:00sbtsetrecipients: + sbt, belopolsky, mcdonc, chris.jerdonek, python-dev
2012-09-10 13:07:59sbtsetmessageid: <>
2012-09-10 13:07:59sbtlinkissue15881 messages
2012-09-10 13:07:59sbtcreate