小窓モード


プレミアム

ログイン
設定

設定

Weblio 辞書 > 英和辞典・和英辞典 > 英和専門語辞典 > mutable objectの意味・解説 

mutable objectとは 意味・読み方・使い方

ピン留め

追加できません

(登録数上限)

単語を追加

意味・対訳 可変対象物


クロスランゲージ 37分野専門語辞書での「mutable object」の意味

mutable object


「mutable object」の部分一致の例文検索結果

該当件数 : 11



例文

It should yield a mutable sequence object (e.g., a list).発音を聞く 例文帳に追加

まず、値は変更可能なシーケンスオブジェクト (例えばリスト)でなければなりません。 - Python

It should yield either a mutable sequence object (e.g., a list) or a mapping object (e.g., a dictionary).例文帳に追加

まず、値は変更可能なシーケンスオブジェクト (例えばリスト)か、マップオブジェクト (例えば辞書) でなければなりません。 - Python

So, if an immutable container (like a tuple)contains a reference to a mutable object, its value changes if that mutable object is changed.Types affect almost all aspects of object behavior.例文帳に追加

したがって、(タプルのように) 変更不能なオブジェクトが変更可能なオブジェクトへの参照を含む場合、その値が変化するのは変更可能なオブジェクトが変更された時、ということになります。 型はオブジェクトの動作のほとんど全てに影響します。 - Python

If the primary is a mutable sequence object (e.g., a list), the subscriptmust yield a plain integer.発音を聞く 例文帳に追加

一次語が変更可能なシーケンスオブジェクト (例えばリスト) の場合、まず添字は整数でなければなりません。 - Python

When a target is part of a mutable object (an attribute reference, subscription or slicing), the mutable object must ultimately perform the assignment and decide about its validity, and may raise an exception if the assignment is unacceptable.例文帳に追加

ターゲットが変更可能なオブジェクト (属性参照、添字表記、またはスライス)の一部である場合、この変更可能なオブジェクトは最終的に代入を実行して、その代入が有効な操作であるか判断しなければなりません。 代入が不可能な場合には例外を発行することもできます。 - Python

Objects whose value can change are said to be mutable; objects whose value is unchangeable once they are created are called immutable.(The value of an immutable container object that contains a reference to a mutable object can change when the latter's value is changed;however the container is still considered immutable, because the collection of objects it contains cannot be changed.例文帳に追加

値を変えることができるオブジェクトは 変更可能 (mutable) であるといいます; 値を一度設定すると、その後は変えることができないオブジェクトは変更不能 (immutable) であると呼びます。 (変更不能なコンテナオブジェクトが変更可能なオブジェクトへの参照を含んでいる場合、その値は後者のオブジェクトの変更によって変わる場合があります; その場合でも、コンテナの含んでいるオブジェクトの集まりは変わらないため、コンテナは変更不能と考えます。 - Python

例文

Even the importance of object identity is affected in some sense: for immutable types,operations that compute new values may actually return a reference to any existing object with the same type and value, while for mutable objects this is not allowed.例文帳に追加

オブジェクトのアイデンティティが重要かどうかでさえ、ある意味では型に左右されます:変更不能な型では、新たな値を計算するような操作を行うと、実際には同じ型と値を持った既存のオブジェクトへの参照を返すことがありますが、変更可能なオブジェクトではそのような動作は起こりえません。 - Python

>>例文の一覧を見る


調べた例文を記録して、 効率よく覚えましょう
Weblio会員登録無料で登録できます!
  • 履歴機能
    履歴機能
    過去に調べた
    単語を確認!
  • 語彙力診断
    語彙力診断
    診断回数が
    増える!
  • マイ単語帳
    マイ単語帳
    便利な
    学習機能付き!
  • マイ例文帳
    マイ例文帳
    文章で
    単語を理解!
  • その他にも便利な機能が満載!
Weblio会員登録(無料)はこちらから

「mutable object」の部分一致の例文検索結果

該当件数 : 11



例文

If the object contains references to other objects,these other objects may be mutable and may be changed; however,the collection of objects directly referenced by an immutable object cannot change.例文帳に追加

オブジェクトに他のオブジェクトへの参照が入っている場合、参照されているオブジェクトは変更可能なオブジェクトでもよく、その値は変更される可能性があります;しかし、変更不能なオブジェクトが直接参照しているオブジェクトの集合自体は、変更することができません。 - Python

This is especially important to understand when a default parameter is a mutable object,such as a list or a dictionary: if the function modifies the object(e.g. by appending an item to a list), the default value is in effectmodified.例文帳に追加

デフォルトパラメタ値がリストや辞書のような変更可能なオブジェクトである場合、この使用を理解しておくことは特に重要です: 関数でこのオブジェクトを (例えばリストに要素を追加して) 変更する と、実際のデフォルト値が変更されてしまいます。 - Python

(Default values are calculated, once, when the function is defined; thus, a mutable object such as a list or dictionary used as default value will be shared by all calls that don't specify an argument value for the corresponding slot; this should usually beavoided.)例文帳に追加

(デフォルト値は、関数が定義されたときに一度だけ計算されます; 従って、リストや辞書のような変更可能なオブジェクトがデフォルト値として使われると、対応するスロットに引数を指定しない限り、このオブジェクトが全ての呼び出しから共有されます; このような状況は通常避けるべきです。 - Python

例文

Bound object methods placed in the module namespace as part of the public interface of the module are documented using this, as they are equivalent to normal functions for most purposes.The description should include information about the parameters required and how they are used (especially whether mutable objects passed as parameters are modified), side effects, and possible exceptions.例文帳に追加

モジュールの公開インタフェースの一部としてモジュールの名前空間内に置かれている束縛されたオブジェクトメソッド (bound object method) は、ほとんどの用途でモジュールレベル関数と同じなので、この環境を使います。 説明には、必要なパラメタと、パラメタがどう処理されるか (とりわけ、パラメタとして渡した変更可能なオブジェクトが変更されるか否か) 、副作用、送出されうる例外についての情報を含めねばなりません。 - Python

>>例文の一覧を見る

「mutable object」の意味に関連した用語

mutable objectのページの著作権
英和・和英辞典 情報提供元は 参加元一覧 にて確認できます。

   
株式会社クロスランゲージ株式会社クロスランゲージ
Copyright © 2024 Cross Language Inc. All Right Reserved.

ピン留めアイコンをクリックすると単語とその意味を画面の右側に残しておくことができます。

こんにちは ゲスト さん

ログイン

Weblio会員(無料)になると

会員登録のメリット検索履歴を保存できる!

会員登録のメリット語彙力診断の実施回数増加!

無料会員に登録する

このモジュールを今後表示しない
みんなの検索ランキング
閲覧履歴
無料会員登録をすると、
単語の閲覧履歴を
確認できます。
無料会員に登録する
英→日 日→英
こんにちは ゲスト さん

ログイン

Weblio会員(無料)になると

会員登録のメリット検索履歴を保存できる!

会員登録のメリット語彙力診断の実施回数増加!

無料会員に登録する

©2024 GRAS Group, Inc.RSS