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 steven.daprano
Recipients eryksun, ezio.melotti, maxbachmann, steven.daprano, vstinner
Date 2021-09-05.15:53:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20210905155119.GB30122@ando.pearwood.info>
In-reply-to <1630850198.37.0.897084267297.issue45105@roundup.psfhosted.org>
Content
> what's really there when I copy it from Firefox is '0\U0001090000', 
> which matches the result Max gets for individual index operations such as s[1]. 

But *not* the result that Max got from calling list().

Can you reproduce that difference between indexing and list?

Also you say "what's really there", but what is your reasoning for that? 
How do you know that Firefox is displaying the string wrongly, rather 
than displaying it correctly and copying it to the clipboard wrongly?

When I look at the page source of the b.p.o page, I see:

    <pre>I noticed that when using the Unicode character \U00010900 when 
    inserting the character as character:
    Here is the result on the Python console both for 3.6 and 3.9:
    ```
    &gt;&gt;&gt; s = '000X'

again, with X standing in for the Phoenician ALF character. But when I 
copy and paste it into my terminal, I see

    &gt;&gt;&gt; s = '0X00'
History
Date User Action Args
2021-09-05 15:53:23steven.dapranosetrecipients: + steven.daprano, vstinner, ezio.melotti, eryksun, maxbachmann
2021-09-05 15:53:23steven.dapranolinkissue45105 messages
2021-09-05 15:53:23steven.dapranocreate