您要查找的是不是:
- If the key was a mutable object, its value could be changed. 如果键是可变对象,它的值可改变。
- Don't share references to the mutable objects. 不要共享对可变对象的引用。
- A thread can change the state of the mutable object after the test but before the Doer executes. 线程可以在测试之后且Doer执行之前更改可变对象的状态。
- This makes a difference when the default is a mutable object such as a list, dictionary, or instances of most classes. 当默认值是一个可变对象,诸如链表、字典或大部分类实例时,会产生一些差异。
- If the member is security-sensitive, make a private copy of the mutable object and use the copy for validation and processing. 如果成员是安全敏感的,则制作可变对象的私有副本并使用该副本进行验证和处理。
- However, with mutable objects, this is simply an act of faith. 但是,使用可变对象时,完全会是这样的。
- Don't provide methods that modify the mutable objects. 不要提供修改这些对象的方法。
- Note that you must address potential race conditions if you use this pattern in a multithreaded application where the test involves a mutable object. 注意,当在测试涉及可变对象的多线程应用程序中使用该模式时,必须解决可能出现的争用状态问题。
- Cases where an aliased mutable object gets unexpectedly modified can crop up in a number of subtle and surprising ways, and debugging them can be extremely difficult. 有别名的可变对象被意外修改的情况会以许多微妙且令人惊奇的方式突然出现,并且调试起来相当困难。
- 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. 当目标是一个可变对象的一部分(属性引用,下标,片断)的时候,该可变对象必须最终执行该赋值,决定其有效性,并且如果该赋值不可接受可能会抛出一个例外。
- It is also possible to create tuples which contain mutable objects, such as lists. 也可以通过包含可变对象来创建元组,例如链表。
- Similarly, create copies of your internal mutable objects when necessary to avoid returning the originals in your methods. 类似的,如果有必要避免在你的方法内部返回原始对象,可以为你的内部可变对象创建拷贝。
- If you use such a mutable object as a 如果使用这种可变对象作为
- Some mutable objects will change their 有些可变对象根据其状态会更改它们的
- He always travels first class expense is no object. 他出门总是用头等票--费用不成问题。
- He was too shortsighted to focus on the object. 他由于近视过深而无法把视力焦点对准在该物体上。
- I object to our privacy being invaded. 我反对我们的隐私权受到侵害。
- Many people object to experimentation on animals. 许多人反对用动物做实验。
- I object to your (unpleasant) insinuations! 我讨厌你那些(令人不快的)拐弯抹角的话!
- A cube is a three-dimensional object. 立方体是三维物体。