[Tutor] min max confusion

frank h. frank.hoffsummer at gmail.com
Wed Feb 7 23:00:13 CET 2007


:-))
turns out I found the problem: max was a local integer variable in my
namespace. as such it was obviously not callable....

On 2/7/07, frank h. <frank.hoffsummer at gmail.com> wrote:
>
> hello all
> here is a disturbing session with min() and max() for which I have
> absolutely no explanation
>
> >>> t = (952L, 945L, 941L, 939L, 949L, 972L, 956L, 965L, 973L, 965L)
> >>> min(t)
> 939L
> >>> max(t)
> exceptions.TypeError                                 Traceback (most
> recent call last)
> TypeError: 'int' object is not callable
>
>
> why doesn't max(t) work?! I am using python 2.4.4
> thanks for any insight you might have
> -frank
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070207/10336d69/attachment.htm 


More information about the Tutor mailing list