Message327348
Apologies for my tone. I wasn't aware that starting out with a PyPI module is the only accepted process for getting functionality into stdlib. That certainly is a lot of work for what would be a trivial handful of lines to parse key/value pairs and handle error paths, etc (and corresponding tests of course).
As a distribution developer, from my perspective we've already (finally) managed to reach widespread standardization and unification on a simple key/value pair specification, so it is particularly surprising to me that as a Python developer I cannot easily get to it.
IMHO, forcing the PyPI route seems like a recipe for scope creep to me in this case. Looking at that module, it tries to do so much more. /etc/os-release is widely accepted nowadays, and I think it would be widely useful to the majority of users to simply pass the values through to a Python dictionary, reflecting "this is what the OS says it is" over "this is my promised stable view". Many of the issues there are because it's trying to be "clever", IMHO, rather than just passing through the provided information from the platform. My proposed API promise would simply be "this is what os-release says" or "os-release information not available".
Of course the most popular PyPI module to solve a particular problem will always be the one with the widest scope, so there seems little point in writing a parallel minimal one. The cost of adding Yet Another Dependency has to be paid in either case. |
|
Date |
User |
Action |
Args |
2018-10-08 12:33:10 | rb | set | recipients:
+ rb, lemburg, doko, vstinner, christian.heimes, ned.deily, petr.viktorin, lukasz.langa, berker.peksag, serhiy.storchaka, mbussonn, yan12125 |
2018-10-08 12:33:10 | rb | set | messageid: <1539001990.77.0.545547206417.issue28167@psf.upfronthosting.co.za> |
2018-10-08 12:33:10 | rb | link | issue28167 messages |
2018-10-08 12:33:10 | rb | create | |
|