Zachary Ware <zachary.ware at gmail.com> added the comment: filtered_s = ''.join(c for c in s if c in string.ascii_lowercase) ---------- nosy: +zach.ware _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue43900> _______________________________________