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.
The key/datum pairs are evaluated from left to right to define the entries of the dictionary: each key object is used as a key into the dictionary to store the corresponding datum.Restrictions on the types of the key values are listed earlier insection 3.2. (To summarize, the key type should be hash able, which excludes all mutable objects.)
However, aliasing has an(intended! effect on the semantics of Python code involving mutable objects such as lists, dictionaries, and most types representing entities outside the program (files, windows, etc.).
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.
This is an imperative feature of OCaml, because functional languages don't normally allow mutable objects (or references or mutable arrays, which we'll look at in a moment).
However, aliasing has a possibly surprising effect on the semantics of Python code involving mutable objects such as lists, dictionaries, and most other types.
See also Examples of unsafe data sources for Java security vulnerability (SV) checkers. Mitigation and preventionThis vulnerability can be mitigated by preventing public methods from returning references to mutable objects.
Java セキュリティ脆弱性 (SV) チェッカーの安全でないデータソースの例も参照してください。
See also Examples of unsafe data sources for Java security vulnerability (SV) checkers. Mitigation and preventionDo not use mutable objects to store sensitive data.
Java セキュリティ脆弱性 (SV) チェッカーの安全でないデータソースの例も参照してください。
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Nici un rezultat pentru acest sens.
Sinonime și analogii pentru "mutable objects" în limba Română