- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | Oren Milman |
|---|---|
| Recipients | Oren Milman |
| Date | 2017-09-26.12:54:08 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1506430448.99.0.998378663299.issue31592@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
The following code causes an assertion failure:
import unicodedata
def bad_normalize(*args):
return None
unicodedata.normalize = bad_normalize
import ast
ast.parse('\u03D5')
This is because init_normalization() (in Python/ast.c) assumes that
unicodedata.normalize() is valid, and stores it in the compiling struct.
Later, new_identifier() calls the stored function, assumes it returned a
string, and passes it to PyUnicode_InternInPlace(), which asserts it is a
string. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-09-26 12:54:09 | Oren Milman | set | recipients: + Oren Milman |
| 2017-09-26 12:54:08 | Oren Milman | set | messageid: <1506430448.99.0.998378663299.issue31592@psf.upfronthosting.co.za> |
| 2017-09-26 12:54:08 | Oren Milman | link | issue31592 messages |
| 2017-09-26 12:54:08 | Oren Milman | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
