Xiang Zhang added the comment: Same as my comment in issue27963.
Python 2.7.12+ (2.7:de9e410e78d8, Sep 6 2016, 12:28:48) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ctypes >>> >>> s = 'a'*(0xffffffff/2-0xffff) >>> sss = 'a'*(0xffffffff/4) >>> ctypes.set_conversion_mode(s, s) ('ascii', 'strict') ---------- nosy: +xiang.zhang _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27962> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com