[Tutor] "TypeError: 'int' object is not callable"??

Jacob S. keridee at jayco.net
Thu Dec 16 02:46:04 CET 2004


Ha! That's what I was looking for! The builtin apply function! The only way
I could send the *args to the function was through a list, and function
calls see a list as one argument. The apply argument doesn't! Thanks Bob.

Jacob Schmidt

> At 12:39 PM 12/8/2004, Bob Gailer wrote:
> >At 11:27 AM 12/8/2004, Dick Moores wrote:
> >>My thanks to both Max and Kent. So Python tries, and fails, to see 2()
as
> >>a function!
> >>
> >>I also got some help from <http://www.pcwebopedia.com/TERM/c/call.html>
> >
> >Note that SOME languages use () for call. There are other call
constructs,
> >such as:
> >
> >DO function WITH parameters (FoxPro, similar in COBOL)
> >
> >function parameter   or   parameter1 function parameter2 (APL)
>
> I should add the Python builtin function apply: apply(function,
parameters...)
>
> Bob Gailer
> bgailer at alum.rpi.edu
> 303 442 2625 home
> 720 938 2625 cell
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>



More information about the Tutor mailing list