Closed danieldaeschle closed 6 years ago
It's not supposed to be relevant, but it's not a massive overhead to support at the moment (although the new new style .format
strings are probably not supported on Python 2?) and I still come across environments and distributions that default to Python 2, treating Python 3 as a second class citizen :-(
Okay, still on python2 as default? Haha Python 3 is etablished very often now. Most of the big libraries has started to drop Python 2 support.
format example:
# Python 2
"%s" % my_str
# Python 2 & 3
"{0}".format(my_str) # or
"{my_str}".format(my_str="my_str")
# Python 3.6 only
my_str = "my_str"
f"{my_str}"
I would recommend to use .format()
Marked as wontfix
, but - at some point - we will.
Just because python2 isn't relevant anymore...