[Python-bugs-list] [ python-Bugs-207608 ] 'python -U' breaks eval/exec

noreply@sourceforge.net noreply@sourceforge.net
Sat, 17 Nov 2001 17:10:17 -0800


Bugs item #207608, was opened at 2000-06-16 16:33
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=207608&group_id=5470

Category: None
Group: None
Status: Closed
Resolution: Duplicate
Priority: 1
Submitted By: Michael Hudson (mwh)
Assigned to: M.-A. Lemburg (lemburg)
Summary: 'python -U' breaks eval/exec

Initial Comment:
Freshly built python:

[mwh21@atrus build]$ PYTHONSTARTUP= ./python -U   
'import site' failed; use -v for traceback
Python 1.6a2 (#1, Jun 17 2000, 00:21:58)  [GCC 2.95.1 19990816/Linux (release)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Copyright 1995-2000 Corporation for National Research Initiatives (CNRI)
>>> eval("1")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: eval() argument 1 must be string or code object

(this is also why the import site fails).

exec is also broken.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2001-11-17 17:10

Message:
Logged In: NO 

stjfsdgjvvnmbvvvvvv

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2000-06-28 23:38

Message:
Copied to Jitterbug on python.org, where it's bug 375.  Closed here.

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2000-06-26 12:19

Message:
eval and exec need to support Unicode objects.
This may be hard, and since -U is mostly experimental, I've given it a low priority.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=207608&group_id=5470