Message405315
It is very common to construct a variable containing alphanumeric values as a basis for generating random strings, especially in the web environment as a slug to be used in URLs:
>>> import string
>>> ascii_alphanumerics = string.ascii_letters + string.digits
>>> ascii_alphanumerics
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
I suggest inserting a variable for just this purpose directly into Python's "string" module:
>>> import string
>>> string.ascii_alphanumerics
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' |
|
Date |
User |
Action |
Args |
2021-10-29 16:11:03 | pauloxnet | set | recipients:
+ pauloxnet |
2021-10-29 16:11:03 | pauloxnet | set | messageid: <1635523863.84.0.534508316323.issue45669@roundup.psfhosted.org> |
2021-10-29 16:11:03 | pauloxnet | link | issue45669 messages |
2021-10-29 16:11:03 | pauloxnet | create | |
|