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

Expose DirEntry constructor #71983

Open
moloney mannequin opened this issue Aug 18, 2016 · 1 comment
Open

Expose DirEntry constructor #71983

moloney mannequin opened this issue Aug 18, 2016 · 1 comment
Labels
extension-modules C modules in the Modules dir type-feature A feature request or enhancement

Comments

@moloney
Copy link
Mannequin

moloney mannequin commented Aug 18, 2016

BPO 27796

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 2016-08-18.19:38:12.339>
labels = ['type-feature']
title = 'Expose DirEntry constructor'
updated_at = <Date 2016-08-18.19:38:12.339>
user = 'https://bugs.python.org/moloney'

bugs.python.org fields:

activity = <Date 2016-08-18.19:38:12.339>
actor = 'moloney'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = []
creation = <Date 2016-08-18.19:38:12.339>
creator = 'moloney'
dependencies = []
files = []
hgrepos = []
issue_num = 27796
keywords = []
message_count = 1.0
messages = ['273063']
nosy_count = 1.0
nosy_names = ['moloney']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue27796'
versions = ['Python 3.6']

@moloney
Copy link
Mannequin Author

moloney mannequin commented Aug 18, 2016

As per a discussion on python-ideas [1], the consensus is that we should allow users to create a DirEntry object themselves. This would just take a path and call stat on it and cache the result of that stat call.

Nick Coghlan mentioned possibly allowing a pre-existing stat result to optionally be passed into the constructor [2].

[1] https://mail.python.org/pipermail/python-ideas/2016-August/041716.html
[2] https://mail.python.org/pipermail/python-ideas/2016-August/041713.html

@moloney moloney mannequin added the type-feature A feature request or enhancement label Aug 18, 2016
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@iritkatriel iritkatriel added the extension-modules C modules in the Modules dir label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant