qualifying built-in functions

Dominic Chambers dominic.chambers at telefonica.net
Thu May 1 18:10:18 EDT 2003


I just wrote a function accepting min and max parameters, and then tried
using the built-in max function, which quite reasonably told me:

TypeError: 'int' object is not callable

For know I can rename max to maxVal, or something, but I am interested
in knowing whether there is a way to qualify built-in functions so I
don't need to do this. Hardly critical, I know, but interesting none the
less.

Thanks, Dominic.







More information about the Python-list mailing list