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 belopolsky
Recipients belopolsky, benjamin.peterson, bmiller, loewis
Date 2008-04-11.14:47:06
SpamBayes Score 0.089338966
Marked as misclassified No
Message-id <1207925227.62.0.397701834263.issue2610@psf.upfronthosting.co.za>
In-reply-to
Content
I did not realize that the proposed patch only affects str and not repr.  
Some of may previous arguments against it do not hold in this case, but 
I am still -1.

If you introduce range before list, it will be hard to explain why lists 
are printed in valid python syntax while ranges are not.

What do you do with ranges in your first classes?  Maybe you can 
introduce it as a part of the looping construct and make students think 
of for i in range(10) as an equivalent of C's for(i = 0; i < 10; i++)?

Also

>>> [i for i in range(10)]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

can be demonstrated early without explaining the mechanics of list 
comprehensions.  I would expect most students being able to guess what 
for i in range(10): does and half of the students being able to guess 
what [i for i in range(10)] means.
History
Date User Action Args
2008-04-11 14:47:07belopolskysetspambayes_score: 0.089339 -> 0.089338966
recipients: + belopolsky, loewis, benjamin.peterson, bmiller
2008-04-11 14:47:07belopolskysetspambayes_score: 0.089339 -> 0.089339
messageid: <1207925227.62.0.397701834263.issue2610@psf.upfronthosting.co.za>
2008-04-11 14:47:07belopolskylinkissue2610 messages
2008-04-11 14:47:06belopolskycreate