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
Change argument _self in _io/textio.c #63555
Comments
At Modules/_io/textio.c:285, one argument to _PyIncrementalNewlineDecoder_decode is named "_self." The name "_self," however is a keyword on older Microsoft C compilers and certain other compilers attempting to maintain compatibility with Microsoft. Renaming the argument to "myself" would fix the problem with certain compilers (Microsoft C, Open Watcom, possibly more). Please note that this is not an issue with MSVC. |
I don't feel strongly about this. However, ISTM that we work reasonably |
I see other instances of _self in elementtree and ctypes. Don't you want to replace those too? |
That was sloppy of me to not check other modules. I hadn't encountered them in my build yet. Here's a patch for Modules/_ctypes/_ctypes.c and Modules/_ctypes/callbacks.c. The arguments were changed similarly to "myself." |
And finally here's the necessary changes to Modules/_elementree.c as well. |
New changeset 763af3d957f3 by Antoine Pitrou in branch '3.3': New changeset f6430aec5bf2 by Antoine Pitrou in branch 'default': |
Thanks for the patches, they're committed now. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: