What python can NOT do?

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


On 2009年9月04日 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

AltStyle によって変換されたページ (->オリジナル) /