By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,173 Members | 796 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,173 IT Pros & Developers. It's quick & easy.

Maybe a little bug of ipython 0.7.3 ?

P: n/a
I'm new to ipython, and i found it a very cool product.

$ ipython
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 0.7.3 -- An enhanced Interactive Python.
<snip>

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:*

In [10]: b = range(100)

In [11]: b?
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 <..., 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
96, 97, 98, 99]
<snip>

In [12]: c = range(10000)

In [13]: c?
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 <..., 9984, 99
85, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996,
9997, 9998, 9999]
<snip>
Jan 8 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In <ma***************************************@python. org>,
fd********@gmail.com 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
Jan 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.