消息 [109520]
On wide unicode builds, '\U00010000'.isprintable() returns True, and repr() returns the character unmodified.
Is it a good behavior, given that very few fonts have can display this character?
Marc-Andre Lemburg wrote:
> The "printable" property is a Python invention, not a Unicode property,
> so we do have some freedom is deciding what is printable and what
> is not.
The current implementation considers printable """all the characters except those characters defined in the Unicode character database as following categories are considered printable.
* Cc (Other, Control)
* Cf (Other, Format)
* Cs (Other, Surrogate)
* Co (Other, Private Use)
* Cn (Other, Not Assigned)
* Zl Separator, Line ('\u2028', LINE SEPARATOR)
* Zp Separator, Paragraph ('\u2029', PARAGRAPH SEPARATOR)
* Zs (Separator, Space) other than ASCII space('\x20').
"""
We could also arbitrarily exclude all the non-BMP chars. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-07-08 08:53:07 | amaury.forgeotdarc | 修改 | recipients:
+ amaury.forgeotdarc, lemburg, ezio.melotti |
| 2010-07-08 08:53:07 | amaury.forgeotdarc | 修改 | messageid: <1278579187.34.0.662391507791.issue9198@psf.upfronthosting.co.za> |
| 2010-07-08 08:53:03 | amaury.forgeotdarc | 链接 | issue9198 messages |
| 2010-07-08 08:53:03 | amaury.forgeotdarc | 创建 | |
|