Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 25 for METH (0.030 sec.)
共通のオブジェクト構造体 (common object structure) — Python 3.6.5 ドキュメント 14313
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... については、上記の PyCFunction を参照して下さい。 PyMethodDef ¶ 拡張型のメソッドを記述する際に用いる構造体で ... フィールド C の型 意味 ml_name char * メソッド名 ml_meth PyCFunction C 実装へのポインタ ml_flags int 呼び出 ... ット ml_doc char * docstring の内容を指すポインタ ml_meth は C の関数ポインタです。関数は別の型で定義されてい ... convention) を表します。 呼び出し規約フラグでは、 METH_VARARGS および METH_KEYWORDS だけが組み合わせられま ...
https://man.plustar.jp/python/c-api/structures.html - [similar]
インスタンスメソッドオブジェクト(Instance Method Objects) — Python 3.6.5 ドキュ... 12370
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... レイヤ » インスタンスメソッドオブジェクト(Instance Method Objects) ¶ インスタンスメソッドとは PyCFunction ... にバインドするための新しいやり方です。これは以前の PyMethod_New(func, NULL, class) の呼び出しを置き換えます。 ... PyTypeObject PyInstanceMethod_Type ¶ PyTypeObject のインスタンスは Python のイ ... hon のプログラムには公開されません。 int PyInstanceMethod_Check ( PyObject *o ) ¶ o がインスタンスメソッド ...
https://man.plustar.jp/python/c-api/method.html - [similar]
Argument Clinic How-To — Python 3.6.5 ドキュメント 9182
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Argu ... include any sub-modules, and if the function is a method on a class it should include the class name too. ... nic start generated code]*/ If this is the first time that module or class has been used with Argument Cli ... s both the type of the variable used in C, and the method to convert the Python value into a C value at ru ... eprocessor macro defining the appropriate static PyMethodDef structure for this builtin: #define __PICKLE_ ...
https://man.plustar.jp/python/howto/clinic.html - [similar]
デスクリプタオブジェクト (descriptor object) — Python 3.6.5 ドキュメント 9066
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... wMember ( PyTypeObject *type , struct PyMemberDef *meth ) ¶ Return value: New reference. PyObject * PyDesc ... r_NewMethod ( PyTypeObject *type , struct PyMethodDef *meth ... n value: New reference. PyObject * PyDescr_NewClassMethod ( PyTypeObject *type , PyMethodDef *method ) ¶ R ...
https://man.plustar.jp/python/c-api/descriptor.html - [similar]
1. C や C++ による Python の拡張 — Python 3.6.5 ドキュメント 9066
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... ます。まずは、関数名とアドレスを "メソッドテーブル (method table)" に列挙する必要があります: static PyMetho ... dDef SpamMethods [] = { ... { "system" , spam_system , METH_VARA ... } /* Sentinel */ }; リスト要素の三つ目のエントリ ( METH_VARARGS ) に注意してください。このエントリは、C 関 ... をインタプリタに教えるためのフラグです。通常この値は METH_VARARGS か METH_VARARGS | METH_KEYWORDS のはずです ...
https://man.plustar.jp/python/extending/extending.html - [similar]
プログラミング FAQ — Python 3.6.5 ドキュメント 8966
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問 ... reference to one dict for all calls ... compute something ... mydict [ key ] = value return mydict 初めて ... ください: for x in reversed ( sequence ): ... # do something with x ... これは元のシーケンスをいじるのではな ... を使います: for x in sequence [:: - 1 ]: ... # do something with x ... リストから重複を取り除くにはどうしま ... ¶ リスト内包表記を使ってください: result = [ obj . method () for obj in mylist ] なぜ加算はされるのに a_tu ...
https://man.plustar.jp/python/faq/programming.html - [similar]
What's New In Python 3.3 — Python 3.6.5 ドキュメント 8850
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... されていない) メソッドでの例: >>> class C : ... def meth ( self ): ... pass >>> C . meth . __name__ 'meth' ... >>> C . meth . __qualname__ 'C.meth' 入れ子のクラスでの例: >>> ... class C : ... class D : ... def meth ( self ): ... pass ... >>> C . D . __name__ 'D' >> ... > C . D . __qualname__ 'C.D' >>> C . D . meth . __name__ 'meth' >>> C . D . meth . __qualname__ ...
https://man.plustar.jp/python/whatsnew/3.3.html - [similar]
2. 拡張の型の定義: チュートリアル — Python 3.6.5 ドキュメント 8501
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... 決定します。 これらの C 関数は "タイプメソッド (type method)" と呼ばれます。 それなので、新しい拡張の型を定義 ... et's extend the basic example to add some data and methods. Let's also make the type usable as a base clas ... S %S" , self -> first , self -> last ); } static PyMethodDef Custom_methods [] = { { "name" , ( PyCFunctio ... n ) Custom_name , METH_NOARGS , "Return the name, combining the first and ...
https://man.plustar.jp/python/extending/newtypes_tutorial.html - [similar]
What's New in Python 2.4 — Python 3.6.5 ドキュメント 8385
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... たのち、新型メソッドとしての関数へ仕立て上げる staticmethod() または classmethod() にその結果のメソッドを渡す ... 要がありました。このような具合でした: class C : def meth ( cls ): ... meth = classmethod ( meth ) # Rebind ... name to wrapped-up class method メソッドがとても長かったりすると、関数のボディの ... 後ろの classmethod() 呼び出しは見失ったり忘れたりしやすいものでした ...
https://man.plustar.jp/python/whatsnew/2.4.html - [similar]
26.7. 2to3 - Python 2 から 3 への自動コード変換 — Python 3.6.5 ドキュメント 7821
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... しい構文 ( class X(metaclass=Meta) ) に変換します。 methodattrs ¶ 古いメソッドの属性名を修正します。例えば ... meth.im_func は meth.__func__ に変換されます。 ne ¶ 古い不等号の構文 <> ...
https://man.plustar.jp/python/library/2to3.html - [similar]
PREV 1 2 3 NEXT