Template language for random string generation

Ian Kelly ian.g.kelly at gmail.com
Fri Aug 8 18:03:18 EDT 2014


On Fri, Aug 8, 2014 at 3:01 AM, Paul Wolf <paulwolf333 at gmail.com> wrote:
> * Uses SystemRandom class (if available, or falls back to Random)

A simple improvement would be to also allow the user to pass in a
Random object, in case they have their own source of randomness they
want to use, or for fake Randoms used for writing unit tests that
invoke strgen.

Have you given any thought to adding a validation mode, where the user
provides a template and a string and wants to know if the string
matches the template?



More information about the Python-list mailing list