3 ms·
You can also write code that is compatible with both C and Perl. Doesn't make it a good idea. Shebang doesn't work on a per-module basis, which is what I am a
by colanderman 11y ago
You can also write code that is compatible with both C and Perl. Doesn't make it a good idea.
Shebang doesn't work on a per-module basis, which is what I am advocating. If there were a way to specify versions at that granularity, there would be no need for 2/3 polyglot tricks.
- takeda 11y agoThat's a strawman argument. Majority of python libraries are written that way. I guess I'm incredibly lucky or you're incredibly unlucky, because I did not run into a library that would only run on Python 2. Ok, I did run into some, but those were no longer maintained and frankly I would not use them even on Python 2.
- berntb 11y agoSo the problems with upgrading from Python 2 to 3 because of library support are over? Including linked C code? Or is that just your lucky experience?