Index
Symbols
- !# (shebang) character, Running Python Programs
- != (inequality) comparisons, Comparisons
- " (double quotes), Strings
- """" (triple quotes), Strings
- # (hash sign), Lines and Indentation
- % (percent) character, Expressions and Operators, Division
- % formatting (see format with %)
- %r (for logging errors), When to use %r
- %s (in SQL), Parameter Style
- ' (single quotes), Strings
- () (parentheses)
- function calls, The def Statement, Calling Functions
- generator expressions, Generator expressions
- import, The from Statement
- list comprehension, List comprehensions
- operator precedence, Expressions and Operators
- regular expressions, Pattern-String Syntax, Alternatives
- ternary operator, The ternary operator
- tuples, Tuples
- , (commas)
- in decimal, Comma separation
- in lists, Lists
- in print, Choosing Your Support Strategy
- in tuples, Tuples
- - (hyphens), Command-Line Syntax and Options
- -c command, Command-Line Syntax and Options
- -m module, Command-Line Syntax and Options
- -O (optimize) command, Command-Line Syntax and Options-Command-Line Syntax and Options, Running Python Programs, The assert Statement, Small-Scale Optimization
- -OO (optimize command), Command-Line Syntax and Options-Command-Line Syntax and Options, Small-Scale Optimization
- -Wdefault flag, asyncio developing and debugging
- -Werror flag, Preparing for Python 3
- ... (prompt string), Interactive Sessions
- .jar files, Jython
- .NET, IronPython
- .py extension, Command-Line Syntax and Options, Running Python Programs, Searching the Filesystem for a Module, The sys Module ...
Get Python in a Nutshell, 3rd Edition 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.