Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Jasber
on Oct 9, 2008
|
parent
|
context
|
favorite
| on:
Ask HN: Good python code for code reading
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)
andyn
on Oct 9, 2008
[–]
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...
ivank
on Oct 9, 2008
|
parent
[–]
Or forward-compatible, since encode/decode in py3k is between bytes and unicode only.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
http://pastebin.com/f25f08f20
(Couldn't figure out how to get code formatting to work properly)