Avatar ·

Cyrillic in Python

📁 Advanced Python Topics

Is there an analog in Python for string.ascii_letters, but for Cyrillic?

>>> import string>>> string.ascii_letters'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'>>> 
Avatar ·

If the task is to speed up execution, you can identify bottlenecks using a profiler and rewrite those parts using C extensions. The result will be the same code running faster. More details here

Log in to leave an answer

Blogs