Correct behavior?

2007-04-26 Thread asker
Hello:
I have next Python 2.5.1 instructions:

>>> a=12.34
>>> b=11.23
>>> print a+b
23.57

>>> print "%15.2f" % (a+b)
  23.57

But:
>>> print "%15.2f" % a+b
Traceback (most recent call last):
  File "", line 1, in 
TypeError: cannot concatenate 'str' and 'float' objects

Is this correct for Python to issue this error?

Thanks

-- 
http://mail.python.org/mailman/listinfo/python-list


What happened to http://www.pythonware.com/daily and http://mechanicalcat.net/pyblagg.html?

2007-04-07 Thread asker
These sites are not updated since almost one month.
Does anybody knows why?

-- 
http://mail.python.org/mailman/listinfo/python-list