[issue20015] Allow 1-character ASCII unicode where 1-character str is required

Serhiy Storchaka report at bugs.python.org
Wed Dec 18 18:39:56 CET 2013


Serhiy Storchaka added the comment:

> I don't like the heuristic of "ASCII only" characters. Accepting that may
> lead to bugs if later you pass a non-ASCII character.

What behavior you propose for non-ASCII values?

> And is it not too late to change that in Python 2.7? Version released 3
> years ago and widely used in production.

Python 3 released 5 years ago, but many peoples still support and write 
new software on Python 2. While 2.7 in use, new 2.7 versions which 
help porting and interoperability with Python 3 will be desirable.

See also issue19099.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20015>
_______________________________________


More information about the Python-bugs-list mailing list