Is this a tiny bug?

Steve Holden sholden at holdenweb.com
Sun Oct 7 17:08:22 EDT 2001


Well, nobody's perfect!

>>> type("abcz")
<type 'string'>
>>> type(tuple([1,2,3]))
<type 'tuple'>
>>> type((1,2,3))
<type 'tuple'>
>>> type(tuple("abc"))
<type 'tuple'>

But you've already revelaed enough knowledge for us to be sure that it's the
*documentation* that's at fault, and not the implementation. This doesn't
stop it being a big, of course. Since you're talking about tooltips, I
presume this is a PythonWin problem. Report it on ActiveState's site!

regards
 Steve
--
http://www.holdenweb.com/


"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.
>
> Just wondered.
>
> Julius
>
>





More information about the Python-list mailing list