We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = 'https://github.com/ronaldoussoren' closed_at = <Date 2012-06-14.16:47:48.622> created_at = <Date 2012-06-14.16:41:06.237> labels = ['OS-mac', 'build', 'invalid'] title = 'Dictionary Creation Fails with integer key' updated_at = <Date 2012-06-14.17:39:39.905> user = 'https://bugs.python.org/patajegcpacom'
bugs.python.org fields:
activity = <Date 2012-06-14.17:39:39.905> actor = 'r.david.murray' assignee = 'ronaldoussoren' closed = True closed_date = <Date 2012-06-14.16:47:48.622> closer = 'amaury.forgeotdarc' components = ['macOS'] creation = <Date 2012-06-14.16:41:06.237> creator = 'pata@jegcpa.com' dependencies = [] files = ['26007'] hgrepos = [] issue_num = 15069 keywords = [] message_count = 3.0 messages = ['162805', '162806', '162810'] nosy_count = 4.0 nosy_names = ['ronaldoussoren', 'amaury.forgeotdarc', 'r.david.murray', 'pata@jegcpa.com'] pr_nums = [] priority = 'normal' resolution = 'not a bug' stage = None status = 'closed' superseder = None type = 'compile error' url = 'https://bugs.python.org/issue15069' versions = ['Python 3.2']
The text was updated successfully, but these errors were encountered:
Attempting to import pyserial. In module serialposix.py a dict declaration starting on line 64;
baudrate_constants = { 0: 0000000, 50: 0000001, 75: 0000002, 110: 0000003, ...etc
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "serialposix.py", line 64 50: 0000001, ^ SyntaxError: invalid token
MacOSX 10.6.8 32bit x86 python 3.2.3 (v3.2.3:3d0686d90f55, Apr 10 2012, 11:09:56)
Sorry, something went wrong.
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.
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.
ronaldoussoren
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: