Skip to content

bpo-30274: Rename 'name' to 'fullname' argument to ExtensionFileLoader.#26195

Closed
zkneupper wants to merge 3 commits into
python:mainfrom
zkneupper:bpo-30274
Closed

bpo-30274: Rename 'name' to 'fullname' argument to ExtensionFileLoader.#26195
zkneupper wants to merge 3 commits into
python:mainfrom
zkneupper:bpo-30274

Conversation

@zkneupper
Copy link
Copy Markdown
Contributor

@zkneupper zkneupper commented May 17, 2021

bpo-30274: Rename name to fullname argument to ExtensionFileLoader.

This PR replaces the positional argument name for the ExtensionFileLoader class with the positional argument fullname.

Old: __init__(self, name, path):
New: __init__(self, fullname, path):

name is not added as a kwarg, unlike in #1735

In PR #1735:

  1. An error would be raised if both a fullname arg and name kwarg (and path arg) were passed.
  2. If only a path arg and name kwarg were passed, path would be the first positional argument, acting as fullname, and this would raise an error

bpo: https://bugs.python.org/issue30274

https://bugs.python.org/issue30274


def __init__(self, name, path):
self.name = name
def __init__(self, fullname, path):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The idea is to make name deprecated first and then switch to only allowing fullname.

@DimitrisJim
Copy link
Copy Markdown
Contributor

If you'd like to pick this up, I'd suggest you work on sayanchowdhury's PR and take care of the conflicts.

That PR has already been reviewed and has been (basically) accepted, the issues brought up only need to be resolved.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 1, 2021

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants