per page, with , order by , clip by
Results of 1 - 10 of about 80 for long (0.005 sec.)
整数型オブジェクト (integer object) 15944
整数型オブジェクト (integer object) すべての整数は任意の長さをもつ "long" 整数として実装されます。 エラーが起きると、ほとんどの PyLong_As* API は (return type)-1 を返しますが、これは数値と見分けが付きません。 見分けを付けるためには PyErr_Oc ... curred() を使ってください。 type PyLongObject 次に属します: Limited API (不透明な構造体として). この PyObject のサブタイプは Python の整数オブジェクトを表します。 ... PyTypeObject PyLong_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python 整数型を表現します。これは Python レイヤにおける ... int と同じオブジェクトです。 int PyLong_Check ( PyObject * p ) 引数が PyLongObject か PyLongObject のサブタイプであるときに真を返します。この関数は常に成功します。 ...
https://man.mtool.work/python/3.14/c-api/long.html
ctypes --- Python 用の外部関数ライブラリ 11369
ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために ... 起こす可能性があります。 ctypes チュートリアル 注意: いくつかのコードサンプルで ctypes の c_int 型を参照しています。 sizeof(long) == sizeof(int) であるようなプラットフォームでは、この型は c_long のエイリアスです。そのため、 c_int 型を想定しているときに ... c_long が表示されたとしても、混乱しないようにしてください --- 実際には同じ型なのです。 動的リンクライブラリをロードする ctypes は ... int unsigned int int 'I' * c_uint8 uint8_t int * c_uint16 uint16_t int * c_uint32 uint32_t int * c_uint64 uint64_t int * c_long long int 'l' c_ulong unsigned long int 'L' c_longlong long long int 'q' * c_ulonglong unsigned long long int 'Q' * c_size_ ...
https://man.mtool.work/python/3.14/library/ctypes.html
引数の解釈と値の構築 10232
引数の解釈と値の構築 これらの関数は、独自の拡張関数やメソッドを作成するときに便利です。 追加の情報や例は Python インタプリタの拡張と埋め込み を参照してください。 最初に説明する 3 つの関数、 PyArg_ParseTuple() , PyArg_ParseTupleAndKeywords() ... に変換します。 I ( int ) [unsigned int] Convert a Python integer to a C unsigned int , without overflow checking. l ( int ) [long int] Python の整数を、 C の long int 型に変換します。 k ( int ) [unsigned long] Convert a Python integer to a C unsigned l ... ong without overflow checking. バージョン 3.14 で変更: 可能であれば __index__() を使うようになりました。 L ( int ) [long long] Python の整数を、 C の long long 型に変換します。 K ( int ) [unsigned long long] Convert a Python integer to a C uns ... igned long long without overflow checking. バージョン 3.14 で変更: 可能であれば __index__() を使うようになりました。 n ( int ) [ Py_s ...
https://man.mtool.work/python/3.14/c-api/arg.html
Expat C API 8876
Expat C API The xml.parsers.expat module exposes selected Expat functions through its expat_CAPI capsule. This allows extension modules to use the same Expat library as Python. The interface is declared in pyexpat.h , which must be included ... s ( * SetEncoding ) ( XML_Parser parser , const XML_Char * encoding ) int ( * SetHashSalt ) ( XML_Parser parser , unsigned long hash_salt ) XML_Bool ( * SetReparseDeferralEnabled ) ( XML_Parser parser , XML_Bool enabled ) XML_Bool ( * SetAllocTracker ... ActivationThreshold ) ( XML_Parser parser , unsigned long long activationThresholdBytes ) XML_Bool ( * SetAllocTrackerMaximumAmplification ) ( XML_Parser parser , float maxAmplific ... ationFactor ) XML_Bool ( * SetBillionLaughsAttackProtectionActivationThreshold ) ( XML_Parser parser , unsigned long long activationThresholdBytes ) XML_Bool ( * SetBillionLaughsAttackProtectionMaximumAmplification ) ( XML_Parser parser , ...
https://man.mtool.work/python/3.14/c-api/pyexpat.html
データ整列化 (data marshalling) のサポート 8725
データ整列化 (data marshalling) のサポート 以下のルーチン群は、 marshal モジュールと同じ形式を使った整列化オブジェクトを C コードから使えるようにします。整列化形式でデータを書き出す関数に加えて、データを読み戻す関数もあります。整列化されたデ ... を参照してください。 Py_MARSHAL_VERSION 現在の形式のバージョン。 marshal.version を参照してください。 void PyMarshal_WriteLongToFile ( long value , FILE * file , int version ) long 型の整数値 value を file へ整列化します。この関数は value の下桁 32 ... ビットを書き込むだけです; ネイティブの long 型サイズには関知しません。 version はファイルフォーマットを示します。 この関数は失敗することがあり、その場合はエラー指示子 ... イト列オブジェクトを返します。 version はファイルフォーマットを示します。 以下の関数を使うと、整列化された値を読み戻せます。 long PyMarshal_ReadLongFromFile ( FILE * file ) 読み出し用に開かれた FILE * 内のデータストリームから、 C の long 型データを読み ...
https://man.mtool.work/python/3.14/c-api/marshal.html
array --- 効率的な数値配列 8657
array --- 効率的な数値配列 This module defines an object type which can compactly represent an array of basic values: characters, integers, floating-point numbers. Arrays are mutable sequence types and behave very much like lists, except th ... Unicode 文字 4 (2) 'h' signed short int 2 'H' unsigned short int 2 'i' signed int int 2 'I' unsigned int int 2 'l' signed long int 4 'L' unsigned long int 4 'q' signed long long int 8 'Q' unsigned long long int 8 'f' 浮動小数点数 浮動小数点数 4 'd' ... ng representation is guaranteed to be able to be converted back to an array with the same type and value using eval() , so long as the array class has been imported using from array import array . Variables inf and nan must also be defined if it cont ... は、別の配列型を定義しています。 他のマニュアルの関連ページ PHP is_infinite() Linux JM unicode(7) PHP ps_get_buffer() PHP is_long() Linux JM wcpcpy(3) Linux JM wcscmp(3) ...
https://man.mtool.work/python/3.14/library/array.html
文字列の変換と書式化 8013
文字列の変換と書式化 数値変換と、書式化文字列出力のための関数群。 int PyOS_snprintf ( char * str , size_t size , const char * format , ... ) 次に属します: Stable ABI . 書式文字列 format と追加の引数から、 size バイトを超えない文字列を str に ... は、基盤となるプラットフォームによって異なります。 以下の関数は locale 非依存な文字列から数値への変換を行ないます。 unsigned long PyOS_strtoul ( const char * str , char * * ptr , int base ) 次に属します: Stable ABI . 文字列 str の先頭部分を、指定された ... 基数 base に従って unsigned long の値に変換します。 base は 2 以上 36 以下、または特別な値 0 でなければなりません。 先頭の空白と文字の大文字・小文字の違いは ... した位置へのポインタを格納します。 変換した値が戻り値の型の範囲外になった場合、範囲エラーとして errno を ERANGE に設定し、 ULONG_MAX を返します。 変換できなかった場合は 0 を返します。 Unix マニュアルページ strtoul(3) も参照してください。 Added in vers ...
https://man.mtool.work/python/3.14/c-api/conversion.html
posix --- 最も一般的な POSIX システムコール群 8013
posix --- 最も一般的な POSIX システムコール群 このモジュールはオペレーティングシステムの機能のうち、C 言語標準および (Unix インターフェースをほんの少し隠蔽した) POSIX 標準で標準化されている機能に対するアクセス機構を提供します。 利用可能な環 ... 報告するエラーには OSError が送出されます。 ラージファイルのサポート いくつかの OS (AIX や Solaris を含みます) では、 int と long が 32 ビットの C プログラミングモデルでも、2 GiB を超えるファイルを扱えます。 通常、これはサイズやオフセットに関係する型を ... トとして定義することで実現します。 このようなファイルを ラージファイル と呼ぶことがあります。 Python では、 off_t のサイズが long より大きく、かつ long long が少なくとも off_t と同じくらい大きなサイズであるとき、ラージファイルのサポートが有効になります ...
https://man.mtool.work/python/3.14/library/posix.html
同期プリミティブ 7794
同期プリミティブ C API は基本的な相互排他ロックを提供します。 type PyMutex 相互排他ロックです。 PyMutex は、ロックされていない状態を表すために 0 で初期化する必要があります。 例えば次のようにします。 PyMutex mutex = { 0 }; PyMutex のインスタ ... とにより旧式となりました。 type PyThread_type_lock 相互排他ロックへのポインタです。 PY_TIMEOUT_T A soft deprecated alias to long long , the integer type used for the timeout argument of PyThread_acquire_lock_timed() . バージョン 3.14.10 で ソフト非推奨 ... <Soft deprecated> . const long long PY_TIMEOUT_MAX The maximum timeout, in microseconds, supported by PyThread_acquire_lock_timed() . 注釈 This differs f ... に スレッド状態がアタッチされている 必要はありません。 PyLockStatus PyThread_acquire_lock_timed ( PyThread_type_lock lock , long long microseconds , int intr_flag ) 次に属します: Stable ABI . タイムアウト付きで lock を取得します。 ロックを取得するまで ...
https://man.mtool.work/python/3.14/c-api/synchronization.html
textwrap --- テキストの折り返しと詰め込み 7794
textwrap --- テキストの折り返しと詰め込み ソースコード: Lib/textwrap.py textwrap モジュールは、実際の処理をすべて担う TextWrapper クラスと、いくつかの便利な関数を提供します。 1 つか 2 つの文字列を折り返したり詰め込んだりするだけなら、これら ... dent = '' , subsequent_indent = '' , expand_tabs = True , replace_whitespace = True , fix_sentence_endings = False , break_long_words = True , drop_whitespace = True , break_on_hyphens = True , tabsize = 8 , max_lines = None , placeholder = ' [...]' ... dent = '' , subsequent_indent = '' , expand_tabs = True , replace_whitespace = True , fix_sentence_endings = False , break_long_words = True , drop_whitespace = True , break_on_hyphens = True , tabsize = 8 , max_lines = None , placeholder = ' [...]' ... まったく同じ名前のキーワード引数を受け取ります。 textwrap. shorten ( text , width , * , fix_sentence_endings = False , break_long_words = True , break_on_hyphens = True , placeholder = ' [...]' ) 与えられた text を折りたたみ、切り詰めて、与えられた wid ...
https://man.mtool.work/python/3.14/library/textwrap.html
PREV 1 2 3 4 5 6 7 8 NEXT