Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing sys.dont_write_bytecode has not effect #46808

Closed
benjaminp opened this issue Apr 5, 2008 · 2 comments
Closed

changing sys.dont_write_bytecode has not effect #46808

benjaminp opened this issue Apr 5, 2008 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@benjaminp
Copy link
Contributor

BPO 2556
Nosy @birkenfeld, @benjaminp

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:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2008-04-05.17:00:03.182>
created_at = <Date 2008-04-05.14:43:08.761>
labels = ['interpreter-core', 'invalid', 'docs']
title = 'changing sys.dont_write_bytecode has not effect'
updated_at = <Date 2008-04-05.17:00:03.181>
user = 'https://github.com/benjaminp'

bugs.python.org fields:

activity = <Date 2008-04-05.17:00:03.181>
actor = 'benjamin.peterson'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2008-04-05.17:00:03.182>
closer = 'benjamin.peterson'
components = ['Documentation', 'Interpreter Core']
creation = <Date 2008-04-05.14:43:08.761>
creator = 'benjamin.peterson'
dependencies = []
files = []
hgrepos = []
issue_num = 2556
keywords = []
message_count = 2.0
messages = ['64976', '64988']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'benjamin.peterson']
pr_nums = []
priority = 'high'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue2556'
versions = ['Python 2.6']

@benjaminp
Copy link
Contributor Author

According to the 2.6 docs, says you can set it yourself to control
bytecode generation. That doesn't work because the dont_write_bytecode
flag is set from command option and never looked at again. Either we
should remove this misleading information or use PySys_GetObject in
pythonrun.c where the flag is used.

@benjaminp benjaminp added docs Documentation in the Doc dir interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Apr 5, 2008
@birkenfeld
Copy link
Member

Sorry, I can't see what's wrong here. See import.c which indeed uses
PySys_GetObject to retrieve the value of dont_write_bytecode.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
Development

No branches or pull requests

2 participants