In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > In [8]: a = range(1000) > > In [9]: a? > Type: list > Base Class: <type 'list'> > String Form: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, > 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 <...> 0, 981, 98 > 2, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, > 997, 998, 999] > Namespace: Interactive > Length: 1000 > Docstring: > list() -> new list > list(sequence) -> new list initialized from sequence's items > > *Please note that there is an extra "0" after "**26 <...>", which > doesn't appear for the followling cases:*
This 0 is the last digit of `980`. If the string form is very long the string itself is shortened by leaving out the middle part. It's irrelevant which object it was before the conversion to a string. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list