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

Remove from pyglet.gl import * #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MatthieuBizien
Copy link

Remove from pyglet.gl import *, and replace it with from pyglet import gl, as it's not recommended in the PEP8.

Wildcard imports (from import *) should be avoided, as they make it unclear which names are present in the namespace, confusing both readers and many automated tools.

Like #35, I believe that project is a great educational tool, an impressive achievement, and a reference for clean Python code.

MatthieuBizien added a commit to MatthieuBizien/Minecraft that referenced this pull request Dec 18, 2020
Like fogleman#35, I believe that project is a great educational tool, an impressive achievement, and a reference for clean Python code.

Warnings F403 and F405 are currently ignored. That could be removed when fogleman#124 is merged.

Warnings E128,E201,E226,E231 could be removed if autopep8 or similar is used. I advise to merge fogleman#124 before, to limit the risk of merge conflict.

I fixed 3 small pep8 issues in main.py too.
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

1 participant