String formatting error

Posted by wrongusername on Stack Overflow See other posts from Stack Overflow or by wrongusername
Published on 2010-03-15T20:19:57Z Indexed on 2010/03/15 20:39 UTC
Read the original article Hit count: 434

Using the code print('{0} is not'.format('That that is not')) in Python 3.1.1, I get the following error:

AttributeError: 'str' object has no attribute 'format'

when I delete the line Netbeans automatically inserted at the beginning:

from distutils.command.bdist_dumb import format

which itself causes an error of

ImportError: cannot import name format

What am I doing wrong here?

© Stack Overflow or respective owner

Related posts about python

Related posts about format