Serhiy Storchaka added the comment: > How about: repr(obj).strip("'\"") ?
String can starts or ends with quotes. And string repr can be a part of the repr of other type (e.g. short list). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22721> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com