2 ms·
I guess you could make it work as long as everything is ascii right? And if it's not then raise exception.
by im3w1l 5y ago
I guess you could make it work as long as everything is ascii right? And if it's not then raise exception.
- ByteJockey 5y agoIf it's not ascii, you would just do: getattr(thing, u'attribute_with_unicode_characters') This would work in both python 2.7 and 3.9 (probably works with other 3.X versions but it's the one I actually tried).