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:
- An error would be raised if both a
fullname
arg andname
kwarg (andpath
arg) were passed. - If only a
path
arg andname
kwarg were passed,path
would be the first positional argument, acting asfullname
, and this would raise an error