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.
Created on 2010年02月01日 04:51 by nudgenudge, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue7828.diff | belopolsky, 2010年11月18日 17:51 | |||
| Messages (3) | |||
|---|---|---|---|
| msg98648 - (view) | Author: (nudgenudge) | Date: 2010年02月01日 04:51 | |
The documentation of chr() and ord() fails to mention that on narrow Unicode builds, chr(n) will return a surrogate pair (hence a 2-character string) for n>=65536 and that ord(s) will accept a 2-character string if it's a surrogate pair. Example: Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> list(chr(123456)) ['\ud838', '\ude40'] >>> len(chr(123456)) 2 >>> ord(chr(123456)) 123456 >>> |
|||
| msg121482 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2010年11月18日 18:10 | |
Looks good to me, except for a 'stings' near the end of the patch. |
|||
| msg121486 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2010年11月18日 18:55 | |
Committed in r86526 (3.2) and r86527 (3.1). |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:57 | admin | set | github: 52076 |
| 2010年11月18日 18:55:38 | belopolsky | set | status: open -> closed resolution: fixed messages: + msg121486 stage: patch review -> resolved |
| 2010年11月18日 18:10:17 | amaury.forgeotdarc | set | nosy:
+ amaury.forgeotdarc messages: + msg121482 |
| 2010年11月18日 17:51:40 | belopolsky | set | files:
+ issue7828.diff keywords: + patch stage: needs patch -> patch review |
| 2010年11月17日 23:53:38 | belopolsky | set | assignee: docs@python -> belopolsky nosy: + belopolsky |
| 2010年10月21日 00:42:58 | vstinner | set | nosy:
georg.brandl, vstinner, djc, ezio.melotti, nudgenudge, docs@python components: + Unicode |
| 2010年08月03日 16:59:22 | pitrou | set | assignee: georg.brandl -> docs@python versions: - Python 2.6, Python 2.7 nosy: + vstinner, docs@python |
| 2010年08月03日 14:14:58 | djc | set | nosy:
+ djc |
| 2010年02月14日 18:38:25 | ezio.melotti | set | priority: normal nosy: + ezio.melotti versions: + Python 2.6, Python 2.7 stage: needs patch |
| 2010年02月01日 04:51:56 | nudgenudge | create | |