per page, with , order by , clip by
Results of 1 - 10 of about 188 for module (0.009 sec.)
モジュールオブジェクト (module object) 12078
モジュールオブジェクト (module object) PyTypeObject PyModule_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python のモジュール型を表します。 Python プログラムには types.ModuleType として公開されています。 int PyModule_C ... ) p がモジュールオブジェクトかモジュールオブジェクトのサブタイプであるときに真を返します。この関数は常に成功します。 int PyModule_CheckExact ( PyObject * p ) p がモジュールオブジェクトで、かつ PyModule_Type のサブタイプでないときに真を返します。この関数 ... は常に成功します。 PyObject * PyModule_NewObject ( PyObject * name ) 戻り値: 新しい参照。 次に属します: Stable ABI (バージョン 3.7 より). module.__name__ に name ... 。 Added in version 3.3. バージョン 3.4 で変更: __package__ と __loader__ を None に設定するようになりました。 PyObject * PyModule_New ( const char * name ) 戻り値: 新しい参照。 次に属します: Stable ABI . PyModule_NewObject() に似ていますが、 name は Un ...
https://man.mtool.work/python/3.14/c-api/module.html
importlib --- import の実装 11355
importlib --- import の実装 Added in version 3.1. ソースコード: Lib/importlib/__init__.py はじめに importlib パッケージには 3 つの目的があります。 1 つ目は import 文 (ひいては __import__() 関数) の実装を Python のソースコードで提供することで ... リファレンス。 Packages specification パッケージの元の仕様。幾つかの動作はこの仕様が書かれた頃から変更されています (例: sys.modules で None に基づくリダイレクト)。 __import__() 関数 import 文はこの関数のシンタックスシュガーです。 sys.path モジュール検索 ... ポート PEP 366 main モジュールの明示的な相対インポート PEP 420 暗黙的な名前空間パッケージ PEP 451 インポートシステムのための ModuleSpec 型 PEP 488 PYO ファイルの撤廃 PEP 489 複数フェーズでの拡張モジュールの初期化 PEP 552 決定論的 pyc PEP 3120 デフォルトの ... 0 ) 組み込みの __import__() 関数の実装です。 注釈 プログラムからモジュールをインポートする場合はこの関数の代わりに import_module() を使ってください。 importlib. import_module ( name , package = None ) モジュールをインポートします。 name 引数は、インポ ...
https://man.mtool.work/python/3.14/library/importlib.html
5. インポートシステム 10030
5. インポートシステム ある 1 つの module にある Python コードから他のモジュールを インポート することで、そこにあるコードへアクセスできるようになります。 import 文はインポート機構を動かす最も一般的な方法ですが、それが唯一の方法ではありません ... 。 importlib.import_module() や組み込みの __import__() といった関数を使っても、インポート機構を動かすことができます。 import 文は 2 つの処理を連続して ... 接呼び出すとモジュールの検索のみが行われ、見つかった場合、モジュールの作成処理が行われます。親パッケージのインポートや ( sys.modules を含む) 様々なキャッシュの更新などの副作用は起きるかもしれませんが、 import 文のみが名前束縛処理を行います。 import 文が実 ... 行されるときには、標準の組み込み関数 __import__() が呼ばれます。インポートシステムを呼び出すその他の ( importlib.import_module() 関数のような) メカニズムは、 __import__() の呼び出しをバイパスして独自のインポート・セマンティクスを実装している可能性が ...
https://man.mtool.work/python/3.14/reference/import.html
拡張モジュールの定義 9176
拡張モジュールの定義 A C extension for CPython is a shared library (for example, a .so file on Linux, .pyd DLL on Windows), which is loadable into the Python process (for example, it is compiled with compatible compiler settings), and which ... ュメントは https://setuptools.pypa.io/en/latest/setuptools.html にあります。 Normally, the initialization function returns a module definition initialized using PyModuleDef_Init() . This allows splitting the creation process into several phases: Before a ... ny substantial code is executed, Python can determine which capabilities the module supports, and it can adjust the environment or refuse loading an incompatible extension. By default, Python itself creates ... the module object -- that is, it does the equivalent of object.__new__() for classes. It also sets initial attributes like __package_ ...
https://man.mtool.work/python/3.14/c-api/extension-modules.html
ast --- 抽象構文木 9132
ast --- 抽象構文木 ソースコード: Lib/ast.py ast モジュールは、Python の抽象構文を表す木を Python アプリケーションで処理するための機能を提供します。 抽象構文自体は Python のリリースごとに変わる可能性がありますが、このモジュールを使えば、現在 ... 。 抽象文法 抽象文法は、現在次のように定義されています: -- ASDL's 4 builtin types are: -- identifier, int, string, constant module Python { mod = Module ( stmt * body , type_ignore * type_ignores ) | Interactive ( stmt * body ) | Expression ( expr body ... t * orelse , stmt * finalbody ) | Assert ( expr test , expr ? msg ) | Import ( alias * names ) | ImportFrom ( identifier ? module , alias * names , int ? level ) | Global ( identifier * names ) | Nonlocal ( identifier * names ) | Expr ( expr value ) | ... tual node classes are derived from the Parser/Python.asdl file, which is reproduced above . They are defined in the _ast C module and re-exported in ast . 抽象文法の左辺のシンボル一つずつにそれぞれ一つのクラスがあります (たとえば ast.stmt や ast.expr ) ...
https://man.mtool.work/python/3.14/library/ast.html
1. Extending Python with C or C++ 8793
1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec ... em. The Python API is incorporated in a C source file by including the header "Python.h" . The compilation of an extension module depends on its intended use as well as on your system setup; details are given in later chapters. 注釈 The C extension int ... erface is specific to CPython, and extension modules do not work on other Python implementations. In many cases, it is possible to avoid writing C extensions and preserve por ... ations. For example, if your use case is calling C library functions or system calls, you should consider using the ctypes module or the cffi library rather than writing custom C code. These modules let you write Python code to interface with C code an ...
https://man.mtool.work/python/3.14/extending/extending.html
cgitb --- CGI スクリプトのトレースバック管理 8070
cgitb --- CGI スクリプトのトレースバック管理 バージョン 3.11 で非推奨、バージョン 3.13 で削除. このモジュールは今や Python 標準ライブラリの一部ではありません。このモジュールは Python 3.11 で非推奨となったあと、 Python 3.13 で削除 されました ... 。削除の決定は PEP 594 でなされました。 A fork of the module on PyPI can now be used instead: legacy-cgi . This is a copy of the cgi module, no longer maintained or supported by the c ... re Python team. cgitb モジュールを提供していた最後のバージョンは Python 3.12 です。 他のマニュアルの関連ページ PHP session_module_name() PHP taint.requirements PHP ctype.requirements PHP mcrypt_module_close() Linux JM create_module(2) PHP mcrypt_module ...
https://man.mtool.work/python/3.14/library/cgitb.html
2. 拡張の型の定義: チュートリアル 7939
2. 拡張の型の定義: チュートリアル Python では、組み込みの str 型や list 型のような Python コードから操作できる新しい型を C 拡張モジュールの作者が定義できます。 全ての拡張の型のコードはあるパターンに従うのですが、書き始める前に理解しておくべ ... CustomObject ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyType_GenericNew , }; static int custom_module_exec ( PyObject * m ) { if ( PyType_Ready ( & CustomType ) < 0 ) { return -1 ; } if ( PyModule_AddObjectRef ( m , "Custom" ... , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static PyModuleDef_Slot custom_module_slots [] = { { Py_mod_exec , custom_module_exec }, // 静的な型を使う間はこの設定を使う { Py_mod_mult ... iple_interpreters , Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED }, { 0 , NULL } }; static PyModuleDef custom_module = { . m_base = PyModuleDef_HEAD_INIT , . m_name = "custom" , . m_doc = "拡張型を作成するサンプルモジュール ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
warnings --- 警告の制御 7424
warnings --- 警告の制御 ソースコード: Lib/warnings.py 警告メッセージは一般に、ユーザに警告しておいた方がよいような状況下にプログラムが置かれているが、その状況は (通常は) 例外を送出したりそのプログラムを終了させるほどの正当な理由がないといっ ... 合が行われます; 一致したフィルタ仕様がその警告の処理方法を決定します。フィルタの各エントリは ( action , message , category , module , lineno ) からなるタプルです。ここで: action は以下の文字列のうちの一つです: 値 処理方法 "default" 警告の発生箇所 (モジュ ... た警告を例外に変えます "ignore" 一致した警告を出力しません "always" 一致した警告を常に出力します "all" "always" の別名です "module" 警告が発生するモジュールごとに、行番号にかかわらず、一致する警告の最初の一回を出力します "once" 一致した警告のうち、警告の ... はクラス ( Warning のサブクラス) です。 警告が一致するには、その警告カテゴリが category のサブクラスでなければなりません。 module is a string containing a regular expression that the start of the fully qualified module name must match, case-sensitively ...
https://man.mtool.work/python/3.14/library/warnings.html
zipimport --- Zip アーカイブからモジュールをインポートする 7424
zipimport --- Zip アーカイブからモジュールをインポートする ソースコード: Lib/zipimport.py ZIP 形式のアーカイブから Python モジュール ( *.py 、 *.pyc ) とパッケージをインポートできるようにするモジュールです。 通常は zipimport モジュールを明示 ... 指していない場合、 ZipImportError を送出します。 バージョン 3.12 で変更: 3.10 で非推奨になった find_loader() メソッドと find_module() メソッドを削除しました。 代わりに find_spec() を使ってください。 create_module ( spec ) importlib.abc.Loader.create_modu ... le() の実装で、 None を返してデフォルトの動作を明示的に要求します。 Added in version 3.10. exec_module ( module ) importlib.abc.Loader.exec_module() の実装です。 Added in version 3.10. find_spec ( fullname , target = None ) i ... で指定されたモジュールがパッケージの場合 True を返します。モジュールを見つけられない場合 ZipImportError を送出します。 load_module ( fullname ) Load the module specified by fullname . fullname must be the fully qualified (dotted) module name. Returns th ...
https://man.mtool.work/python/3.14/library/zipimport.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT