[issue18572] Remove redundant note about surrogates in string escape doc

2016-04-23 Thread Berker Peksag
Berker Peksag added the comment: I removed the sentence in 3.5 and default branches. -- nosy: +berker.peksag resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 -Python 3.3, Python 3.4 ___ Pyth

[issue18572] Remove redundant note about surrogates in string escape doc

2016-04-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79e7808c3941 by Berker Peksag in branch '3.5': Issue #18572: Remove redundant note about surrogates in string escape doc https://hg.python.org/cpython/rev/79e7808c3941 New changeset ee815d3535f5 by Berker Peksag in branch 'default': Issue #18572: Re

[issue18572] Remove redundant note about surrogates in string escape doc

2013-08-08 Thread Ezio Melotti
Ezio Melotti added the comment: I think it's OK to remove the sentence. Converting a surrogate pair to a non-BMP char is something that works only while decoding a UTF-16 byte sequence. Surrogates are invalid in UTF-8/32, and while dealing with Unicode strings, surrogates have no special mean

[issue18572] Remove redundant note about surrogates in string escape doc

2013-07-29 Thread R. David Murray
R. David Murray added the comment: Probably. I think the default build on Gentoo is wide. That seems to make the existing text even more incorrect :) -- ___ Python tracker ___

[issue18572] Remove redundant note about surrogates in string escape doc

2013-07-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: On 29/07/13 22:27, R. David Murray wrote: '\uD80C\uDC80' == '\U00013080' > False Are you running a wide build? In a narrow build, it returns True. -- ___ Python tracker ___

[issue18572] Remove redundant note about surrogates in string escape doc

2013-07-29 Thread R. David Murray
R. David Murray added the comment: Python 3.2.3 (default, Jun 15 2013, 14:13:52) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> '\uD80C\uDC80' '\ud80c\udc80' >>> '\uD80C\uDC80' == '\U00013080' False -- nosy: +r.david.murray

[issue18572] Remove redundant note about surrogates in string escape doc

2013-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.3.2: >>> '\uD80C\uDC80' == '\U00013080' False The statement that surrogate code units can be encoded this way is still true. Indeed, it is now the only way to get such code units into a string. The suggestion that a pair will make an astral char is now false

[issue18572] Remove redundant note about surrogates in string escape doc

2013-07-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch type: -> behavior versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-

[issue18572] Remove redundant note about surrogates in string escape doc

2013-07-27 Thread Steven D'Aprano
New submission from Steven D'Aprano: The documentation for string escapes suggests that \u escapes can be used to generate characters in the Supplementary Multilingual Planes by using surrogate pairs: "Individual code units which form parts of a surrogate pair can be encoded using this es