On Wed, 14 Apr 2021 at 18:04, Eric V. Smith <e...@trueblade.com> wrote:
>> Anyway, the question now for me is whether this is worth any more of my time.
>>
>> So:
>> - Is there someone willing to sponsor?
>> - Do folks generally think there's a chance of it being accepted without a 
>> huge debate and expansion of scope.
>>
>> I think that before these can be answered, you need to decide why this needs 
>> to be standardized. I don't see any reason to standardize it unless there's 
>> some programmatic use for these version strings. If it's just the user 
>> poking around on the REPL, then I think the status quo is fine. I've read 
>> the PEP, and the User Stories section talks about user convenience, not 
>> programmatic access.
>
> I also think the distribution version is more useful than any __version__ 
> information in each module/package. I realize this information might not be 
> available, depending on how the code was installed (say, just by copying some 
> files into the right place).

Agreed. The original PEP was very limited, just proposing a string
value for user convenience, with no programmatic interface. Doing
anything more than that is opening up a whole load of complexity and
compatibility (with packaging) that no-one has expressed any need for.

The distribution version (exposed via importlib.metadata) is the
correct thing to use for anything programmatic.

Paul

PS I see Barry plans on rejecting the PEP, which I think is probably
the right decision, given the way this thread has developed.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/MQIFSJYQYCY4YBHVECJ7H2WR443EE32W/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to