Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 31 - 40 of about 213 for Return (0.067 sec.)
リフレクション — Python 3.6.5 ドキュメント 6105
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... リフレクション ¶ PyObject * PyEval_GetBuiltins ( ) ¶ Return value: Borrowed reference. 現在の実行フレーム内のビ ... ン辞書を返します。 PyObject * PyEval_GetLocals ( ) ¶ Return value: Borrowed reference. 現在の実行フレーム内のロ ... LL を返します。 PyObject * PyEval_GetGlobals ( ) ¶ Return value: Borrowed reference. 現在の実行フレームのグロ ... を返します。 PyFrameObject * PyEval_GetFrame ( ) ¶ Return value: Borrowed reference. 現在のスレッド状態のフレ ...
https://man.plustar.jp/python/c-api/reflection.html - [similar]
1. 他のアプリケーションへの Python の埋め込み — Python 3.6.5 ドキュメント 6062
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... < 0 ) { exit ( 120 ); } PyMem_RawFree ( program ); return 0 ; } Py_SetProgramName() は Py_Initialize() の前に ... , "Usage: call pythonfile funcname [args] \n " ); return 1 ; } Py_Initialize (); pName = PyUnicode_DecodeFS ... printf ( stderr , "Cannot convert argument \n " ); return 1 ; } /* pValue reference stolen here: */ PyTuple_ ... _Print (); fprintf ( stderr , "Call failed \n " ); return 1 ; } } else { if ( PyErr_Occurred ()) PyErr_Print ...
https://man.plustar.jp/python/extending/embedding.html - [similar]
オブジェクトをヒープ上にメモリ確保する — Python 3.6.5 ドキュメント 5936
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... PyObject * _PyObject_New ( PyTypeObject *type ) ¶ Return value: New reference. PyVarObject * _PyObject_NewV ... ar ( PyTypeObject *type , Py_ssize_t size ) ¶ Return value: New reference. PyObject * PyObject_Init ( P ... yObject *op , PyTypeObject *type ) ¶ Return value: Borrowed reference. 新たにメモリ確保されたオ ... ect *op , PyTypeObject *type , Py_ssize_t size ) ¶ Return value: Borrowed reference. PyObject_Init() の全ての ...
https://man.plustar.jp/python/c-api/allocation.html - [similar]
12.6. sqlite3 --- SQLite データベースに対する DB-API 2.0 インタフェース — Pytho... 5904
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... thread may use the connection. If set False , the returned connection may be shared across multiple threads ... 's execute() method with the parameters given, and returns the cursor. executemany ( sql [ , parameters ] ) ... xecutemany() method with the parameters given, and returns the cursor. executescript ( sql_script ) ¶ This i ... utescript() method with the given sql_script , and returns the cursor. create_function ( name , num_params , ...
https://man.plustar.jp/python/library/sqlite3.html - [similar]
8.8. weakref --- 弱参照 — Python 3.6.5 ドキュメント 5904
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... __ ( ) ¶ If self is alive then mark it as dead and return the result of calling func(*args, **kwargs) . If s ... elf is dead then return None . detach ( ) ¶ If self is alive then mark it ... as dead and return the tuple (obj, func, args, kwargs) . If self is d ... ead then return None . peek ( ) ¶ If self is alive then return the ...
https://man.plustar.jp/python/library/weakref.html - [similar]
Logging クックブック — Python 3.6.5 ドキュメント 5862
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Logg ... LogRecord ( record ) def unPickle ( self , data ): return pickle . loads ( data ) def handleLogRecord ( self ... message. """ def process ( self , msg , kwargs ): return '[ %s ] %s ' % ( self . extra [ 'connid' ], msg ), ... ) record . user = choice ( ContextFilter . USERS ) return True if __name__ == '__main__' : levels = ( loggin ... args self . kwargs = kwargs def __str__ ( self ): return self . fmt . format ( * self . args , ** self . kw ...
https://man.plustar.jp/python/howto/logging-cookbook.html - [similar]
ソート HOW TO — Python 3.6.5 ドキュメント 5862
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » ソー ... .. self . age = age ... def __repr__ ( self ): ... return repr (( self . name , self . grade , self . age )) ... うにできます: >>> def numeric_compare ( x , y ): ... return x - y >>> sorted ([ 5 , 2 , 4 , 1 , 3 ], cmp = num ... ともできます: >>> def reverse_numeric ( x , y ): ... return y - x >>> sorted ([ 5 , 2 , 4 , 1 , 3 ], cmp = rev ... s ): self . obj = obj def __lt__ ( self , other ): return mycmp ( self . obj , other . obj ) < 0 def __gt__ ...
https://man.plustar.jp/python/howto/sorting.html - [similar]
27.1. bdb --- デバッガーフレームワーク — Python 3.6.5 ドキュメント 5862
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 除いたものです。 reset ( ) ¶ botframe , stopframe , returnframe , quitting 属性を、デバッグを始められる状態に ... 呼び出されているか、別のコードブロックに入ります。 "return" : 関数か別のコードブロックからreturnしようとしてい ... した。 "c_call" : C関数を呼び出そうとしています。 "c_return" : C関数からreturnしました。 "c_exception" : C関数 ... ace_dispatch() メソッドの参照を返します。 dispatch_return ( frame , arg ) ¶ デバッガーがこの関数からのリター ...
https://man.plustar.jp/python/library/bdb.html - [similar]
8.13. enum --- 列挙型のサポート — Python 3.6.5 ドキュメント 5862
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... value_ ( name , start , count , last_values ): ... return name ... >>> class Ordinal ( AutoName ): ... NORTH ... scribe ( self ): ... # self is the member here ... return self . name , self . value ... ... def __str__ ( s ... elf ): ... return 'my custom str! {0} ' . format ( self . value ) .. ... ood ( cls ): ... # cls here is the enumeration ... return cls . HAPPY ... 上記の結果が以下のようになります: ...
https://man.plustar.jp/python/library/enum.html - [similar]
4. その他の制御フローツール — Python 3.6.5 ドキュメント 5862
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... 異論があるかもしれませんね。技術的に言えば、実際には return 文を持たない関数もややつまらない値ですが値を返して ... ような関数を書くのは簡単です: >>> def fib2 ( n ): # return Fibonacci series up to n ... """Return a list cont ... append ( a ) # see below ... a , b = b , a + b ... return result ... >>> f100 = fib2 ( 100 ) # call it >>> f ... 5, 89] この例は Python の新しい機能を示しています: return 文では、関数から一つ値を返します。 return の引数と ...
https://man.plustar.jp/python/tutorial/controlflow.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 NEXT