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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to