[issue15069] Dictionary Creation Fails with integer key

2012-06-14 Thread R. David Murray
R. David Murray added the comment: And yes, a number with leading zeros is an invalid token in Python3, because in Python2 it was an octal number, and now we spell octal as, eg, 0o0001. -- nosy: +r.david.murray ___ Python tracker

[issue15069] Dictionary Creation Fails with integer key

2012-06-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You are importing with Python3 a module written for Python2. pyserial-2.6 comes with a "setup.py" script that will do the conversion, you should run it and not try to import the source code directly. -- nosy: +amaury.forgeotdarc resolution: ->

[issue15069] Dictionary Creation Fails with integer key

2012-06-14 Thread Pat
New submission from Pat : Attempting to import pyserial. In module serialposix.py a dict declaration starting on line 64; baudrate_constants = { 0: 000, 50: 001, 75: 002, 110: 003, ...etc Traceback (most recent call la