Results of 1 - 10 of about 11 for overflow (0.010 sec.)
- 整数型オブジェクト (integer object) 12874
- 整数型オブジェクト (integer object) すべての整数は任意の長さをもつ "long" 整数として実装されます。 エラーが起きると、ほとんどの PyLong_As* API は (return type)-1 を返しますが、これは数値と見分けが付きません。 見分けを付けるためには PyErr_Oc
...、まず __index__() メソッド (存在する場合) を呼び出して PyLongObject に変換します。 もし obj の値が long の範囲外であれば、 OverflowError を送出します。 エラーが起きたときに -1 を返します。 見分けを付けるためには PyErr_Occurred() を使ってください。 バージ...__int__() を使わなくなりました。 long PyLong_AS_LONG ( PyObject * obj ) 推奨される PyLong_AsLong と完全に等価です。 特に、 OverflowError や他の例外で失敗する場合があります。 バージョン 3.14 で ソフト非推奨 <Soft deprecated> . int PyLong_AsInt ( PyObject...り). PyLong_AsLong() と同様ですが、結果を C の long ではなく int に格納します。 Added in version 3.13. long PyLong_AsLongAndOverflow ( PyObject * obj , int * overflow ) 次に属します: Stable ABI . obj を表す C の long を返します。 obj が PyLongObject のイン... - https://man.mtool.work/python/3.14/c-api/long.html
- 文字列の変換と書式化 10846
- 文字列の変換と書式化 数値変換と、書式化文字列出力のための関数群。 int PyOS_snprintf ( char * str , size_t size , const char * format , ... ) 次に属します: Stable ABI . 書式文字列 format と追加の引数から、 size バイトを超えない文字列を str に
...3) も参照してください。 Added in version 3.2. double PyOS_string_to_double ( const char * s , char * * endptr , PyObject * overflow_exception ) 次に属します: Stable ABI . 文字列 s を double に変換します。失敗したときは Python の例外を発生させます。受け入...represents a value that is too large to store in a float (for example, "1e500" is such a string on many platforms) then if overflow_exception is NULL return Py_INFINITY (with an appropriate sign) and don't set any exception. Otherwise, overflow_exception... - https://man.mtool.work/python/3.14/c-api/conversion.html
- 引数の解釈と値の構築 10562
- 引数の解釈と値の構築 これらの関数は、独自の拡張関数やメソッドを作成するときに便利です。 追加の情報や例は Python インタプリタの拡張と埋め込み を参照してください。 最初に説明する 3 つの関数、 PyArg_ParseTuple() , PyArg_ParseTupleAndKeywords()
..._() 、 __float__() 、 __complex__() で Python オブジェクトを必要な型に変換することもできます。 For signed integer formats, OverflowError is raised if the value is out of range for the C type. For unsigned integer formats, no range checking is done --- th...整数に変換し、C の unsigned char に格納します。 B ( int ) [unsigned char] Convert a Python integer to a tiny integer without overflow checking, stored in a C unsigned char . h ( int ) [short int] Python の整数を、 C の short int 型に変換します。 H ( int )...[unsigned short int] Convert a Python integer to a C unsigned short int , without overflow checking. i ( int ) [int] Python の整数を、 C の int 型に変換します。 I ( int ) [unsigned int] Convert a Python integer to... - https://man.mtool.work/python/3.14/c-api/arg.html
- decimal --- 10進固定小数点と浮動小数点の演算 9691
- decimal --- 10進固定小数点と浮動小数点の演算 ソースコード: Lib/decimal.py decimal モジュールは、高速で正しく丸められる 10 進浮動小数点演算をサポートします。 float データ型に比べて次のような利点があります: Decimal は「人間を念頭に設計された
...て扱われたりします。 decimal モジュールには、 Clamped , InvalidOperation , DivisionByZero , Inexact , Rounded , Subnormal , Overflow , Underflow , および FloatOperation といったシグナルがあります。 各シグナルには、フラグとトラップイネーブラがあります。演算...getcontext () Context(prec=28, rounding=ROUND_HALF_EVEN, Emin=-999999, Emax=999999, capitals=1, clamp=0, flags=[], traps=[Overflow, DivisionByZero, InvalidOperation]) >>> getcontext () . prec = 7 # 新しい精度を設定します Decimal インスタンスは、整数、文...のペア (n, d) を返します。 >>> Decimal ( '-3.14' ) . as_integer_ratio () (-157, 50) 変換は正確に行われます。無限大に対してはOverflowErrorを、NaNに対してはValueError を送出します。 Added in version 3.6. as_tuple ( ) 数値を表現するための 名前付きタプル : De... - https://man.mtool.work/python/3.14/library/decimal.html
- 3. Python を構成する 8535
- 3. Python を構成する 3.1. ビルド要件 CPython をビルドするためには、次のものが必要です: C11 コンパイラ。 C11 オプション機能 は不要です。 Windows では、 Microsoft Visual Studio 2017 以降が必要です。 IEEE 754 浮動小数点数と 浮動小数点 Not-a-Nu
...さい。 --enable-profiling gprof による C レベルのコードのプロファイリングを有効にします (デフォルトでは無効)。 --with-strict-overflow C コンパイラのフラグに -fstrict-overflow を追加します (デフォルトでは代わりに -fno-strict-overflow を追加します)。 --witho... - https://man.mtool.work/python/3.14/using/configure.html
- errno --- 標準の errno システムシンボル 7966
- errno --- 標準の errno システムシンボル このモジュールから標準の errno システムシンボルを取得することができます。個々のシンボルの値は errno に対応する整数値です。これらのシンボルの名前は、 linux/include/errno.h から借用されており、網羅的なは
...します。 errno. EINVAL 無効な引数です (Invalid argument) errno. ENFILE ファイルテーブルがオーバフローしています (File table overflow) errno. EMFILE 開かれたファイルが多すぎます (Too many open files) errno. ENOTTY タイプライタではありません (Not a typewrit...OTDOT RFS 特有のエラーです (RFS specific error) errno. EBADMSG データメッセージではありません (Not a data message) errno. EOVERFLOW 定義されたデータ型にとって大きすぎる値です (Value too large for defined data type) errno. ENOTUNIQ 名前がネットワーク上で一... - https://man.mtool.work/python/3.14/library/errno.html
- はじめに 7663
- はじめに Python のアプリケーションプログラマー向けインターフェース (API) は、C と C++ のプログラマーに、Python インタープリタへのさまざまなレベルのアクセスを提供します。 C++ からも同様に使えますが、簡潔に Python/C API と呼びます。 Python/C
...as a list, as well as performing any additional finalization that's needed. There's no chance that the reference count can overflow; at least as many bits are used to hold the reference count as there are distinct memory locations in virtual memory (assu... - https://man.mtool.work/python/3.14/c-api/intro.html
- ctypes --- Python 用の外部関数ライブラリ 7379
- ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために
...pes. c_ulonglong Represents the C unsigned long long datatype. The constructor accepts an optional integer initializer; no overflow checking is done. On platforms where sizeof(long long) == sizeof(long) it is an alias to c_ulong . class ctypes. c_ushort... - https://man.mtool.work/python/3.14/library/ctypes.html
- What's New in Python 2.6 7379
- What's New in Python 2.6 著者 : A.M. Kuchling (amk at amk.ca) この記事では、2008 年 10 月 1 日にリリースされた Python 2.6 の新機能を説明します。 リリース日程は PEP 361 に記載されています。 Python 2.6 の主要なテーマは、言語を大幅に再設計する
...ivide-by-zero' または 'invalid' を伝えることを勧告している箇所では Python は ValueError を投げます。C99 標準の付録 'F' で 'overflow' を伝えることを勧告している箇所では Python は OverflowError を投げます。 (See bpo-711019 and bpo-1640 .) (Contributed by C... - https://man.mtool.work/python/3.14/whatsnew/2.6.html
- What's New in Python 2.7 7379
- What's New in Python 2.7 著者 : A.M. Kuchling (amk at amk.ca) この文書は Python 2.7 の新機能について解説します。Python 2.7 は 2010 年 7 月 3 日にリリースされました。 数値周りの扱いが、浮動小数点数でも Decimal クラスでもいろいろな点で改良され
...ました。 round() 関数も正しく丸めるようになりました。 拡張モジュールが C API を提供するための、 PyCapsule 型 PyLong_AsLongAndOverflow() C API 関数 新しい Python3 モード Warning: operator.isCallable() と operator.sequenceIncludes() は 3.x ではサポートされず...を得て、それからそのアドレスに対応する行番号を探索する必要がありました。(Added by Jeffrey Yasskin.) 新関数: PyLong_AsLongAndOverflow() と PyLong_AsLongLongAndOverflow() は、Python の長整数を C の long または long long に変換します。 出力型に収まらない場合...は、 overflow フラグを設定して呼び出し側へ返します。 (Case Van Horsen による貢献です。 bpo-7528 、 bpo-7767 。) 新関数: 文字列から浮動小... - https://man.mtool.work/python/3.14/whatsnew/2.7.html