Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #77890 > unrolled thread

What's the function location that reads the cached .pyc file from disk.

Started byShiyao Ma <i@introo.me>
First post2014-09-15 22:14 +0800
Last post2014-09-15 22:14 +0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  What's the function location that reads the cached .pyc file from disk. Shiyao Ma <i@introo.me> - 2014-09-15 22:14 +0800

#77890 — What's the function location that reads the cached .pyc file from disk.

FromShiyao Ma <i@introo.me>
Date2014-09-15 22:14 +0800
SubjectWhat's the function location that reads the cached .pyc file from disk.
Message-ID<mailman.14028.1410790467.18130.python-list@python.org>
Hi.

what's the location of the function that reads the .pyc file ?

I bet it should lie in somewhere in
https://hg.python.org/cpython/file/322ee2f2e922/Lib/importlib

But what's the actual location?


Btw, why I need it?
I want to know the structure of a .pyc file. Of course the function
that reads the .pyc must know something about it.
(I am aware of the structure of a typical .pyc file from some clicks
of google pages, but I am interested in the *source* and the most
authoritative answer, aka, the source code).

Thanks.


-- 

吾輩は猫である。ホームーページはhttp://introo.me。

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web