open Python26 Lib this pyc rb pycData read close codeBytes pycData imp

1
2
3
4
5
6
7
8
9
>>> f=open('c:\\Python26\\Lib\\this.pyc', 'rb')
>>> pycData=f.read()
>>> f.close()
>>> codeBytes=pycData[8:]
>>> import marshal
>>> code=marshal.loads(codeBytes)
>>> exec(code)
The Zen of Python, by Tim Peters
.............