4 ms·
I'm not sure I get the point of this. If you already have to write the code using the equivalent old syntax, and keep maintaining it, why write the code a secon
by remram 5y ago
I'm not sure I get the point of this. If you already have to write the code using the equivalent old syntax, and keep maintaining it, why write the code a second time with the new syntax?
- theptip 5y agoOld versions get deprecated in libraries, you don’t just cut over to a new way and break your callers on upgrade. If you own all the callers of your api in the same repo, you probably don’t want this, you just replace all the old callers along with the implementation.
- remram 5y agoWhat I mean is (looking at the example in the README): when `asyncio.run()` was added, `asyncio.get_event_loop().run_until_complete()` didn't stop working. What is the point of making two versions of the functions, when one of them already supports every Python you target?