Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
I think if we can get a confirmation from @Prawin that adding an alias fixed the issue or a minimal test case then it will be helpful. The minimal I can come up with is as below : import codecs # Fails without alias being added other cases like 1252 pass because of alias assert codecs.encode('a', '874') == codecs.encode('a', 'cp874') # Below assertion passes after search_function patch though alias is not added since I prepend cp in search_function assert codecs.encode('a', '874') == codecs.encode('a', 'cp874') Thanks ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33865> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com