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 josh.r
Recipients Domenico Barbieri, josh.r, steven.daprano
Date 2019-02-26.19:19:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551208751.17.0.313494325984.issue36118@roundup.psfhosted.org>
In-reply-to
Content
Agreed, I cannot reproduce this (online link showing behavior): https://tio.run/##K6gsycjPM/7/v0LBViE6WilRSUdBKQlI6OnpKQCZTlFKsbFclWDJWB2FaEMdIx1jHRMdU5gKS0uQfLRBLFBJBZDiKijKzCvRAIlocv3/DwA

My guess is the code is subtly different, e.g. replacing:

>>> y[0] = x[0]
>>> print(y[0])

with:

>>> y[:1] = x[0]
>>> print(y)

would get roughly what the OP is seeing (and it would be the correct/expected result in that case). Either way, not a bug.
History
Date User Action Args
2019-02-26 19:19:11josh.rsetrecipients: + josh.r, steven.daprano, Domenico Barbieri
2019-02-26 19:19:11josh.rsetmessageid: <1551208751.17.0.313494325984.issue36118@roundup.psfhosted.org>
2019-02-26 19:19:11josh.rlinkissue36118 messages
2019-02-26 19:19:11josh.rcreate