Link Details

Link 75147 thumbnail
User 209500 avatar

By rlamarch
via nedbatchelder.com
Published: Apr 12 2008 / 03:25

I spent some time digging around in the Python code to understand how .pyc files work. It turns out they are fairly simple, then kind of complex. At the simple level, a .pyc file is a binary file containing: a four-byte magic number, a four-byte modification timestamp, and a marshalled code object.
  • 11
  • 0
  • 1048
  • 234

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (11)



Voters Against This Link (0)