Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The MEGA Python 3.x branch merge #565

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

Merged
merged 153 commits into from
Nov 9, 2011
Merged

The MEGA Python 3.x branch merge #565

merged 153 commits into from
Nov 9, 2011

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Oct 31, 2011

This is a merge of the matplotlib-py3 fork back into matplotlib master.

Here you should be able to see all in one place the changes made to
matplotlib make it run on Python 2.6 - 3.2.

mdboom and others added 30 commits February 22, 2011 10:21
svn path=/branches/py3k/; revision=8551
…le() are not converted by 2to3.

svn path=/branches/py3k/; revision=8552
svn path=/branches/py3k/; revision=8556
svn path=/branches/py3k/; revision=8561
Bump fontCache version number by a significant amount, since the master version number has increased in the meantime and we don't want the two to collide.
… parse as UTF-8.

Update font manager to have same font path search as master.
mdboom and others added 14 commits June 28, 2011 14:42
…e them for us under Python 3.x. This uses the "with" statement where possible.
Conflicts:
	CHANGELOG
	INSTALL
	doc/_templates/indexsidebar.html
	doc/mpl_toolkits/mplot3d/api.rst
	examples/api/sankey_demo_old.py
	examples/pylab_examples/stix_fonts_demo.py
	examples/user_interfaces/embedding_in_tk.py
	examples/user_interfaces/embedding_in_tk2.py
	lib/matplotlib/axes.py
	lib/matplotlib/backend_bases.py
	lib/matplotlib/backends/backend_gtk.py
	lib/matplotlib/backends/backend_qt4.py
	lib/matplotlib/backends/backend_svg.py
	lib/matplotlib/backends/qt4_editor/formlayout.py
	lib/matplotlib/lines.py
	lib/matplotlib/markers.py
	lib/matplotlib/mathtext.py
	lib/matplotlib/scale.py
	lib/matplotlib/sphinxext/ipython_directive.py
	lib/matplotlib/sphinxext/plot_directive.py
	lib/matplotlib/tests/baseline_images/test_axes/symlog.pdf
	lib/matplotlib/tests/baseline_images/test_axes/symlog.png
	lib/matplotlib/tests/baseline_images/test_axes/symlog.svg
	lib/matplotlib/tests/baseline_images/test_axes/symlog2.pdf
	lib/matplotlib/tests/baseline_images/test_axes/symlog2.png
	lib/matplotlib/tests/baseline_images/test_axes/symlog2.svg
	lib/matplotlib/tests/test_axes.py
	lib/matplotlib/tests/test_figure.py
	lib/matplotlib/tests/test_mlab.py
	lib/matplotlib/tests/test_text.py
	lib/matplotlib/textpath.py
	lib/matplotlib/ticker.py
	lib/mpl_toolkits/axisartist/angle_helper.py
	release/win32/data/setupwin.py
	release/win32/data/setupwinegg.py
	setupext.py
	src/_png.cpp
	src/_tkagg.cpp
…__bool__ is converted from __nozero__ by 2to3

so change this to return bool
@jenshnielsen
Copy link
Member

I tested the python3 branch on both python3 and 2
I see around 170 errors when running the test suite in python3 and have submitted a pull request against this pull request.

All the errors are all of TypeError: __bool__ should return bool, returned int

This is fixed by changing __nozero__ to return bool. 2to3 converts this to __bool__ that must return a bool not an integer. I don't know if this has any negative side effects on python2 nonzero but
it does not change the number of tests passing on python2.

In addition I see two new failures on both python3 and 2 using this branch. 'Tight_layout5' and
'interp_nearest_vs_none' both fail in the svg version because the none interpolation images are
updown inverted. This does not seem to happen on master. (I also see a failure on master using tight_layout5 but the difference is smaller and the image is not inverted)

@mdboom
Copy link
Member Author

mdboom commented Nov 4, 2011

I have all of the tests running in Python 3.x and Python 2.x now. Those who previously reported problems, @jenshnielsen, @leejjoon etc., can you please confirm?

@jenshnielsen
Copy link
Member

I see all tests passing in both python2.7 and python3.2. Thanks.

mdboom added a commit that referenced this pull request Nov 9, 2011
The MEGA Python 3.x branch merge
@mdboom mdboom merged commit 05929fe into matplotlib:master Nov 9, 2011
@mdboom mdboom deleted the py3-merge branch March 3, 2015 18:44
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.