PyConChina2022-上海-Python启动加速探索及实践-严懿宸- init_import_site() -> deep stack with 4+ imports and many Python calls ■ 8% - init_importlib_external() -> deep stack with 2+ imports and many Python calls ■ 5% - ... -> _PyUnicode_InitEncodings() -> deep stack with 2+ imports and many Python calls ■ 7.3% - init_sys_streams() -> deep stack with 3+ imports and many Python calls ■ 8.1% - 16.3% - init_import_site() -> deep stack with 4+ imports and many Python calls ■ 8% - init_importlib_external() -> deep stack with 2+ imports and many Python calls ■ 5% - ... -> builtin_exec()0 码力 | 21 页 | 3.18 MB | 2 年前3
PyArmor Documentation v8.5.10checklist__frozen_importlib = {} 13 checklist__frozen_importlib_external = {} 14 checklist_pyimod03_importers = {} 15 16 check_module('_frozen_importlib', checklist__frozen_importlib) ) 17 check_module('_frozen_importlib_external', checklist__frozen_importlib_external) 18 check_module('pyimod03_importers', checklist_pyimod03_importers) 19 20 protect_self() The pyinstaller foo.py $ pyarmor gen --pack dist/foo/foo foo.py ... checklist_frozen_importlib = {'__import__': 9800, ...} checklist_frozen_importlib_external = {'_calc_mode': 2511, ...} checklist_pyimod03_importers0 码力 | 193 页 | 154.05 KB | 1 年前3
Kotlin 1.2 Language Documentationspecified, the contents of such a file belong to "default" package that has no name. ## Default Imports A number of packages are imported into every Kotlin file by default: — kotlin.* — kotlin.annotation jvm.* — JS: — kotlin.js.* ## I mports Apart from the default imports, each file may contain its own import directives. Syntax for imports is described in the grammar. We can import either a single name foo.bar.* // importing everything from "foo.bar" fun usage(baz: Baz) { baz.goo() } See Imports for more information. ## Declaring Extensions as Members Inside a class, you can declare extensions0 码力 | 333 页 | 2.22 MB | 2 年前3
Kotlin Language Documentation 1.3Scratches documentation for details. # Getting Started ## Basic Syntax ## Package definition and imports Package specification should be at the top of the source file: package my.demo import kotlin.text specified, the contents of such a file belong to the default package that has no name. ## Default Imports A number of packages are imported into every Kotlin file by default: — kotlin.* — kotlin.annotation jvm.* — JS: — kotlin.js.* ## I mports Apart from the default imports, each file may contain its own import directives. Syntax for imports is described in the grammar. We can import either a single name0 码力 | 597 页 | 3.61 MB | 2 年前3
Python 标准库参考指南 2.7.18 新版功能. ## len (s) 返回对象的长度(元素个数)。实参可以是序列(如 string、bytes、tuple、list 或 range 等)或集合(如 dictionary、set 或 frozen set 等)。 ## class list ( $$ iterable $$ ) Return a list whose items are the same and in the same designed to be initialized more than once, and may fail in arbitrary ways when reloaded. If a module imports objects from another module using from …import …, calling reload() for the other module does not whether to use absolute or relative imports. The default is -1 which indicates both absolute and relative imports will be attempted. 0 means only perform absolute imports. Positive values for level indicate0 码力 | 1552 页 | 7.42 MB | 1 年前3
Python 标准库参考指南 2.7.18 新版功能. ## len (s) 返回对象的长度(元素个数)。实参可以是序列(如 string、bytes、tuple、list 或 range 等)或集合(如 dictionary、set 或 frozen set 等)。 ## class list ( $$ iterable $$ ) Return a list whose items are the same and in the same designed to be initialized more than once, and may fail in arbitrary ways when reloaded. If a module imports objects from another module using from …import …, calling reload() for the other module does not whether to use absolute or relative imports. The default is -1 which indicates both absolute and relative imports will be attempted. 0 means only perform absolute imports. Positive values for level indicate0 码力 | 1552 页 | 7.42 MB | 1 年前3
Python 标准库参考指南 2.7.18 新版功能. ## len (s) 返回对象的长度(元素个数)。实参可以是序列(如 string、bytes、tuple、list 或 range 等)或集合(如 dictionary、set 或 frozen set 等)。 ## class list ( $$ iterable $$ ) Return a list whose items are the same and in the same designed to be initialized more than once, and may fail in arbitrary ways when reloaded. If a module imports objects from another module using from …import …, calling reload() for the other module does not whether to use absolute or relative imports. The default is -1 which indicates both absolute and relative imports will be attempted. 0 means only perform absolute imports. Positive values for level indicate0 码力 | 1552 页 | 7.42 MB | 1 年前3
Python 标准库参考指南 3.6.15 ``` ## len(s) 返回对象的长度(元素个数)。实参可以是序列(如 string、bytes、tuple、list 或 range 等)或集合(如 dictionary、set 或 frozen set 等)。 class list([iterable]) 虽然被称为函数,list实际上是一种可变序列类型,详情请参阅列表和序列类型一list,tuple,range。 locals() 3设计的新协议。 pickle模块提供了以下方法,让打包过程更加方便。 pickle. **dump** (*obj*, *file*, *protocol*=None, *, *fix_imports*=True) Write a pickled representation of obj to the open file object file. This is equivalent to 实例,也可以是满足这一接口的其他任何自定义对象。 如果 fix_imports为 True 且 protocol 小于3,pickle将尝试将 Python 3中的新名称映射到 Python 2中的旧模块名称,因此 Python 2也可以读取打包出的数据流。 ## pickle. **dumps** (*obj*, protocol=None, *, fix_imports=True) Return the pickled0 码力 | 1886 页 | 8.95 MB | 1 年前3
Python 标准库参考指南 3.6.15 process_line(line) ## len (s) 返回对象的长度(元素个数)。实参可以是序列(如 string、bytes、tuple、list 或 range 等)或集合(如 dictionary、set 或 frozen set 等)。 ## max (iterable, *[, key, default]) max (arg1, arg2, *args[, key]) ## class list (\[iterable]) 为Python 3设计的新协议。 pickle 模块提供了以下方法,让打包过程更加方便。 ### pickle.dump(obj, file, protocol=None, *, fix_imports=True) Write a pickled representation of obj to the open file object file. This is equivalent to 实例,也可以是满足这一接口的其他任何自定义对象。 如果 fix_imports 为 True 且 protocol 小于 3,pickle 将尝试将 Python 3 中的新名称映射到 Python 2 中的旧模块名称,因此 Python 2 也可以读取打包出的数据流。 ### pickle.dumps(obj, protocol=None, *, fix_imports=True) Return the pickled0 码力 | 1886 页 | 8.95 MB | 1 年前3
Python 标准库参考指南 3.7.13 process_block(block) ## len (s) 返回对象的长度(元素个数)。实参可以是序列(如 string、bytes、tuple、list 或 range 等)或集合(如 dictionary、set 或 frozen set 等)。 ## class list (\[iterable]) 虽然被称为函数,list 实际上是一种可变序列类型,详情请参阅列表和序列类型 --- list, tuple, range。 为Python 3设计的新协议。 pickle 模块提供了以下方法,让打包过程更加方便。 ### pickle.dump(obj, file, protocol=None, *, fix_imports=True) 将打包好的对象 obj 写入已打开的 file object file。它等同于 Pickler(file, protocol).dump(obj)。 可选参数 protocol 实例,也可以是满足这一接口的其他任何自定义对象。 如果 fix_imports 为 True 且 protocol 小于 3,pickle 将尝试将 Python 3 中的新名称映射到 Python 2 中的旧模块名称,因此 Python 2 也可以读取打包出的数据流。 pickle.dumps(obj, protocol=None, *, fix_imports=True) 将 obj 打包以后的对象作为 bytes0 码力 | 1846 页 | 9.09 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
Python启动速度PyCDS设计与实现Frozen importsStatic code objectsCPython 3.11优化pyarmorobfuscatingscriptsbindingprotectionKotlin 1.2数学运算API序列操作集合操作反射改进Kotlin 1.3coroutinesmultiplatform projectsbehavioral-incompatiblesource-incompatiblePython 标准库sys 模块csv 模块distutils 包Python 包索引内置模块调试器logging 模块模块库配置异常日志记录标准库内置函数许可证类型标注线程并发执行













