split(): the separator defines the list
Empty parts can also be significant results.
Software, devices and technical concepts, explained clearly.
Empty parts can also be significant results.
With sqlite3, parameters separate SQL text from input values. For example, execute('SELECT name FROM items WHERE id = ?', (item_id,)) supplies the identifier separately.
Subresource Integrity compares the downloaded resource to a predefined cryptographic hash. When updating the file, the expected value must also be updated.
The method is sensitive to upper and lower case letters.
statistics.mean([1, 2, 100]) gives the arithmetic mean, while statistics.median([1, 2, 100]) gives 2. A large observation affects the two measures differently.
string.Template uses placeholders such as $name for text substitution. substitute() expects the required values; safe_substitute() can leave unresolved placeholders in the result.
io.StringIO handles text, while io.BytesIO handles bytes. They help when a library expects a file-like object but the data is already in memory.
struct.pack('>H', 258) produces the two bytes b'\x01\x02'. The > prefix selects big-endian order, while H describes an unsigned short integer in that format.
structuredClone() can create a deep copy of supported values. This is different from copying only the external object.
A Git submodule connects a separate repository at a particular commit to the parent project. It does not automatically follow every latest change on an external branch.
subprocess.run() is the recommended high-level interface for starting a process. An argument list with the usual shell=False avoids constructing shell syntax around every value.
Interchanged boundaries have a specific behavior.