This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Stranger381, ezio.melotti, mark.dickinson
Date 2010-06-02.14:52:38
SpamBayes Score 8.627127e-11
Marked as misclassified No
Message-id <1275490360.73.0.874995475595.issue8878@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2010-06-02 14:52:40mark.dickinsonsetrecipients: + mark.dickinson, ezio.melotti, Stranger381
2010-06-02 14:52:40mark.dickinsonsetmessageid: <1275490360.73.0.874995475595.issue8878@psf.upfronthosting.co.za>
2010-06-02 14:52:39mark.dickinsonlinkissue8878 messages
2010-06-02 14:52:38mark.dickinsoncreate