Loop and the list

Krzysztof Szynter dygimailNo at SPAMpoczta.fm
Fri May 14 11:44:59 EDT 2004


anton muhin <antonmuhin at rambler.ru> wrote in news:2gk3eeF3gha1U1 at uni-
berlin.de:

> >> max([1, 2, 3])
> 3

It works. Sometimes.

Don't know why, but executing the code, crashes the shell. I mean 
the shell missunderstood the commands, so i cannot even check max() 
working. The shell saw max() call like an int() call ;--<

After a while...

Aarggghhhh. Can somebeody tell me, why without starting this ^&%$ code, 
i have normally working shell, with max() function call, but after
executing the code, my shell starts to treat ONLY max() function as
int(), and the code crashes ale the time with:

'int' object is not collable

But without touching the code i can call max() in shell any time i want.

-- 
Krzysztof Szynter         :'''.       :.   :                  *
Dygi GG 1027078           :...' ..... : :  : ..... . . . .    . .....
http://newbie.friko.pl    :   : :.... :  : : :.... :: :: :..  : :....
dygimail(at)poczta(dot)fm :...' :.... :   ': :.... :   : :..' : :....



More information about the Python-list mailing list