On Thu, 15 Apr 2021 16:12:57 -0700 Brett Cannon <br...@python.org> wrote: > > So I don't think version comparison occurs often enough to be in the > stdlib, and the fact that an external project exists which isn't interested > in being put in the stdlib suggests to me it isn't worth doing. > > But that's a separate topic to discuss at the language summit. :)
Ah, I should submit a question then. > > That specific way is a Python standard (PEP 440). Having the > > functionality in the stdlib would encourage people to use it. Not > > having it in the stdlib encourages people to use adhoc version parsing, > > or worse, naive string comparison. > > I don't know if I draw the same line since the packaging community is > relying on 'packaging' without issue for this exact thing. Right, but the functionality is useful generally, not only for the packaging generally. > But this thread is about standardizing on __version__ which then led to > wanting to bring in some Version object into the stdlib to make that more > useful. So to me they are tied together, else a separate thread should > probably be started if a new module *just *for version parsing support is > desired. You're right, this thread was hijacked somewhat for the Version object discussion. Regards Antoine. _______________________________________________ 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/U2KO5AZRIHNXWKRQ5YEY3CGW4FZ6SAEU/ Code of Conduct: http://python.org/psf/codeofconduct/