Serhiy Storchaka added the comment:

> Callers should be fixed to handle errors.

This would make the code of callers more complex for small benefit. And perhaps 
we will add more callers (if replace PyUnicode_CompareWithASCII with new 
function).

> Since currently _PyUnicode_CompareWithId is used to compare a unicode with 
> ascii identifiers for all cases, how about introduce a more specific function 
> like _PyUnicode_EqualToASCIIId for this case?

Great idea Xiang!

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21449>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to