Message106889
The code you show works fine for me.
The error you're seeing is almost certainly the result of inadvertently using 'str' as a variable name earlier in the IDLE session:
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> str = '4bf3e914'
>>> hell = str(123)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'str' object is not callable
>>> help(str)
no Python documentation found for '4bf3e914' |
|
Date |
User |
Action |
Args |
2010-06-02 14:52:40 | mark.dickinson | set | recipients:
+ mark.dickinson, ezio.melotti, Stranger381 |
2010-06-02 14:52:40 | mark.dickinson | set | messageid: <1275490360.73.0.874995475595.issue8878@psf.upfronthosting.co.za> |
2010-06-02 14:52:39 | mark.dickinson | link | issue8878 messages |
2010-06-02 14:52:38 | mark.dickinson | create | |
|