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

Refactor call_with_frame() function of pyexpat.c #62621

Closed
vstinner opened this issue Jul 10, 2013 · 2 comments
Closed

Refactor call_with_frame() function of pyexpat.c #62621

vstinner opened this issue Jul 10, 2013 · 2 comments

Comments

@vstinner
Copy link
Member

BPO 18421
Nosy @freddrake, @vstinner, @tiran

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 = None
closed_at = <Date 2013-12-16.23:14:32.649>
created_at = <Date 2013-07-10.11:45:56.651>
labels = ['expert-XML']
title = 'Refactor call_with_frame() function of pyexpat.c'
updated_at = <Date 2013-12-16.23:14:32.648>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2013-12-16.23:14:32.648>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2013-12-16.23:14:32.649>
closer = 'vstinner'
components = ['XML']
creation = <Date 2013-07-10.11:45:56.651>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 18421
keywords = []
message_count = 2.0
messages = ['192796', '206389']
nosy_count = 3.0
nosy_names = ['fdrake', 'vstinner', 'christian.heimes']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue18421'
versions = ['Python 3.4']

@vstinner
Copy link
Member Author

Modules/pyexpat.c contains a call_with_frame() function which uses many low-level attributes like tstate->c_profilefunc. I don't think that pyexpat.c is the best place for such function, it should be moved to Python/ceval.c.

Except the call to XML_StopParser(self->itself, XML_FALSE); on failure, the code doesn't look to be specific to (py)expat.

@vstinner
Copy link
Member Author

I'm not really interested to refactory pyexpat.c code. If you are interested, open a new the issue with a patch.

@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
Projects
None yet
Development

No branches or pull requests

1 participant