Mercurial > hg > numerics
changeset 56:06e487f90e05
this now works
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 20 Jan 2015 16:16:33 -0800 |
parents | ecaf1d4b1c2c |
children | f16d5f013739 |
files | numerics/convert.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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__':