arraybolt3,
@arraybolt3@theres.life avatar

This is why I hate Python.

#python

hugovk,
@hugovk@mastodon.social avatar

@arraybolt3 What version ranges do you need to support?

That 3.12 comment should read 3.2:

https://docs.python.org/3/whatsnew/3.2.html#configparser

So if you don't need to support Python 3.0 (EOL 2009) and 3.1 (EOL 2012), you can remove that middle bit.

And if you don't need to support Python 2 (EOL 4 years ago), you can drop the top bit too.

https://devguide.python.org/versions/

paarth,
@paarth@pirate.lgbt avatar

@hugovk @arraybolt3 oh lord, yeah, please don't write code that supports python3.2. Don't encourage those people 😅

hugovk,
@hugovk@mastodon.social avatar

@paarth @arraybolt3 We can support 3.2-3.13 with just one import, it's 3.1 and older that need extra handling!

paarth,
@paarth@pirate.lgbt avatar

@hugovk @arraybolt3 aha yep that's what I meant!
(that said, I'd not even bother supporting anything <3.8 personally)

fohrloop,
@fohrloop@fosstodon.org avatar

@paarth @hugovk @arraybolt3 still surprisingly many use python 3.7 or even 3.6. At least if you trust the numpy download statistics, which shows that 3.7 is still the most popular one

hugovk,
@hugovk@mastodon.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • ngwrru68w68
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • Youngstown
  • everett
  • slotface
  • rosin
  • osvaldo12
  • mdbf
  • kavyap
  • cisconetworking
  • JUstTest
  • tester
  • normalnudes
  • cubers
  • khanakhh
  • Durango
  • ethstaker
  • tacticalgear
  • Leos
  • provamag3
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines