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

Skip to content

bpo-26184: import.rst: Add versionchanged note #277

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
Feb 26, 2017

Conversation

Mariatta
Copy link
Member

Add versionchanged note indicating that an ImportError is raised when exec_module() is defined, but create_module() is not.

http://bugs.python.org/issue26184

an ImportError is raised when exec_module() is defined, but
create_module() is not.
@Mariatta Mariatta added the docs Documentation in the Doc dir label Feb 24, 2017
Copy link
Contributor

@marco-buttu marco-buttu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Mariatta , it LGTM, but I would like you to add just a minor change, not directly related with this PR. In the first versionadded of the Loaders section, we do not have any markup for create_module():

.. versionadded:: 3.4
   The create_module() method of loaders.

It should be:

.. versionadded:: 3.4
   The :meth:`~importlib.abc.Loader.create_module`  method of loaders.

Thank you very much

@Mariatta
Copy link
Member Author

Thanks for the review, @Carreau and @marco-buttu .

@marco-buttu, the change that you requested will require backport to 3.5 and 3.6 branches, whereas this PR will only be backported to 3.6.

I will make that change as a separate PR from this.

@marco-buttu
Copy link
Contributor

@Mariatta I opened a bpo-29648 issue for the missing reference to create_module(). I am making the PR.

@Mariatta Mariatta merged commit 6b4a5f4 into python:master Feb 26, 2017
Mariatta added a commit to Mariatta/cpython that referenced this pull request Feb 26, 2017
Mention that an ImportError is raised when exec_module() is defined, but
create_module() is not.
(cherry picked from commit 6b4a5f4)
@Mariatta Mariatta deleted the bpo-26184-master branch February 26, 2017 15:42
Mariatta added a commit that referenced this pull request Feb 26, 2017

.. versionchanged:: 3.6
An :exc:`ImportError` is raised when ``exec_module()`` is defined but
``create_module`` is not.
Copy link
Member

@berkerpeksag berkerpeksag Feb 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess create_module should be create_module() here since the latter form is also used in the first versionchanged note.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this, @berkerpeksag! I fixed it in GH-325

akruis pushed a commit to akruis/cpython that referenced this pull request Jun 30, 2021
Convert all files to Python3 and run/test them once.
jaraco pushed a commit that referenced this pull request Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants