Open df79943f-4aee-4531-a00d-c6b12816eb70 opened 2 years ago
chr (or anything else which calls PyUnicode_FromOrdinal
) raises ValueError if its argument falls outside the range of valid Unicode code points, while PyUnicode_FromFormat
raises OverflowError. Shouldn't the latter raise ValueError as well?
Is there any example where it causes troubles?
Serhiy, do you think we should close this?
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: ```python assignee = None closed_at = None created_at =
labels = ['type-bug']
title = "builtins.chr and the 'c' format flag raise different errors"
updated_at =
user = 'https://github.com/mr-nfamous'
```
bugs.python.org fields:
```python
activity =
actor = 'serhiy.storchaka'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = []
creation =
creator = 'bup'
dependencies = []
files = []
hgrepos = []
issue_num = 44664
keywords = []
message_count = 2.0
messages = ['397735', '397745']
nosy_count = 3.0
nosy_names = ['serhiy.storchaka', 'bup', 'jack__d']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue44664'
versions = []
```