brad miller kwhbnmcngmailcom posting patch implement good discussion followed see httpbugspythonorgissue2610 suggested broader discussion might order around issue iterators displayed command line interpreter several new iterators appeared python 30 makes language less transparent beginning programmers examples immediately come mind shown would guess others havent run across yet range10 range0 10 myd chrii range3242 mydkeys mydvalues myditems although none problem intermediate advanced programmers would like find way beginning students would automatically get helpful representation evaluate expressions interpreter solution implementing __str__ method range one solution could also done dict_xxx objects well solutions suggested include kind module overrides sysdisplayhook simply make command line interpreter intelligence example already handles return value none special way maybe something iterators well comments ideas thanks brad apr 7 2008 624 pm guido van rossum wrote id object returning something resembles list closely could live strrange3 return 0 1 2 probably cutoff 6 values itll show first 3 values dots last 2 values cutoff would computed always represents least 2 values mon apr 7 2008 414 pm brad miller wrote hi use python cs1 cs2 curriculum question ive using python 30 alphas one things bothered see sequence produced range without introducing students list function typically introduce range day 1 class show students produces without making big deal fact creates list accept things work nicely introduce lists real week two question couldnt __str__ method range object friendly show representation sequence understand __repr__ return range010 object created using range10 couldnt printrange10 produce 0 1 2 9 could even used sequence excessively wrong acceptable would happy accept challenge providing patch thanks brad _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevguido40pythonorg guido van rossum home page httpwwwpythonorgguido thu 07 aug 2008 095425 0500 pythondev string representation range 30