pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://github.com/python/cpython/pull/18397

7c7a1abb27f2d0.css" /> bpo-39500: Document PyUnicode_IsIdentifier() function by vstinner · Pull Request #18397 · python/cpython · GitHub
Skip to content

bpo-39500: Document PyUnicode_IsIdentifier() function#18397

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:unicode_isidentifier2
Feb 11, 2020
Merged

bpo-39500: Document PyUnicode_IsIdentifier() function#18397
vstinner merged 1 commit into
python:masterfrom
vstinner:unicode_isidentifier2

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Feb 7, 2020

PyUnicode_IsIdentifier() does not call Py_FatalError() anymore if the
string is not ready.

https://bugs.python.org/issue39500

@vstinner
Copy link
Copy Markdown
Member Author

vstinner commented Feb 7, 2020

@serhiy-storchaka: here is a different approach. Instead of returning -1 on error and require all callers to be modified to start checking for error, I modified the function to never fail. If the string is not ready, I use the legacy API to access it (Py_UNICODE*).

Previous attempt: PR #18280.

PyUnicode_IsIdentifier() does not call Py_FatalError() anymore if the
string is not ready.
@vstinner
Copy link
Copy Markdown
Member Author

I modified my PR to use _PyUnicode_WSTR() and wchar_t* rather than Py_UNICODE* type.

@vstinner vstinner merged commit f3e7ea5 into python:master Feb 11, 2020
@vstinner vstinner deleted the unicode_isidentifier2 branch February 11, 2020 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy