# HG changeset patch # User Jeff Hammel # Date 1421799393 28800 # Node ID 06e487f90e052cf2219ddb558e541d95d625cb09 # Parent ecaf1d4b1c2caeded18479a95d583ca6565925cf this now works diff -r ecaf1d4b1c2c -r 06e487f90e05 numerics/convert.py --- a/numerics/convert.py Tue Jan 20 16:12:40 2015 -0800 +++ b/numerics/convert.py Tue Jan 20 16:16:33 2015 -0800 @@ -36,7 +36,7 @@ for value in values: try: t(value) - except TypeError: + except ValueError, TypeError: break else: return t @@ -67,7 +67,7 @@ # print type information writer = csv.writer(sys.stdout) - writer.writerow(types) + writer.writerow([t.__name__ for t in types]) if __name__ == '__main__':