Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Check NEW_TYPE_COMMENT calls for failure#93

Merged
gvanrossum merged 1 commit into
masterpython/typed_ast:masterfrom
check-errorspython/typed_ast:check-errorsCopy head branch name to clipboard
Feb 6, 2019
Merged

Check NEW_TYPE_COMMENT calls for failure#93
gvanrossum merged 1 commit into
masterpython/typed_ast:masterfrom
check-errorspython/typed_ast:check-errorsCopy head branch name to clipboard

Conversation

@msullivan

Copy link
Copy Markdown
Collaborator

This is mostly cribbed from python/cpython#11645,
though it also adds a new error check to new_type_comment itself.

This is mostly cribbed from python/cpython#11645,
though it also adds a new error check to new_type_comment itself.

@gvanrossum gvanrossum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll submit a PR to add the extra error check to new_type_comment() upstream.

gvanrossum added a commit to python/cpython that referenced this pull request Feb 6, 2019
If PyUnicode_DecodeUTF8() returns NULL, PyArena_AddPyObject() would crash.
Found by @msullivan for python/typed_ast#93.
@gvanrossum gvanrossum merged commit f2acb2b into master Feb 6, 2019
@gvanrossum gvanrossum deleted the check-errors branch February 6, 2019 00:38
gvanrossum added a commit to python/cpython that referenced this pull request Feb 11, 2019
If PyUnicode_DecodeUTF8() returns NULL, PyArena_AddPyObject() would crash.
Found by @msullivan for python/typed_ast#93.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.