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

add CWD to sys.path *after* stdlib #11502

Merged
merged 1 commit into from
Nov 29, 2018
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Nov 21, 2018

this deviates from Python's own interactive behavior, but seems to avoid problems where folks create stdlib-names like email.py.

They can still collide with packages, but that seems less common than generic names like email and code.

I'm not entirely sure if it's a good idea to deviate from Python like this, but it would solve a problem that confuses our users from time to time.

this deviates from Python's own interactive behavior,
but seems to avoid problems where folks create stdlib-names like `email.py`.

They can still collide with packages,
but that seems less common than generic names like `email` and `code`
@Carreau
Copy link
Member

Carreau commented Nov 27, 2018

+1. Do you want to add a test ?

@Carreau Carreau added this to the 7.2 milestone Nov 29, 2018
@Carreau
Copy link
Member

Carreau commented Nov 29, 2018

Probably rare enough to not need test.

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.

2 participants