Ask HN: Good python code for code reading
11–20 of 23 posts
Re: Ask HN: Good python code for code reading
#12Earlier quoted context omitted.
This was a major eye-opener for me as-well. I jumped into various python modules and was amazed at what I discovered. Like the easter-egg hidden away in "this.py": http://pastebin.com/f25f08f20 (Couldn't figure out how to get code formatting to work properly)
Ha. All that code at the bottom of the file could be replaced by "print s.decode('rot13')" - I suppose it's backwards compatible though...
Re: Ask HN: Good python code for code reading
#13Things you should be looking at are queues and error handling in an asynchronous message passing architecture.
Also you'll learn that not every web application needs an SQL database for persistence.
Re: Ask HN: Good python code for code reading
#14Re: Ask HN: Good python code for code reading
#15Re: Ask HN: Good python code for code reading
#16Re: Ask HN: Good python code for code reading
#17BitTorrent http://download.bittorrent.com/dl/
Re: Ask HN: Good python code for code reading
#18Re: Ask HN: Good python code for code reading
#19It's an essay that contains code, but this is one of my all time favorites: Peter Norvig writes a spelling corrector in 21 lines of Python: http://norvig.com/spell-correct.html