verify whether "str" is still callable in Python 2.5.1
Ge Chunyuan
hhygcy at gmail.com
Mon Aug 13 04:59:52 EDT 2007
On Aug 13, 4:48 pm, Peter Otten <__pete... at web.de> wrote:
> 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)
> True
> >>> str = "yadda"
> >>> callable(str)
>
> False
>
> Peter
oh, please forget my silly question.
you are absolutely right.
More information about the Python-list
mailing list