Closed mwhudson closed 22 years ago
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.
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.
Copied to Jitterbug on python.org, where it's bug 375. Closed here.
Logged In: NO
stjfsdgjvvnmbvvvvvv
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields: ```python assignee = 'https://github.com/malemburg' closed_at =
created_at =
labels = []
title = "'python -U' breaks eval/exec"
updated_at =
user = 'https://github.com/mwhudson'
```
bugs.python.org fields:
```python
activity =
actor = 'nobody'
assignee = 'lemburg'
closed = True
closed_date = None
closer = None
components = ['None']
creation =
creator = 'mwh'
dependencies = []
files = []
hgrepos = []
issue_num = 207608
keywords = []
message_count = 4.0
messages = ['1', '2', '3', '4']
nosy_count = 5.0
nosy_names = ['mwh', 'lemburg', 'gvanrossum', 'tim.peters', 'nobody']
pr_nums = []
priority = 'low'
resolution = 'duplicate'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue207608'
versions = []
```