Base converter: try to convert 10i in balanced trinary to base 10.
commit78ac081bd0c1992072b1edb13795d0a887802dbd
authorJeff Connelly <shellreef+git@gmail.com>
Sun, 25 May 2008 22:32:00 +0000 (25 15:32 -0700)
committerJeff Connelly <shellreef+git@gmail.com>
Sun, 25 May 2008 22:32:00 +0000 (25 15:32 -0700)
tree6cd8fef6538565c9b7e75278641c1487097a8385
parent4f3b3d71000e5c8240647a2c10c081259a68b4c1
Base converter: try to convert 10i in balanced trinary to base 10.

Fails with:

Traceback (most recent call last):
  File "base_converter.py", line 160, in <module>
    print int_cnvrt("10i", -3, 10)
  File "base_converter.py", line 128, in int_cnvrt
    return "" + sum
TypeError: cannot concatenate 'str' and 'int' objects
tools/base_converter.py