Pulling numbers from ASCII filename not working

mrmakent at cox.net mrmakent at cox.net
Tue Jan 24 21:10:57 CET 2006

First: http://www.catb.org/~esr/faqs/smart-questions.html

You say your program 'crashes' when it gets to 'int(LatString)'.  I'm
guessing (and it's entirely a guess, since you don't tell us) that you
are getting an exception like 'ValueError: invalid literal for int():
whatever'.  I'm guessing again that 'LatString' doesn't contain what
you think it does at this point.  Have you tried inserting a print
statement to show you just what 'LatString' contains?

More information about the Python-list mailing list