What python can NOT do?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sat Sep 5 00:50:35 EDT 2009


On Fri, 04 Sep 2009 22:27:39 -0500, Grant Edwards wrote:

>> Take (almost) any arbitrary piece of Python code. Replace all newlines
>> by nulls. Escape any quotation marks. Wrap the whole thing in quotes,
>> and pass it to exec as above, and you have an arbitrarily complex
>> one-liner.
> 
> I don't understand the reason for the newline/null swapping.


Good point. I was just over-complicating it. Oops.



-- 
Steven



More information about the Python-list mailing list