python / cpython

The Python programming language
https://www.python.org
Other
62.5k stars 30k forks source link

Richer stat object #63924

Open pjenvey opened 10 years ago

pjenvey commented 10 years ago
BPO 19725
Nosy @ncoghlan, @pitrou, @pjenvey

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: ```python assignee = None closed_at = None created_at = labels = ['type-feature', 'library'] title = 'Richer stat object' updated_at = user = 'https://github.com/pjenvey' ``` bugs.python.org fields: ```python activity = actor = 'BreamoreBoy' assignee = 'none' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = creator = 'pjenvey' dependencies = [] files = [] hgrepos = [] issue_num = 19725 keywords = [] message_count = 3.0 messages = ['203892', '228399', '232340'] nosy_count = 3.0 nosy_names = ['ncoghlan', 'pitrou', 'pjenvey'] pr_nums = [] priority = 'normal' resolution = None stage = None status = 'open' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue19725' versions = ['Python 3.5'] ```

pjenvey commented 10 years ago

With discussion of the new Pathlib API there's been suggestion (and maybe even already consensus) that some of the convenience APIs provided by it should exist on stat result objects.

It's maybe too late for 3.4, but let's track exactly what additions are wanted

83d2e70e-e599-4a04-b820-3814bbdb9bef commented 9 years ago

@Philip could you provide a reference to (say) discussions on python-dev for lesser mortals such as myself?

pjenvey commented 9 years ago

I can't find the paper trail of what I originally thought was a "consensus" or even that many clear pronouncements about it, but I recall Nick being originally opposed to it but he later changed his mind, you can see his approval here:

https://mail.python.org/pipermail/python-dev/2013-May/125809.html

'It's also quite likely the "rich stat object" API will be pursued for 3.5'

https://mail.python.org/pipermail/python-dev/2013-November/130582.html

https://mail.python.org/pipermail/python-dev/2013-November/130588.html

Antoine seems ok w/ it, encouraging others to make it happen:

https://mail.python.org/pipermail//python-dev/2013-September/128708.html

You can probably find a bit more discussion within those threads