bpo-30274: Rename 'name' to 'fullname' argument to ExtensionFileLoader. by zkneupper · Pull Request #26195 · python/cpython (original) (raw)

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