uses standard Python exceptions such as TypeError and AttributeError. は、TypeError や AttributeError といった標準の Python 例外を使います。 - Python
If coercion is not possible, raise TypeError.
型変換が不可能である場合、TypeError を送出します。 - Python
Raises TypeError if the object is not a Unicode object. オブジェクトが Unicode オブジェクトでない場合にはTypeErrorを送出します。 - Python
Attempting to set a method attribute results in a TypeError being raised. メソッド属性の設定を試みると TypeError が送出されます。 - Python
If the Python object does not have the required type,TypeError is raised. Python オブジェクトが指定した型ではない場合、TypeError を送出します。 - Python
Raises TypeError if the object is not a string object. オブジェクトが文字列オブジェクトでない場合にはTypeErrorを送出します。 - Python
If no valid value is read, raise EOFError, ValueError or TypeError. 有効な値が読み出せなかった場合、EOFError、ValueError、またはTypeError を送出します。 - Python
If no valid value is found, raise EOFError, ValueError or TypeError. 有効な値が見つからなかった場合、EOFError、 ValueError、またはTypeError が送出されます。 - Python
If one comparand is naive and the other is aware,TypeError is raised.
被演算子の片方が naive でもう一方が aware の場合、TypeError が送出されます。 - Python
On error, sets the appropriate exception(EOFError or TypeError) and returns NULL.
エラーが生じた場合、適切な例外 (EOFError またはTypeError) を送出して NULLを返します。 - Python
Note:These cannot be decoded; passing a non-NULLvalue for encoding will result in a TypeError.
注意:Unicode オブジェクトはデコードできません; encoding に NULL でない値を渡すと、TypeError になります。 - Python
Returns -1 and sets a TypeError on error.New in version 1.6.
エラーの際には -1 を返し、TypeError をセットします。 バージョン 1.6 で 新たに追加 された仕様です。 - Python
If this is also not implemented or returns NotImplemented, a TypeError exception is raised. この演算も実装されていないか、NotImplemented を返すなら、 TypeError例外が送出されます。 - Python
The , =, and =operators will raise a TypeError exception when any operand is a complex number. 被演算子が複素数の場合、演算子 、 = 、 および = は例外 TypeError を送出します。 - Python
This will fail with a TypeError if the object is a built-in module, class, or function. オブジェクトが組み込みモジュール・クラス・関数の場合はTypeError例外が発生します。 - Python
This will fail with a TypeError if the objectis a built-in module, class, or function.
オブジェクトが組み込みのモジュール、クラス、関数の場合には、TypeError例外が発生します。 - Python
If the object is not a sequence, raises TypeError with m as the message text. オブジェクトがシーケンスでなければ、m がメッセージテキストになっているTypeError を送出します。 - Python
Only single-segment buffer objects are accepted; TypeError is raised for all others. 単一セグメントからなるバッファオブジェクトだけを受理します;それ以外の場合には TypeError を送出します。 - Python
If the base object does not export the writeable buffer protocol,then TypeError is raised. base オブジェクトが書き込み可能バッファに必要なバッファプロトコルを公開していない場合、TypeError を送出します。 - Python
If object is not callable (and hence not valid as a constructor), raises TypeError. objectが呼び出し可能でなければ(そして、それゆえコンストラクタとして有効でないならば)、TypeErrorを発生します。 - Python
In all three cases, if the argument does not have the proper type,a TypeError exception is raised.
上記の三つはいずれも、引数が正しい型でない場合には TypeError例外が送出されます。 - Python
It should yield an object with assignableattributes; if this is not the case, TypeError is raised.
値は代入可能な属性を伴うオブジェクトでなければなりません; そうでなければ、 TypeError が送出されます。 - Python
If the third object is present and not a traceback object or None, a TypeError exception is raised. 第三のオブジェクトが存在し、オブジェクトがトレースバックオブジェクトでも None でもなければ、TypeError 例外が送出されます。 - Python
These functions raise TypeError when expecting a string parameter and are called with a non-string parameter. 以下の関数では、文字列が渡されるはずのパラメタに非文字列が渡された場合に TypeError を送出します。 - Python
If there are any unfilled slots for which no default value is specified, a TypeError exception is raised. )デフォルト値が指定されていない、値の埋められていないスロットが残っている場合、TypeError 例外が送出されます。 - Python
When an object does not support attribute references or attribute assignmentsat all, TypeError is raised. 対照のオブジェクトが属性の参照や属性の代入をまったくサポートしていない場合にはTypeError が送出されます。 - Python
TypeError will be raised if object is a class or constructor is not callable.See the objectがクラスであるか、またはconstructorが呼び出し可能でない場合に、TypeErrorを発生します。 functionとconstructorの求められるインターフェイスについての詳細は、 - Python
If not, when a datetime object is compared to an object of a different type, TypeError is raised unless the comparison is == or !=. そうでない場合、datetime オブジェクトと異なる型のオブジェクトが比較されると、比較演算子が == または !=でないかぎり TypeError が送出されます。 - Python
Removes the entry in dictionary p with key key.key must be hashable; if it isn't, TypeError is raised. 辞書 p から key をキーとするエントリを除去します。 key はハッシュ可能でなければなりません; ハッシュ可能でない場合、 TypeError を送出します。 - Python
If iterable is another array, it must have exactly the same type code; if not, TypeError will be raised. iterable が別のアレイ型である場合、二つのアレイは全く同じ型コードをでなければなりません。 それ以外の場合にはTypeError を送出します。 - Python
In any other case, a TypeError exception is raised.Changed in version 2.3:Support for a tuple of type information was added. その他の場合では、例外 TypeError が送出されます。 バージョン 2.3 で 変更 された仕様:型情報からなるタプルへのサポートが追加されました - Python
As a specialconstraint on constructors, no value may be returned; doing so will cause a TypeError to be raised at runtime. コンストラクタには、値を返してはならないという特殊な制限があります; 値を返すようにすると、実行時にTypeError の送出を引き起こします。 - Python
key must be hashable; if it isn't,TypeError will be raised.Returns 0 on success or -1 on failure.
key はハッシュ可能でなければなりません;ハッシュ可能でない場合、 TypeError を送出します。 成功した場合には 0 を、失敗した場合には -1 を返します。 - Python
Changed in version 2.4:When no iterables are specified, returns a zero lengthiterator instead of raising a TypeError exception.
バージョン 2.4 で 変更 された仕様:イテレート可能オブジェクトを指定しない場合、TypeError 例外を送出する代わりに長さゼロのイテレータを返します。 - Python
If the object is not an iterator, TypeError is raised, or if there is an error in retrieving the item, returns NULL and passes along the exception. オブジェクトがイテレータでない場合には TypeErrorを送出します。 要素を取り出す際にエラーが生じると NULL を返し、発生した例外を送出します。 - Python
A TypeError is raised ifs were incorrectly padded or if there are non-alphabetcharacters present in the string.
デコードされた文字列が返されます。 s が正しくパディングされていなかったり、規定のアルファベット以外の文字が含まれていた場合には TypeError が発生します。 - Python
Slice indices are silently truncated to fall in the allowed range; if an index is not a plain integer, TypeError is raised. スライスのインデクスはシーケンスの範囲に収まるように暗黙のうちに調整されます; インデクスが通常の整数でない場合、TypeErrorが送出されます。 - Python
If only one of these two methods is defined, the object will not support division in the alternate context; TypeError will be raised instead. 二つのメソッドのうち一方しか定義されていなければ、オブジェクトは他方の演算コンテキストをサポートしなくなります; このとき、TypeError が送出されます。 - Python
TypeError should be raised if the object only supports read-only buffers, and SystemError should be raised when segment specifies a segment that doesn't exist. オブジェクトが呼び出し専用バッファしかサポートしていない場合にはTypeError を、segment が存在しないセグメントを指している場合には SystemError を送出しなければなりません。 - Python
datetime1 is considered less than datetime2when datetime1 precedes datetime2 in time.If one comparand is naive and the other is aware, TypeError is raised. datetime1 が時刻として datetime2 よりも前を表す場合に、datetime1 はdatetime2 よりも小さいと見なされます。 被演算子の片方が naive でもう一方が aware の場合、TypeError が送出されます。 - Python
Note:Nested tuples cannot be parsed when using keyword arguments! Keyword parameters passed in which are not present in the kwlist will cause TypeError to be raised. 注意:キーワード引数を使っている場合、タプルは入れ子にして使えません!kwlist 内に存在しないキーワードパラメタが渡された場合、TypeError の送出を引き起こします。 - Python
RaisesTypeError and returns NULL if the object cannot be iterated. オブジェクトが反復処理不可能であった場合にはTypeError を送出して NULL を返します。 - Python
If radix is specified and x is not a string,TypeError is raised.Otherwise, the argument may be a plain or long integer or a floating point number. radix が指定されており、x が文字列でない場合、TypeError が送出されます。 それ以外の場合、引数は通常整数、長整数、または浮動小数点数をとることができます。 - Python
If it does not support either of those protocols, TypeError is raised.If the second argument, sentinel, is given, then o must be a callable object. これらのプロトコルが両方ともサポートされていない場合、 TypeError が送出されます。 2 つ目の引数 sentinel が与えられていれば、oは呼び出し可能なオブジェクトでなければなりません。 - Python
The Python string must not contain embedded NUL bytes; if it does, a TypeError exception is raised.Unicode objects are converted to C strings using the default encoding. Python の文字列型は、NUL バイトが途中に埋め込まれていてはなりません; もし埋め込まれていればTypeError 例外を送出します。 Unicode オブジェクトはデフォルトエンコーディングを使ってC 文字列に変換されます。 - Python
This raises TypeError if base doesn't support the read-onlybuffer protocol or doesn't provide exactly one buffer segment, or it raises ValueError if offset is less than zero. base が読み出し専用バッファに必要なバッファプロトコルをサポートしていない場合や、厳密に一つのバッファセグメントを提供していない場合にはTypeError を送出し、offset がゼロ以下の場合にはValueError を送出します。 - Python
Note:In order to stop comparison from falling back to the defaultscheme of comparing object addresses, datetime comparisonnormally raises TypeError if the other comparandisn't also a datetime object.
注意:型混合の比較がデフォルトのオブジェクトアドレス比較となってしまうのを抑止するために、被演算子のもう一方が datatime オブジェクトと異なる型のオブジェクトの場合には TypeError が送出されます。 - Python
In this case,self must be an instance of the unbound method's class (or a subclass of that class), otherwise a TypeError is raised.Like function objects, methods objects support gettingarbitrary attributes. この場合、self は非バインドメソッドのクラス(サブクラス) のインスタンスでなければならず、そうでなければTypeError が送出されます。 関数オブジェクトと同じく、メソッドオブジェクトは任意の属性を取得できます。 - Python
Code which previously causedTypeError to be raised here may now proceed without an exception. このため、以前は TypeError を引き起こしていたようなコードが現在は例外を出さずに処理されるかもしれません。 - Python
If one is aware and the other is naive, TypeError is raised.If both are naive, or both are aware and have the same tzinfo member, the tzinfo members are ignored, and the result is a timedelta object t such that 両方とも naive か、両方とも aware で同じ tzinfo メンバを持つ場合、tzinfo メンバは無視され、結果は - Python
Copyright 2001-2004 Python Software Foundation.All rights reserved. Copyright 2000 BeOpen.com.All rights reserved. Copyright 1995-2000 Corporation for National Research Initiatives.All rights reserved. Copyright 1991-1995 Stichting Mathematisch Centrum.All rights reserved.