[C++-sig] invalid literal for int()
Paul Grenyer
paul at paulgrenyer.co.uk
Tue Mar 9 13:24:42 CET 2004
Hi
The plot has just thickened. The following doesn't produce any errors:
import string
houseno = ADD1[0:2]
if TITLE == "MR":
if int(houseno) > 0 and int(houseno) < 16:
outputFile = "Mr.out"
else:
outputFile = "rest.out"
However, if I remove the first if statement:
import string
houseno = ADD1[0:2]
if int(houseno) > 0 and int(houseno) < 16:
outputFile = "Mr.out"
else:
outputFile = "rest.out"
I am back to the "invalid literal for int()" error.
I must be doing something very wrong somewhere.
Regards
Paul
Paul Grenyer
Email: paul at paulgrenyer.co.uk
Web: http://www.paulgrenyer.co.uk
Have you met Aeryn: http://www.paulgrenyer.co.uk/aeryn/?
Version 0.3.0 beta now available for download.
More information about the Cplusplus-sig
mailing list