You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite the fact that Python 2.7 wil be declared end of life in 1/2020, there are numerous projects out there that still support it. If any of those wants to start using istr, the main inhibitor will be that istr does not support 2.7. My own Python projects are all of that category :-)
I think what it takes to add Python 2.7 support is:
using six.text_type instead of str (or because nothing else would be used of six, a simple type definition that mimics that).
replacing str.casefold() with str.tolower()
The text was updated successfully, but these errors were encountered:
I'm really not against dropping support down to 2.7.
I guess, as long as we made it clear that the behavior is not the same, ie, .casefold() is not the same as .lower(). As you suggesting we implement tolower() and have it do all the work .casefold() does in Py3?
Description
Despite the fact that Python 2.7 wil be declared end of life in 1/2020, there are numerous projects out there that still support it. If any of those wants to start using
istr
, the main inhibitor will be that istr does not support 2.7. My own Python projects are all of that category :-)I think what it takes to add Python 2.7 support is:
six.text_type
instead ofstr
(or because nothing else would be used of six, a simple type definition that mimics that).str.casefold()
withstr.tolower()
The text was updated successfully, but these errors were encountered: