newbie question: what does "<...>" or "<input>" signify?

Roman Suzi rnd at onego.ru
Mon Jul 16 23:42:07 EDT 2001


Did you mean this:

>>> import sys
>>> sys.stdout
<open file '<stdout>', mode 'w' at 0x25d820>

?

This is _informal_ (but used consistently everywhere) way to represent
inrepresentable objects as string and files of which nothing more is
known, like in the above example.

You can also encounter this kind of output:

>>> l = [0]
>>> l[0] = l
>>> l
[[...]]

- because l is recursively constructed (never do such an ugly
objects, please!).



Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Tuesday, July 17, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "...put knot yore trust inn spel chequers." _/





More information about the Python-list mailing list