New answers tagged

1 vote

Python 2 and 3 csv module text-binary mode backwards compatibility

This is not different than what Patrick Artner suggested but might give more flexibility for argument assignment: import sys params = {"mode": 'w', "newline": ''} # or any other ...
fatih_dur's user avatar
  • 276
10 votes

Virtual threads in Java with backwards compatibility

ExecutorService is your friend First of all, you can use ExecutorService to your advantage. Once you have an ExecutorService (which you can get for both virtual (if available) and platform threads), ...
dan1st's user avatar
  • 14.5k

Top 50 recent answers are included