Skip to content

Rename 'name' to 'fullname' argument to ExtensionFileLoader #74460

Closed

Description

@brettcannon
BPO 30274
Nosy @brettcannon, @sayanchowdhury, @iritkatriel, @zkneupper, @DonnaDia
PRs
  • bpo-30274: Rename 'name' to 'fullname' argument to ExtensionFileLoader. #1735
  • bpo-30274: Rename 'name' to 'fullname' argument to ExtensionFileLoader. #26195
  • bpo-30274: Rename 'name' to 'fullname' argument to ExtensionFileLoader #27981
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2017-05-04.22:24:49.383>
    labels = ['easy', 'type-feature', 'library', '3.11']
    title = "Rename 'name' to 'fullname' argument to ExtensionFileLoader"
    updated_at = <Date 2021-08-26.19:45:24.698>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2021-08-26.19:45:24.698>
    actor = 'python-dev'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2017-05-04.22:24:49.383>
    creator = 'brett.cannon'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30274
    keywords = ['patch', 'easy']
    message_count = 6.0
    messages = ['293022', '293122', '294193', '339886', '393702', '400363']
    nosy_count = 7.0
    nosy_names = ['brett.cannon', 'docs@python', 'python-dev', 'sayanchowdhury', 'iritkatriel', 'zkneupper', 'DonnaDia']
    pr_nums = ['1735', '26195', '27981']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue30274'
    versions = ['Python 3.11']

    Activity

    1. brettcannon commented on May 4, 2017

      @brettcannon
      MemberAuthor

      https://docs.python.org/3/library/importlib.html#importlib.machinery.ExtensionFileLoader says "fullname, path" for __init__(), but

      def __init__(self, name, path):
      says "name, path". While I would much rather change the parameter name to match the rest of the module, I don't think I'm comfortable with the backwards-compatibility breakage over just a single parameter name (although chances are no one will notice in either direction as everyone probably passes by position).

    2. brettcannon commented on May 5, 2017

      @brettcannon
      MemberAuthor

      Another option is to rename 'name' to 'fullname', make 'name' keyword-only, and then raise a DeprecationWarning if 'name' is used, eventually removing the keyword-only argument.

    3. sayanchowdhury commented on May 22, 2017

      sayanchowdhurymannequin
      Mannequin

      I am starting to work on this issue.

    4. brettcannon commented on Apr 10, 2019

      @brettcannon
      MemberAuthor

      I realized another solution to this is to make the argument positional-only, then the name simply doesn't matter. Probably unnecessary breakage, though.

    5. iritkatriel commented on May 14, 2021

      @iritkatriel
      Member

      The PR was reviewed but it now has merge conflicts and possibly a test failure on MacOS.

    6. added
      3.11only security fixes
      stdlibStandard Library Python modules in the Lib/ directory
      and removed
      docsDocumentation in the Doc dir
      on May 14, 2021
    7. changed the title [-]Make importlib.abc.ExtensionFileLoader.__init__() documentation match code[/-] [+]Rename 'name' to 'fullname' argument to ExtensionFileLoader[/+] on May 14, 2021
    8. DonnaDia commented on Aug 26, 2021

      DonnaDiamannequin
      Mannequin

      I want to work on it.

    9. transferred this issue fromon Apr 10, 2022
    10. brettcannon commented on May 4, 2022

      @brettcannon
      MemberAuthor

      This has been like this for so long I don't think it's worth the potential breakage to fix.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixeseasystdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions