This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author corona10
Recipients BTaskaya, corona10, pauloxnet, skip.montanaro
Date 2021-10-30.13:22:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635600163.73.0.755892149406.issue45669@roundup.psfhosted.org>
In-reply-to
Content
@skip.montanaro

I agree with your concern, if authors want to use this constant,
they need to use the mentioned workaround to import it.
But we already have cases that add such constants if we considered them as useful constants.

So I think that the main concern of this issue is that how it will be useful.
In my case, if I should write the utility to generate random tokens for authentication in python, I always write a single trivial code to use ascii_alphanumerics, that's why I thought that this constant can be useful.
FYI We already have the same use case in official documentation[1] also.

But if other core devs also thought that this is not that commonly well-used case, I will change my mind to -1 since we can not support all ASCII variations(e.g ascii_number_special) and I agree with that point.

[1] https://docs.python.org/3/library/secrets.html#recipes-and-best-practices
History
Date User Action Args
2021-10-30 13:22:43corona10setrecipients: + corona10, skip.montanaro, BTaskaya, pauloxnet
2021-10-30 13:22:43corona10setmessageid: <1635600163.73.0.755892149406.issue45669@roundup.psfhosted.org>
2021-10-30 13:22:43corona10linkissue45669 messages
2021-10-30 13:22:43corona10create