Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 12 for PyLong (0.028 sec.)
整数型オブジェクト (integer object) — Python 3.6.5 ドキュメント 14627
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... もつ "long" 整数として実装されます。 On error, most PyLong_As* APIs return (return type)-1 which cannot be di ... om a number. Use PyErr_Occurred() to disambiguate. PyLongObject ¶ この PyObject のサブタイプは整数型を表現し ... ます。 PyTypeObject PyLong_Type ¶ この PyTypeObject のインスタンスは Python 整 ... on レイヤにおける int と同じオブジェクトです。 int PyLong_Check ( PyObject *p ) ¶ 引数が PyLongObject か PyL ...
https://man.plustar.jp/python/c-api/long.html - [similar]
はじめに — Python 3.6.5 ドキュメント 8967
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... ; t = PyTuple_New ( 3 ); PyTuple_SetItem ( t , 0 , PyLong_FromLong ( 1L )); PyTuple_SetItem ( t , 1 , PyLong ... , 2 , PyUnicode_FromString ( "three" )); ここで、 PyLong_FromLong() は新しい参照を返し、すぐに PyTuple_SetI ... for ( i = 0 ; i < n ; i ++ ) { PyObject * index = PyLong_FromSsize_t ( i ); if ( ! index ) return -1 ; if ( ... List_GetItem ( list , i ); /* Can't fail */ if ( ! PyLong_Check ( item )) continue ; /* Skip non-integers */ ...
https://man.plustar.jp/python/c-api/intro.html - [similar]
1. C や C++ による Python の拡張 — Python 3.6.5 ドキュメント 8720
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... )) return NULL ; sts = system ( command ); return PyLong_FromLong ( sts ); } ここでは、Python の引数リスト ... なりません。オブジェクトを生成する全ての関数 (例えば PyLong_FromLong() ) は PyErr_NoMemory() の呼び出しを済ませ ... "System command failed" ); return NULL ; } return PyLong_FromLong ( sts ); } 1.3. 例に戻る ¶ 先ほどの関数の ... n オブジェクトとして返さねばなりません。これには、 PyLong_FromLong() を使います。 return PyLong_FromLong ( s ...
https://man.plustar.jp/python/extending/extending.html - [similar]
1. 他のアプリケーションへの Python の埋め込み — Python 3.6.5 ドキュメント 8419
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... ); for ( i = 0 ; i < argc - 3 ; ++ i ) { pValue = PyLong_FromLong ( atoi ( argv [ i + 3 ])); if ( ! pValue ... e != NULL ) { printf ( "Result of call: %ld \n " , PyLong_AsLong ( pValue )); Py_DECREF ( pValue ); } else { ... eTuple ( args , ":numargs" )) return NULL ; return PyLong_FromLong ( numargs ); } static PyMethodDef EmbMeth ...
https://man.plustar.jp/python/extending/embedding.html - [similar]
辞書オブジェクト (dictionary object) — Python 3.6.5 ドキュメント 8384
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... lf -> dict , & pos , & key , & value )) { long i = PyLong_AsLong ( value ); if ( i == -1 && PyErr_Occurred ( ... )) { return -1 ; } PyObject * o = PyLong_FromLong ( i + 1 ); if ( o == NULL ) return -1 ; i ...
https://man.plustar.jp/python/c-api/dict.html - [similar]
What's New In Python 3.1 — Python 3.6.5 ドキュメント 8260
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... git=4) (Contributed by Mark Dickinson; bpo-4258 .) PyLong_AsUnsignedLongLong() 関数は負の pylong に対し Type ...
https://man.plustar.jp/python/whatsnew/3.1.html - [similar]
Python 3 への拡張モジュール移植 — Python 3.6.5 ドキュメント 8171
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Pyth ... り除かれました。 C-API では PyInt_* 関数群が、同等の PyLong_* に置き換えられています。 モジュールの初期化と状態 ...
https://man.plustar.jp/python/howto/cporting.html - [similar]
What's New in Python 2.7 — Python 3.6.5 ドキュメント 8136
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 張モジュールが C API を提供するための、 PyCapsule 型 PyLong_AsLongAndOverflow() C API 関数 新しい Python3 モー ... ありました。(Added by Jeffrey Yasskin.) 新しい関数: PyLong_AsLongAndOverflow() および PyLong_AsLongLongAndOve ...
https://man.plustar.jp/python/whatsnew/2.7.html - [similar]
3. Defining Extension Types: Assorted Topics — Python 3.6.5 ドキュメント 8101
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... ) { if ( strcmp ( name , "data" ) == 0 ) { return PyLong_FromLong ( obj -> data ); } PyErr_Format ( PyExc_A ...
https://man.plustar.jp/python/extending/newtypes.html - [similar]
2. 拡張の型の定義: チュートリアル — Python 3.6.5 ドキュメント 8101
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... , PyObject * unused ) { self -> state ++ ; return PyLong_FromLong ( self -> state ); } static PyMethodDef S ...
https://man.plustar.jp/python/extending/newtypes_tutorial.html - [similar]
PREV 1 2 NEXT