Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 25 for meth (0.069 sec.)
27.5. timeit --- 小さなコード断片の実行時間計測 — Python 3.6.5 ドキュメント 7821
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... るには、 timeit() メソッドを使用します。 repeat() と:meth: autorange`メソッドは :meth: .timeit` を複数回呼び ...
https://man.plustar.jp/python/library/timeit.html - [similar]
What's New in Python 2.2 — Python 3.6.5 ドキュメント 7704
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... の一貫した方法はありませんでした。 __members__ と __methods__ で名前のリストを公開するといった非公式な慣習は ... C ( object ): def f ( arg1 , arg2 ): ... f = staticmethod ( f ) def g ( cls , arg1 , arg2 ): ... g = class ... method ( g ) staticmethod() 関数は関数 f() を引数に取り、デスクリプタにまと ... っとこう定義出来るでしょう: from eiffel import eiffelmethod class C ( object ): def f ( self , arg1 , arg2 ) ...
https://man.plustar.jp/python/whatsnew/2.2.html - [similar]
用語集 — Python 3.6.5 ドキュメント 7588
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » 用語集 ¶ >>> インタ ... クニックでは不恰好であったり微妙に誤る (例えば magic methods の場合) 場合にインタフェースを定義する方法を提供 ... て適用されます。デコレータの一般的な利用例は、 classmethod() と staticmethod() です。 デコレータの文法はシン ... は意味的に同じものです: def f ( ... ): ... f = staticmethod ( f ) @staticmethod def f ( ... ): ... 同じ概念が ... jects of any classes you define with an __iter__() method or with a __getitem__() method that implements S ...
https://man.plustar.jp/python/glossary.html - [similar]
What's New in Python 2.3 — Python 3.6.5 ドキュメント 7588
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 以降を含む 2.6 以降は open() が良いです。---) The method resolution order used by new-style classes has c ... ange, read Michele Simionato's article "Python 2.3 Method Resolution Order" , or read the thread on python ... hey're now faster than classic classes! The sort() method of list objects has been extensively rewritten b ... qDict () >>> dir ( s ) # See that other dictionary methods are implemented ['__cmp__', '__contains__', '__ ...
https://man.plustar.jp/python/whatsnew/2.3.html - [similar]
引数の解釈と値の構築 — Python 3.6.5 ドキュメント 7472
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... イルの関数は、引数解釈手法に、Python 3 で削除された METH_OLDARGS を使います。新たに書かれるコードでのパラメ ... は、関数宣言テーブル、またはメソッド宣言テーブル内で METH_VARARGS として宣言しなければなりません。実引数の入 ...
https://man.plustar.jp/python/c-api/arg.html - [similar]
Python 3 への拡張モジュール移植 — Python 3.6.5 ドキュメント 7472
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Pyth ... GETSTATE ( m ); PyErr_SetString ( st -> error , "something bad happened" ); return NULL ; } static PyMetho ... dDef myextension_methods [] = { { "error_out" , ( PyCFunction ) error_ou ... t , METH_NOARGS , NULL }, { NULL , NULL } }; #if PY_MAJOR_V ... NULL , sizeof ( struct module_state ), myextension_methods , NULL , myextension_traverse , myextension_cle ...
https://man.plustar.jp/python/howto/cporting.html - [similar]
What's New in Python 2.1 — Python 3.6.5 ドキュメント 7472
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... すので、覚えやすいでしょう。) これらの特殊メソッドは method(self, other) の形式になっており、 self が演算子の ... bj ) proxy . attr # Equivalent to obj.attr proxy . meth () # Equivalent to obj.meth() del obj proxy . attr ... ten been used as a naïve benchmark. The readline() method of file objects has therefore been rewritten to ... a discussion in comp.lang.python. A new module and method for file objects was also added, contributed by ...
https://man.plustar.jp/python/whatsnew/2.1.html - [similar]
1. 他のアプリケーションへの Python の埋め込み — Python 3.6.5 ドキュメント 7372
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... L ; return PyLong_FromLong ( numargs ); } static PyMethodDef EmbMethods [] = { { "numargs" , emb_numargs , ... METH_VARARGS , "Return the number of arguments received ... = { PyModuleDef_HEAD_INIT , "emb" , NULL , -1 , EmbMethods , NULL , NULL , NULL , NULL }; static PyObject ...
https://man.plustar.jp/python/extending/embedding.html - [similar]
3. Defining Extension Types: Assorted Topics — Python 3.6.5 ドキュメント 7256
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... _basicsize , tp_itemsize ; /* For allocation */ /* Methods to implement standard operations */ destructor ... rfunc tp_getattr ; setattrfunc tp_setattr ; PyAsyncMethods * tp_as_async ; /* formerly known as tp_compare ... or tp_reserved (Python 3) */ reprfunc tp_repr ; /* Method suites for standard classes */ PyNumberMethods * ... tp_as_number ; PySequenceMethods * tp_as_sequence ; PyMappingMethods * tp_as_map ...
https://man.plustar.jp/python/extending/newtypes.html - [similar]
デザインと歴史 FAQ — Python 3.6.5 ドキュメント 7256
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問 ... 扱っていることがより明確になります。 self.x や self.meth() と書いてあれば、そのクラスの定義を憶えていなくて ... 使わなければなりません。 -- Python では、 baseclass.methodname(self, <argument list>) と書けます。これは特に ... と訴えます: while ( line = readline ( f )) { // do something with line } Python ではこう書かなくてはなりませ ... e = f . readline () if not line : break ... # do something with line Python の式中での代入を許さない理由は ...
https://man.plustar.jp/python/faq/design.html - [similar]
PREV 1 2 3 NEXT