OT: Python compatibility (was Re: Problem with continuing to run Getmail)
Charles Cazabon <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
Jude DaShiell <[email protected]> wrote: > One of the problems here is python itself. It changes versions too > rapidly and will change again from what I read in January 2021 alsong > with pip. If a way exists in python to query the version of the running > python then execute version-compatible code in an application that might > make these version changes a little easier to handle. In general, it's not necessary. Python is very careful to preserve backwards-compatibility -- with the one exception of the Python 2.x -> Python 3 transition. The core developers never want to go through anything that messy again. For the few cases where you do need to execute different code depending on the Python version in use -- getmail does this -- there are attributes in the sys module specifically for these sorts of uses. Note this is now thoroughly off-topic for the getmail list. Charles -- ----------------------------------------------------------------------- Charles Cazabon GPL'ed software available at: http://pyropus.ca/software/ -----------------------------------------------------------------------