Movatterモバイル変換


[0]ホーム

URL:


homepage

Message244215

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authorflying sheep
RecipientsCesar.Kawakami, Devin Jeanpierre, Kyle.Buzsaki, Rahul Gupta, amaury.forgeotdarc, berker.peksag, eryksun, ezio.melotti, flying sheep, ionelmc, mark.dickinson, martin.panter, ncoghlan, r.david.murray, rhettinger
Date2015-05-27.19:43:45
SpamBayes Score-1.0
Marked as misclassifiedYes
Message-id<1432755825.9.0.0761506503114.issue23275@psf.upfronthosting.co.za>
In-reply-to
Content
> isn't it logical?> > [] is a mutable data structure> while () is a immutable data structurebut you don’t assign to data structures, but to names. you *modify* data structures. and in the square bracket assignment syntax you don’t modify the list created by the []. in fact the [] never even create a list.—————————————————————————————also it’s news to me that [a, b] = range(2) works!i always did a, b = range(2), and knew that (a, b) = range(2) works.but assigning to something looking like a list literal is new and surprising to me. (and i thought i’ve mastered every corner of python’s syntax)
History
DateUserActionArgs
2015-05-27 19:43:45flying sheepsetrecipients: +flying sheep,rhettinger,amaury.forgeotdarc,mark.dickinson,ncoghlan,Devin Jeanpierre,ezio.melotti,ionelmc,r.david.murray,berker.peksag,martin.panter,eryksun,Cesar.Kawakami,Kyle.Buzsaki,Rahul Gupta
2015-05-27 19:43:45flying sheepsetmessageid: <1432755825.9.0.0761506503114.issue23275@psf.upfronthosting.co.za>
2015-05-27 19:43:45flying sheeplinkissue23275 messages
2015-05-27 19:43:45flying sheepcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp