Skip to content

Conversation

@ericsnowcurrently
Copy link
Member

@ericsnowcurrentlyericsnowcurrently commented Jun 2, 2023

The original name wasn't as clear as it could have been. This change includes the following:

  • rename the function
  • change the default value for "disable_check" to False
  • add clues to the docstring that folks should probably not use the function

@ericsnowcurrently
Copy link
MemberAuthor

CC @brettcannon

@ericsnowcurrentlyericsnowcurrently added the needs backport to 3.12 only security fixes label Jun 2, 2023
@ericsnowcurrentlyericsnowcurrently changed the title gh-104310: Rename the New Function in Importlib.utilgh-104310: Rename the New Function in importlib.utilJun 2, 2023
ericsnowcurrentlyand others added 2 commits June 2, 2023 15:25

def__init__(self, disable_check=True):
self.disable_check=disable_check
def__init__(self, disable_check):
Copy link
Member

Choose a reason for hiding this comment

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

Without the keyword, _incompatible_extension_module_restrictions(True) reads to me like incompatible module restrictions are turned on. I would either make the parameter keyword-only or invert the meaning (i.e., enable_check).

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Good point.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

done

@bedevere-bot
Copy link

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@ericsnowcurrentlyericsnowcurrently enabled auto-merge (squash) June 8, 2023 18:15
@ericsnowcurrentlyericsnowcurrently merged commit 34c63b8 into python:mainJun 8, 2023
@miss-islington
Copy link
Contributor

Thanks @ericsnowcurrently for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 8, 2023
…105255) The original name wasn't as clear as it could have been. This change includes the following: * rename the function * change the default value for "disable_check" to False * add clues to the docstring that folks should probably not use the function --------- (cherry picked from commit 34c63b8) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
@bedevere-bot
Copy link

GH-105518 is a backport of this pull request to the 3.12 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.12 only security fixes label Jun 8, 2023
@ericsnowcurrentlyericsnowcurrently deleted the fix-importlib-util-helper branch June 8, 2023 18:35
ericsnowcurrently added a commit that referenced this pull request Jun 8, 2023
… (gh-105518) The original name wasn't as clear as it could have been. This change includes the following: * rename the function * change the default value for "disable_check" to False * add clues to the docstring that folks should probably not use the function --------- (cherry picked from commit 34c63b8) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Sign up for freeto 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.

5 participants

@ericsnowcurrently@bedevere-bot@miss-islington@brettcannon@Eclips4