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

PyRun_SimpleFile() should use const char #37595

Closed
yodagh mannequin opened this issue Dec 10, 2002 · 2 comments
Closed

PyRun_SimpleFile() should use const char #37595

yodagh mannequin opened this issue Dec 10, 2002 · 2 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@yodagh
Copy link
Mannequin

yodagh mannequin commented Dec 10, 2002

BPO 651362
Nosy @loewis

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/loewis'
closed_at = <Date 2002-12-11.14:05:51.000>
created_at = <Date 2002-12-10.10:38:05.000>
labels = ['interpreter-core']
title = 'PyRun_SimpleFile() should use const char'
updated_at = <Date 2002-12-11.14:05:51.000>
user = 'https://bugs.python.org/yodagh'

bugs.python.org fields:

activity = <Date 2002-12-11.14:05:51.000>
actor = 'loewis'
assignee = 'loewis'
closed = True
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2002-12-10.10:38:05.000>
creator = 'yoda_gh'
dependencies = []
files = []
hgrepos = []
issue_num = 651362
keywords = []
message_count = 2.0
messages = ['13581', '13582']
nosy_count = 2.0
nosy_names = ['loewis', 'yoda_gh']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue651362'
versions = ['Python 2.2']

@yodagh
Copy link
Mannequin Author

yodagh mannequin commented Dec 10, 2002

PyRun_SimpleFile() currently expects a char* which leads to many
ugly const_cast<char*>() calls if you use string types in C++.

Please change to "const char*" if possible. TIA!

@yodagh yodagh mannequin closed this as completed Dec 10, 2002
@yodagh yodagh mannequin assigned loewis Dec 10, 2002
@yodagh yodagh mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Dec 10, 2002
@yodagh yodagh mannequin closed this as completed Dec 10, 2002
@yodagh yodagh mannequin assigned loewis Dec 10, 2002
@yodagh yodagh mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Dec 10, 2002
@loewis
Copy link
Mannequin

loewis mannequin commented Dec 11, 2002

Logged In: YES
user_id=21627

This if now fixed in the CVS, with the changes

compile.h 2.39
parsetok.h 2.20
pyerrors.h 2.64
pythonrun.h 2.56
symtable.h 2.11
parsetok.c 2.34
tokenizer.c 2.70
tokenizer.h 2.20
compile.c 2.266
errors.c 2.75
future.c 2.13
pythonrun.c 2.170

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

No branches or pull requests

0 participants