How to print all expressions that match a regular expression

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sun Feb 7 17:07:15 EST 2010


On Sun, 07 Feb 2010 03:53:49 +0100, Alf P. Steinbach wrote:

>> "Given the function hashlib.sha256, enumerate all the possible inputs
>> that give the hexadecimal result
>> 0a2591aaf3340ad92faecbc5908e74d04b51ee5d2deee78f089f1607570e2e91."
> 
> I tried some "parrot" variants but no dice. :-(

Oh, everybody expects parrots! That's not unexpected -- as a clue, I 
wrote that "the message is predictable for being totally unexpected".

The input was "Nobody expects the Spanish Inquisition!", which is another 
Monty Python catchphrase.


-- 
Steven



More information about the Python-list mailing list