final question: logging to stdout and updating files

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu Oct 4 10:00:26 EDT 2012


On Thu, 04 Oct 2012 06:34:28 -0700, Ramchandra Apte wrote:

> "Optimize code always even if it causes bugs" - Ramchandra Apte, 2001-

Well, you've just added yourself into my list of people whose advice 
should always be ignored.

That is *terrible* advice. But if you insist on following it, you can 
optimize *any* Python program to this:

# === start code ===
pass  # this line is optional
# === end code ===


There you go. The most heavily optimized, fastest Python program in 
existence. Sure, it has a few bugs, but boy is it fast!!!


-- 
Steven



More information about the Python-list mailing list