Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33dbf46

Browse files
committed
Outline a possible way to separate out source loading from bytecode loading.
1 parent d2e7b33 commit 33dbf46

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lib/importlib/NOTES

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ to do
55
subclass of source support (makes it nicer for VMs that don't use CPython
66
bytecode).
77

8+
+ chained_path_hook
9+
+ FileFinder
10+
11+
- find_module
12+
13+
+ ExtensionFileFinder
14+
+ PyFileFinder
15+
+ PyPycFileFinder
16+
+ PyFileLoader
17+
18+
- get_code for source only
19+
- get_data
20+
- source_mtime
21+
- source_path
22+
23+
+ PyPycFileLoader(PyFileLoader)
24+
25+
- get_code
26+
- bytecode_path
27+
- write_bytecode
28+
829
* Implement PEP 302 protocol for loaders (should just be a matter of testing).
930

1031
+ Source/bytecode.

0 commit comments

Comments
 (0)