Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix lorenz_attractor example on Python 3 #969

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 1 commit into from
Jun 28, 2012
Merged

Fix lorenz_attractor example on Python 3 #969

merged 1 commit into from
Jun 28, 2012

Conversation

cgohlke
Copy link
Contributor

@cgohlke cgohlke commented Jun 28, 2012

No description provided.

@mdboom
Copy link
Member

mdboom commented Jun 28, 2012

Merging.

mdboom added a commit that referenced this pull request Jun 28, 2012
Fix lorenz_attractor example on Python 3
@mdboom mdboom merged commit b448b1f into matplotlib:master Jun 28, 2012
@pelson
Copy link
Member

pelson commented Jun 29, 2012

I don't have a problem with this change, but it does brings up an interesting question about the python3 ability of the examples. A quick 2to3 on them shows that there are a host of (automatable) changes needed, but that would obviously break the python2 support. Is there any strategy on this issue?

@cgohlke
Copy link
Contributor Author

cgohlke commented Jun 29, 2012

Almost all examples can run unchanged under Python 2 and 3 without the need to run 2to3. I vote for fixing the examples that fail.

@mdboom
Copy link
Member

mdboom commented Jul 1, 2012

To comment on the strategy: The plan (for now) is to require 2to3 on code in the matplotlib library itself, and write simpler cross-version code for all of the examples. Many of the examples were tested under Python3 at some point -- some may have been missed.

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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.