text_combined: nick coghlan uytankmfgmailcom isaac morland wrote wed 16 apr 2008 paul moore wrote 16042008 armin rigo wrote less confusing readily generalizable would also helpful imho use kind repr builtin iterators iterables instead mostyuseless default repr quite like nonbeginner ill freely admit intuitions suspect like iterators though would always show next couple elements values contained iterator change iterator iterates alternatively representation could frozen reflect values originally pending iterator representation wouldnt show anything current state iterator cant write nice reprs arbitrary iterators things like enumerate friends operate arbitrary iterator way get first last value nice representation like iterables like range random access underlying values note range iterator py3k __next__ method hold trues xrange 2x however would really nice collectionsdict_keys collectionsdict_items collectionsdict_values could provide nice repr implementation rough equivalent def full_reprself contents joinmaprepr self return self__class____name__ contents dicta1 b2 c3 1 c 3 b 2 full_reprdkeys full_reprdvalues full_reprditems cheers nick nick coghlan uytankmfgmailcom brisbane australia httpwwwboredomandlazinessorg _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom fri 08 aug 2008 025908 1000 pythondev string representation range 30