GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-94731: Revert to C-style casts for _Py_CAST by encukou · Pull Request #94782 · python/cpython Conversation
|
|
🤖 New build scheduled with the buildbot fleet by @encukou for commit 498e8bb 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
We have buildbots like that...
|
🤖 New build scheduled with the buildbot fleet by @encukou for commit b13e464 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| PyObject *ipotype = PyType_FromSpec(&VirtualPyObject_Spec); | ||
| // no good way to signal failure from a C++ constructor, so use assert | ||
| // for error handling | ||
| assert(ipotype); | ||
| assert(PyObject_Init(this, (PyTypeObject *)ipotype)); | ||
| Py_DECREF(ipotype); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| PyObject *ipotype = PyType_FromSpec(&VirtualPyObject_Spec); | |
| // no good way to signal failure from a C++ constructor, so use assert | |
| // for error handling | |
| assert(ipotype); | |
| assert(PyObject_Init(this, (PyTypeObject *)ipotype)); | |
| Py_DECREF(ipotype); | |
| PyObject *vpotype = PyType_FromSpec(&VirtualPyObject_Spec); | |
| // no good way to signal failure from a C++ constructor, so use assert | |
| // for error handling | |
| assert(vpotype); | |
| assert(PyObject_Init(this, (PyTypeObject *)vpotype)); | |
| Py_DECREF(vpotype); |
Just suggesting changing the name slightly here to match the name you used from the class. I think the i from ipotype was a hold-over from the name I used.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It's a local variable now so I'll just name it type :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @encukou for commit 021c03d 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: da-woods <[email protected]> (cherry picked from commit 6cbb57f) Co-authored-by: Petr Viktorin <[email protected]>
|
GH-94849 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: da-woods <[email protected]> (cherry picked from commit 6cbb57f)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.