TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple'
Peter Otten
__peter__ at web.de
Sun May 26 04:23:40 EDT 2013
Νίκος Γκρ33κ wrote:
> Hello this is the following snippet that is causing me the error i mention
> in the Subject:
> print( "<tr><td><center><a href='http://superhost.gr/?show=log&page=%s'><font color=tomato size=5> %s </a></td>" ) % (url, url)
Hint (Python 3):
>>> print("a=%s, b=%s") % (1, 2)
a=%s, b=%s
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple'
>>> print("a=%s, b=%s" % (1, 2))
a=1, b=2
More information about the Python-list
mailing list