Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pathlib.Path: add follow_symlinks argument to stat() and chmod() #84087

Closed
barneygale mannequin opened this issue Mar 8, 2020 · 3 comments
Closed

pathlib.Path: add follow_symlinks argument to stat() and chmod() #84087

barneygale mannequin opened this issue Mar 8, 2020 · 3 comments
Labels
3.9 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@barneygale
Copy link
Mannequin

barneygale mannequin commented Mar 8, 2020

BPO 39906
Nosy @pitrou, @zooba, @miss-islington, @barneygale
PRs
  • bpo-39906: add follow_symlinks parameter to pathlib.Path.stat() and chmod() #18864
  • bpo-39906: Document new follow_symlinks argument to pathlib.Path.stat() and chmod() in 3.10 whatsnew. #26087
  • bpo-39906: Document new follow_symlinks argument to pathlib.Path.stat() and chmod() in 3.10 whatsnew. #26089
  • [3.10] bpo-39906: Document new follow_symlinks argument to pathlib.Path.stat() and chmod() in 3.10 whatsnew. (GH-26089) #26100
  • 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 2021-04-07.15:53:57.312>
    created_at = <Date 2020-03-08.20:35:19.791>
    labels = ['type-feature', 'library', '3.9']
    title = 'pathlib.Path: add `follow_symlinks` argument to `stat()` and `chmod()`'
    updated_at = <Date 2021-05-13.12:35:11.182>
    user = 'https://github.com/barneygale'

    bugs.python.org fields:

    activity = <Date 2021-05-13.12:35:11.182>
    actor = 'miss-islington'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-04-07.15:53:57.312>
    closer = 'steve.dower'
    components = ['Library (Lib)']
    creation = <Date 2020-03-08.20:35:19.791>
    creator = 'barneygale'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39906
    keywords = ['patch']
    message_count = 3.0
    messages = ['363681', '390439', '393575']
    nosy_count = 4.0
    nosy_names = ['pitrou', 'steve.dower', 'miss-islington', 'barneygale']
    pr_nums = ['18864', '26087', '26089', '26100']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue39906'
    versions = ['Python 3.9']

    @barneygale
    Copy link
    Mannequin Author

    barneygale mannequin commented Mar 8, 2020

    As of Python 3.3, os.lstat() and os.lchmod() are available as os.stat(follow_symlinks=False) and os.chmod(follow_symlinks=False), but an equivalent change didn't make it into pathlib. I propose we add the follow_symlinks argument to Path.stat() and Path.chmod() for consistency with os and because the new notation is arguable clearer for people who don't know many system calls off by heart :)

    @barneygale barneygale mannequin added 3.9 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Mar 8, 2020
    @zooba
    Copy link
    Member

    zooba commented Apr 7, 2021

    New changeset abf9649 by Barney Gale in branch 'master':
    bpo-39906: Add follow_symlinks parameter to pathlib.Path.stat() and chmod() (GH-18864)
    abf9649

    @zooba zooba closed this as completed Apr 7, 2021
    @zooba zooba closed this as completed Apr 7, 2021
    @miss-islington
    Copy link
    Contributor

    New changeset 2d972b8 by Miss Islington (bot) in branch '3.10':
    bpo-39906: Document new follow_symlinks argument to pathlib.Path.stat() and chmod() in 3.10 whatsnew. (GH-26089)
    2d972b8

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants