4 ms·
Can't wait to make my programs incompatible with all previous versions!
by bluefox 6y ago
Can't wait to make my programs incompatible with all previous versions!
- smitty1e 6y ago"What do you mean it crashed? Just upgrade everything to the latest version."
- nickjj 6y agoFortunately we have tools like Docker and to a lesser extent Python Virtual Environments to help deal with this in a sane way. But yeah for 1 off zero dependency Python scripts I won't be using the new features until major distros ship with 3.10 by default. Part of the appeal to me of Python is most distros and operating systems have it installed by default. Being able to curl down a single file and run it is really nice. For that to work requires using a version of Python that most folks have by default. That means coding against 3.6's features (at least we can use f-strings now!).
- Already__Taken 6y agoI haven't found this much use because you still can't assume the default version really and pip seems to be broken all the time by default.
- singularity2001 6y agoIn utopia every new version would come with a tool to convert new code to old code (for all those non-nightly systems). ideally even with file extensions: .py3 runs on all python3 versions .py38 runs on all python3.9 versions and above
- aflag 6y agoThat's not really enough as you depend on libraries you don't own. All the sudden in order to update a small library you use you need to update to a new version of Python. So, yeah, new syntax is always disruptive. My utopia has new syntax being added very seldomly with loads of notice period and a `from __future__ import newsyntax` phase before the syntax is considered "production ready". So, hopefully, by the time people start using it, all relevant version of Python supports it.
- GloriousKoji 6y agoUgh. I hate this rapid release cycle with introduction of new syntax. One of my colleagues keeps insisting on using the latest and greatest version all the time so everything he writes keeps breaking everyone's environments since they're not savvy to upgrade python, install packages and point the IDE to the new python installation. It's a total 180 from when he pushed python 2 when it only had a few years until it's EOL. Like f-strings look nice and all but there's nothing wrong with the format method and there's always the locals hack to achieve the same thing.