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

bpo-9263: Use _PyObject_ASSERT() in typeobject.c#10111

Merged
vstinner merged 4 commits into
python:masterpython/cpython:masterfrom
vstinner:assert_typeobjCopy head branch name to clipboard
Oct 26, 2018
Merged

bpo-9263: Use _PyObject_ASSERT() in typeobject.c#10111
vstinner merged 4 commits into
python:masterpython/cpython:masterfrom
vstinner:assert_typeobjCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Oct 25, 2018

Copy link
Copy Markdown
Member

Replace assert() with _PyObject_ASSERT() in Objects/typeobject.c
to dump the faulty object on assertion failure to ease debugging.

https://bugs.python.org/issue9263

Replace assert() with _PyObject_ASSERT() in Objects/typeobject.c
to dump the faulty object on assertion failure to ease debugging.
Pass the type, not the object
Pass the type, not obj.

Add also 'type' variable to cleanup the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.