verify whether "str" is still callable in Python 2.5.1

Peter Otten __peter__ at
Mon Aug 13 10:48:12 CEST 2007

Ge Chunyuan wrote:

> Once use ActivePython latest version for Python 2.5.1.
> I happened to find function "str" is not callable, but it is available
> for Python 2.5.

If it's not callable it's not the str() function, but something else with a
badly chosen variable name.

>>> callable(str)
>>> str = "yadda"
>>> callable(str)


More information about the Python-list mailing list