Skip to content
New issue

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

Core python3 support #30

Merged
merged 31 commits into from Mar 12, 2015
Merged

Core python3 support #30

merged 31 commits into from Mar 12, 2015

Conversation

jck
Copy link
Member

@jck jck commented Mar 11, 2015

This PR makes MyHDL's core compatible with python3.

jck added 30 commits March 11, 2015 17:32
delete module, disable test it is not used anywhere
python3 deprecates __nonzero__ and introduces __bool__
This commit introduces __bool__ while maintaining python2 compatibility
Also, remove the __div__ and __rdiv__ magic methods
In python 2, None >= 0 returns false.
However, in py3, None cannot be compared with zero. This commit ensures
identical behaviour in py2,3 when min is none.
@jandecaluwe jandecaluwe merged commit a2fd9c9 into myhdl:master Mar 12, 2015
@jandecaluwe
Copy link
Contributor

Fantastic work and a joy to review and learn from - thx!

@cfelton
Copy link
Member

cfelton commented Mar 12, 2015

+1, amazing work @jck! Thanks for all the contributions.

@jck jck deleted the py3-core branch March 13, 2015 02:06
@jck
Copy link
Member Author

jck commented Mar 13, 2015

I can't take all the credit. @jmgc and the excellent test suite made this process simple :)

Python 3 support for conversion and cosimulation is coming very soon!

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.

None yet

3 participants