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 rhettinger
Recipients mdk, ncoghlan, rhettinger, seluj78, serhiy.storchaka, steven.daprano
Date 2018-11-19.19:44:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542656685.83.0.788709270274.issue35200@psf.upfronthosting.co.za>
In-reply-to
Content
After more thought, I'm in agreement with the comments that the proposed __str__ revision is confusing.

After teaching another Python intro course last week, I'm now thinking that no change should be made.  There are other effective ways to teach half-open intervals (i.e. using slicing on strings is now my preferred way). 

Also students need to learn about using list() with iterators.  This core skill comes up with generators, enumerate, zip, filter, etc. So, we just need to teach the skill earlier in the course than we did with Python2.7.

I recommend that we just close this and resist the urge to create a new oddity that does't generalize well (i.e. most other iterators can't show a preview of the output without actually consuming some of their inputs).
History
Date User Action Args
2018-11-19 19:44:45rhettingersetrecipients: + rhettinger, ncoghlan, steven.daprano, serhiy.storchaka, mdk, seluj78
2018-11-19 19:44:45rhettingersetmessageid: <1542656685.83.0.788709270274.issue35200@psf.upfronthosting.co.za>
2018-11-19 19:44:45rhettingerlinkissue35200 messages
2018-11-19 19:44:45rhettingercreate