Skip to content

Py2to3#1

Merged
boriel merged 26 commits intomasterfrom
py2to3
May 12, 2017
Merged

Py2to3#1
boriel merged 26 commits intomasterfrom
py2to3

Conversation

@boriel
Copy link
Copy Markdown
Collaborator

@boriel boriel commented May 12, 2017

No description provided.

boriel added 26 commits May 2, 2017 22:11
Add relative imports
Make it Python 3.5+ compatible.
Also adds __hash__() definition for Symbols having __eq__
Needed for python2/3 compatibility
Binary files must not be treated as text ones.
Also make the code compatible with python 3.5+
Uses /usr/bin/env python in main executables shebang lines
(in other places is not relevant). This way we avoid problems
using python out of current virtualenv.
Defaulted states cause ZX Basic to fail.
Fortunately this can be disabled.
https://github.com/dabeaz/ply/blob/master/CHANGES
Ply removed from distribution
Uses bytes (not strings) for output.
Uses __eq__ and others instead, to make the code py2 and py3
compatible. Also adds capability to directly use + / - with
a number instance, for code simplication.
Also uses super() instead of calling the base class directly.
When comparing the argument to another instance, ensure
it's a Symbol instance. No other thing can be an argument.
Also adds OPTIONS.debugger to zxbparser.
Needed for convergente from py2 to py3
Needed for convergence from py2 to py3
Fixes potential bug that might allow dupe elements
under some circumstances.
This make the output identical among different python
versions (2 and 3), this making testing easier.
This make the output identical among different python
versions (2 and 3), this making testing easier.
When importing test.py as a module, it might
crash as ZXBASIC ROOT was not global as a module. Fixed.
@boriel boriel merged this pull request into master May 12, 2017
@boriel boriel deleted the py2to3 branch June 26, 2017 21:31
boriel added a commit that referenced this pull request Nov 9, 2020
boriel pushed a commit that referenced this pull request Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant