Index

Symbols

%r, for printable strings, 203

%s, for human-readable strings, 202

* operator, liability of, 4445

* symbol, for keyword-only arguments, 5253

*args

optional keyword arguments and, 48

variable positional arguments and, 4345

**kwargs, for keyword-only arguments, 5354

A

__all__ special attribute

avoiding, 183

listing all public names, 181183

ALL_CAPS format, 3

Allocation of memory, tracemalloc module and, 214216

APIs (application programming interfaces)

future-proofing, 186187

internal, allowing subclass access to, 8082

packages providing stable, 181184

root exceptions and, 184186

using functions for, 6164

append method, 3637

Arguments

defensively iterating over, 3842

keyword, 4548

keyword-only, 5154

optional positional, ...

Get Effective Python: 59 Specific Ways to Write Better Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.