Results of 1 - 10 of about 45 for double (0.005 sec.)
- 浮動小数点オブジェクト 16444
- 浮動小数点オブジェクト type PyFloatObject この PyObject のサブタイプは Python の浮動小数点オブジェクトを表します。 PyTypeObject PyFloat_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python の浮動小数点型を表します。 Pyt
...e ABI . str の文字列値をもとに PyFloatObject オブジェクトを生成します。失敗すると NULL を返します。 PyObject * PyFloat_FromDouble ( double v ) 戻り値: 新しい参照。 次に属します: Stable ABI . v から PyFloatObject オブジェクトを生成して返します。 失敗する...と NULL を返します。 double PyFloat_AsDouble ( PyObject * pyfloat ) 次に属します: Stable ABI . pyfloat の値を C の double で返します。 pyfloat が Pyth...を呼び出してエラーの有無を確認する必要があります。 バージョン 3.8 で変更: 可能であれば __index__() を使うようになりました。 double PyFloat_AS_DOUBLE ( PyObject * pyfloat ) pyfloat の指す値を、 C の double 型表現で返しますが、エラーチェックを行いません。... - https://man.mtool.work/python/3.14/c-api/float.html
- 複素数オブジェクト 11147
- 複素数オブジェクト Python's complex number objects are implemented as two distinct types when viewed from the C API: one is the Python object exposed to Python programs, and the other is a C structure which represents the actual complex num
...e functions for dealing with complex number objects use structures of this type as input or output values, as appropriate. double real double imag 構造体は次のように定義されています。 typedef struct { double real ; double imag ; } Py_complex ; Py_compl...ら、新しい Python の複素数オブジェクトを作成します。 エラーの場合は例外を設定して NULL を返します。 PyObject * PyComplex_FromDoubles ( double real , double imag ) 戻り値: 新しい参照。 次に属します: Stable ABI . real と imag から新しい PyComplexObject オブ...ジェクトを作成して返します。 エラーの場合は例外を設定して NULL を返します。 double PyComplex_RealAsDouble ( PyObject * op ) 次に属します: Stable ABI . op の実数部分を C の double 型で返します。 op が Pytho... - https://man.mtool.work/python/3.14/c-api/complex.html
- 10. 完全な文法仕様 9493
- 10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント
...============== START OF THE GRAMMAR ========================= # General grammatical elements and rules: # # * Strings with double quotes (") denote SOFT KEYWORDS # * Strings with single quotes (') denote KEYWORDS # * Upper case names (NAME) denote toke...tar_pattern | pattern star_pattern : | '*' pattern_capture_target | '*' wildcard_pattern mapping_pattern : | '{' '}' | '{' double_star_pattern ',' ? '}' | '{' items_pattern ',' double_star_pattern ',' ? '}' | '{' items_pattern ',' ? '}' items_pattern :...| ',' . key_value_pattern + key_value_pattern : | ( literal_expr | attr ) ':' pattern double_star_pattern : | '**' pattern_capture_target class_pattern : | name_or_attr '(' ')' | name_or_attr '(' positional_patterns... - https://man.mtool.work/python/3.14/reference/grammar.html
- ctypes --- Python 用の外部関数ライブラリ 9018
- ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために
...igned long long int 'Q' * c_size_t size_t int * c_ssize_t Py_ssize_t int * c_time_t time_t int * c_float float float 'f' c_double double float 'd' c_longdouble long double float 'g' * c_char_p char * (NUL 終端) bytes または None 'z' c_wchar_p wchar_t *...トする場合、以下の複素数型を利用できます: ctypes の型 C の型 Python の型 _type_ c_float_complex float complex complex 'F' c_double_complex double complex complex 'D' c_longdouble_complex long double complex complex 'G' これら全ての型はその型を呼び出すこ...の型は、必要な C のデータ型に変換できるよう、対応する ctypes の型でラップする必要があります。 >>> printf ( b "An int %d , a double %f \n " , 1234 , c_double ( 3.14 )) An int 1234, a double 3.140000 31 >>> 可変長引数関数の呼び出し 多くのプラットフォームで... - https://man.mtool.work/python/3.14/library/ctypes.html
- 文字列の変換と書式化 8804
- 文字列の変換と書式化 数値変換と、書式化文字列出力のための関数群。 int PyOS_snprintf ( char * str , size_t size , const char * format , ... ) 次に属します: Stable ABI . 書式文字列 format と追加の引数から、 size バイトを超えない文字列を str に
...で、オーバーフロー時には LONG_MAX を返します。 Unix マニュアルページ strtol(3) も参照してください。 Added in version 3.2. double PyOS_string_to_double ( const char * s , char * * endptr , PyObject * overflow_exception ) 次に属します: Stable ABI . 文字...列 s を double に変換します。失敗したときは Python の例外を発生させます。受け入れられる文字列は、 Python の float() コンストラクタが受け付...生した場合(例えば out-of-memory エラー)、適切な Python の例外を設定して -1.0 を返します。 Added in version 3.1. char * PyOS_double_to_string ( double val , char format_code , int precision , int flags , int * ptype ) 次に属します: Stable ABI . double va... - https://man.mtool.work/python/3.14/c-api/conversion.html
- PyTime C API 8329
- PyTime C API Added in version 3.13. クロック C API は、システムクロックへのアクセスを提供します。これは Python の time モジュールに似ています。 datetime モジュールに関連する C API については、 DateTime オブジェクト を参照してください。 型 t
...t * result ) PyTime_Time() と同様ですが、エラー時に例外を設定せず、 アタッチされたスレッド状態 も必要としません。 変換関数 double PyTime_AsSecondsDouble ( PyTime_t t ) タイムスタンプを、C の double 型の秒数に変換します。 この関数は失敗しませんが、大きな...値に対する double の精度には限りがあることに注意してください。 他のマニュアルの関連ページ Linux JM clock_nanosleep(2) Linux JM nanosleep(2)... - https://man.mtool.work/python/3.14/c-api/time.html
- 整数型オブジェクト (integer object) 7640
- 整数型オブジェクト (integer object) すべての整数は任意の長さをもつ "long" 整数として実装されます。 エラーが起きると、ほとんどの PyLong_As* API は (return type)-1 を返しますが、これは数値と見分けが付きません。 見分けを付けるためには PyErr_Oc
...t オブジェクトを作成して返します。 失敗すると例外を設定して NULL を返します。 Added in version 3.14. PyObject * PyLong_FromDouble ( double v ) 戻り値: 新しい参照。 次に属します: Stable ABI . v の整数部から新たな PyLongObject オブジェクトを生成して返しま...定して 0 を返します。 エラー時には例外を設定して -1 を返します。 value は NULL であってはなりません。 Added in version 3.14. double PyLong_AsDouble ( PyObject * pylong ) 次に属します: Stable ABI . pylong を表す C の double を返します。 pylong は PyLongOb...ject のインスタンスでなければなりません。 もし pylong の値が double の範囲外であれば、 OverflowError を送出します。 エラーが起きたときに -1.0 を返します。 見分けを付けるためには PyErr_Occurr... - https://man.mtool.work/python/3.14/c-api/long.html
- 引数の解釈と値の構築 7564
- 引数の解釈と値の構築 これらの関数は、独自の拡張関数やメソッドを作成するときに便利です。 追加の情報や例は Python インタプリタの拡張と埋め込み を参照してください。 最初に説明する 3 つの関数、 PyArg_ParseTuple() , PyArg_ParseTupleAndKeywords()
...キャラクタを C の int 型に変換します。 f ( float ) [float] Python の浮動小数点数を C の float に変換します。 d ( float ) [double] Python の浮動小数点数を C の double に変換します。 D ( complex ) [Py_complex] Python の複素数型を、 C の Py_complex 構造体...す。 C (長さ 1 の str ) [int] 文字を表す通常の C の int を、長さ 1 の Python の str オブジェクトに変換します。 d ( float ) [double] C の double を Python の浮動小数点数に変換します。 f ( float ) [float] C の float を Python の浮動小数点数に変換します。... - https://man.mtool.work/python/3.14/c-api/arg.html
- C API Stability 7564
- C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修
...eader() PyCodec_StreamWriter() PyCodec_StrictErrors() PyCodec_Unregister() PyCodec_XMLCharRefReplaceErrors() PyComplex_FromDoubles() PyComplex_ImagAsDouble() PyComplex_RealAsDouble() PyComplex_Type PyDescr_NewClassMethod() PyDescr_NewGetSet() PyDescr_N...xception_SetTraceback() PyFile_FromFd() PyFile_GetLine() PyFile_WriteObject() PyFile_WriteString() PyFilter_Type PyFloat_AsDouble() PyFloat_FromDouble() PyFloat_FromString() PyFloat_GetInfo() PyFloat_GetMax() PyFloat_GetMin() PyFloat_Type PyFrameObject...se() PyList_SetItem() PyList_SetSlice() PyList_Size() PyList_Sort() PyList_Type PyLongObject PyLongRangeIter_Type PyLong_AsDouble() PyLong_AsInt() PyLong_AsInt32() PyLong_AsInt64() PyLong_AsLong() PyLong_AsLongAndOverflow() PyLong_AsLongLong() PyLong_A... - https://man.mtool.work/python/3.14/c-api/stable.html
- Tkinter のダイアログ 7502
- Tkinter のダイアログ tkinter.simpledialog --- Tkinter の標準入力ダイアログ ソースコード: Lib/tkinter/simpledialog.py tkinter.simpledialog モジュールには、ユーザーから値を受け取るための単純なモーダルダイアログを作る便利なクラスと関数がありま
...) 基本的なファイル選択ダイアログを作ります。 cancel_command ( event = None ) ダイアログウィンドウの終了を開始します。 dirs_double_event ( event ) ディレクトリのダブルクリックイベントのハンドラー。 dirs_select_event ( event ) ディレクトリのクリックイベン...トのハンドラー。 files_double_event ( event ) ファイルのダブルクリックイベントのハンドラー。 files_select_event ( event ) ファイルのシングルクリックイベ... - https://man.mtool.work/python/3.14/library/dialog.html