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-143756: Avoid borrowed reference in SSL code by colesbury · Pull Request #143816 · python/cpython Conversation
|
| get_socket(PySSLSocket *obj, PySocketSockObject **out_sock, | ||
| const char *filename, int lineno) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It would significantly simplify usage if this were a macro that automatically passed __FILE__ and __LINE__.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.
If we have a macro, AFAIR, it expands to something that will not be visually helpful (on the IDE the reported line would mismatch, but I may be wrong here).
So we also could well remove all file/lineno reports and add a description of what we were doing instead, or the involved function.
The file/lineno is only for us to know what happened when someone reports a bug. But the file is likely to always be the same...
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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.
The design choices of this module are hard to comply with but well... better to have small changes for now.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
GET_SOCKET() returned a borrowed reference, which was potentially unsafe. Also, refactor out some common code.
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.