Serhiy Storchaka added the comment: It is too complicated (and perhaps erroneous). Why not use just self->pattern->logical_charsize? ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17087> _______________________________________