Is this a tiny bug?
Magnus Lie Hetland
mlh at idi.ntnu.no
Mon Oct 8 00:49:58 CEST 2001
"Julius Welby" <jwelby at waitrose.com> wrote in message
news:9pqail$js5 at dispatch.concentric.net...
> In Idle, when I use the tuple(sequence) built in function, the "tip" that
> pops up when I open the bracket is:
> tuple(sequence) -> list
> which surprised me, as I expected:
> tuple(sequence) -> tuple.
> The function obviously works fine, but I wondered what controls the "tip",
> and if this is a mistake.
Indeed a bit odd... Especially if you compare this "tip", the first
line of the docstring, with the rest:
>>> print tuple.__doc__
tuple(sequence) -> list
Return a tuple whose items are the same as those of the argument sequence.
If the argument is a tuple, the return value is the same object.
I'd say this is quite clearly an error.
> Just wondered.
Magnus Lie Hetland http://www.hetland.org
"Reality is that which, when you stop believing in
it, doesn't go away." -- Philip K. Dick
More information about the Python-list