「isinstance」を含む例文一覧(4)

  • If the second argument is an object, isinstance(obj, type) must be true.
    二つめの引数がオブジェクトの場合、isinstance(obj, type) は真でなくてはなりません。 - Python
  • For example:isinstance(s, types.StringTypes).New in version 2.2.
    例:isinstance(s, types.StringTypes).バージョン 2.2 で 新たに追加 された仕様です。 - Python
  • If it is a byte string (i.e. isinstance(s, str) is true), then charset is the encoding of that byte string, and a UnicodeError will be raised if the string cannot be decoded with that character set.If s is a Unicode string, then charset is a hintspecifying the character set of the characters in the string.
    こればバイト文字列 (isinstance(s, str) が真) の場合、charset はその文字列のエンコーディングであり、これが与えられた文字セットでうまくデコードできないときはUnicodeError が発生します。 いっぽう s が Unicode 文字列の場合、charset はその文字列の文字セットを決定するためのヒントとして使われます。 - Python
  • BothSet and ImmutableSet derive from BaseSet, an abstract class useful for determining whether something is a set:isinstance(obj, BaseSet).The set classes are implemented using dictionaries.
    SetとImmutableSetは、何が集合(isinstance(obj, BaseSet))であるか決めるのに役立つ抽象クラスBaseSetから派生します。 集合クラスは辞書を使用して実装されます。 - Python

例文データの著作権について