Skip to content

Use "caller" instead of "global" to describe where imports go#953

Merged
mpoulin merged 1 commit into
realpython:masterfrom
apjanke:global-vs-caller-namespace
Dec 28, 2018
Merged

Use "caller" instead of "global" to describe where imports go#953
mpoulin merged 1 commit into
realpython:masterfrom
apjanke:global-vs-caller-namespace

Conversation

@apjanke

@apjanke apjanke commented Dec 17, 2018

Copy link
Copy Markdown
Contributor

This passage talks about import copying names into the global namespace. But doesn't it copy names into the calling module's namespace instead?

@mpoulin

mpoulin commented Dec 27, 2018

Copy link
Copy Markdown
Contributor

@apjanke I don't like the word caller because you don't call a module in the sense of calling a function or class method. What about saying "the local namespace" instead? That matches the terminology used in the official Python docs.

@apjanke

apjanke commented Dec 27, 2018

Copy link
Copy Markdown
Contributor Author

Yes, that makes sense.

I've updated this PR to do that.

@mpoulin mpoulin merged commit 979b4cd into realpython:master Dec 28, 2018
@apjanke apjanke deleted the global-vs-caller-namespace branch December 28, 2018 19:28
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