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 rupole
Recipients rupole
Date 2008-07-04.03:40:24
SpamBayes Score 2.6601028e-05
Marked as misclassified No
Message-id <1215142827.44.0.225986561599.issue3279@psf.upfronthosting.co.za>
In-reply-to
Content
In pythonrun.c, initstdio injects 'open' into builtins.  However,
initsite is called before initstdio and site.py uses open.
Running with -v, this traceback is printed:

Traceback (most recent call last):
  File "j:\python30\lib\site.py", line 518, in <module>
main()
  File "j:\python30\lib\site.py", line 501, in main
known_paths = addsitepackages(known_paths)
  File "j:\python30\lib\site.py", line 281, in addsitepackages
addsitedir(sitedir, known_paths)
  File "j:\python30\lib\site.py", line 178, in addsitedir
addpackage(sitedir, name, known_paths)
  File "j:\python30\lib\site.py", line 141, in addpackage
f = open(fullname, "rU")
NameError: global name 'open' is not defined
History
Date User Action Args
2008-07-04 03:40:28rupolesetspambayes_score: 2.6601e-05 -> 2.6601028e-05
recipients: + rupole
2008-07-04 03:40:27rupolesetspambayes_score: 2.6601e-05 -> 2.6601e-05
messageid: <1215142827.44.0.225986561599.issue3279@psf.upfronthosting.co.za>
2008-07-04 03:40:25rupolelinkissue3279 messages
2008-07-04 03:40:25rupolecreate