Skip to content

pathlib.PurePath.parents rejects negative indexes #65240

Closed
@4kir4

Description

@4kir4
mannequin
BPO 21041
Nosy @warsaw, @pitrou, @bitdancer, @4kir4, @serhiy-storchaka, @MojoVampire, @JulienPalard, @pganssle, @thejcannon, @ju-sh, @VictorGob, @maxballenger, @ypankovych
PRs
  • bpo-21041: Add negative indexing to pathlib path parents #21799
  • Files
  • pathlib-parents-allow-negative-index.patch: the fix and tests
  • allowNegativeIndexParents.patch: the fix w/o tests
  • 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 = <Date 2020-11-23.20:06:38.142>
    created_at = <Date 2014-03-23.22:16:51.197>
    labels = ['type-feature', 'library', '3.10']
    title = 'pathlib.PurePath.parents rejects negative indexes'
    updated_at = <Date 2021-10-08.18:12:25.910>
    user = 'https://github.com/4kir4'

    bugs.python.org fields:

    activity = <Date 2021-10-08.18:12:25.910>
    actor = 'josh.r'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-11-23.20:06:38.142>
    closer = 'p-ganssle'
    components = ['Library (Lib)']
    creation = <Date 2014-03-23.22:16:51.197>
    creator = 'akira'
    dependencies = []
    files = ['34595', '48949']
    hgrepos = []
    issue_num = 21041
    keywords = ['patch']
    message_count = 26.0
    messages = ['214642', '214709', '214716', '214717', '215746', '223048', '223054', '223059', '225503', '332008', '352281', '352322', '363337', '363743', '373269', '373281', '375099', '375100', '375788', '381452', '381563', '381654', '381670', '381678', '381694', '403489']
    nosy_count = 13.0
    nosy_names = ['barry', 'pitrou', 'r.david.murray', 'akira', 'serhiy.storchaka', 'josh.r', 'mdk', 'p-ganssle', 'thejcannon', 'ju-sh', 'victorg', 'maxballenger', 'ypank']
    pr_nums = ['21799']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue21041'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesstdlibPython modules in the Lib dirtype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions