R

r file processing mode, Files, Files
__radd__ method, Common Operator Overloading Methods, Right-Side and In-Place Uses: __radd__ and __iadd__In-Place Addition
raise statement, Python’s Statements, Using Keyword-Only Arguments, User-Defined Iterables, Exception Basics, Raising Exceptions, User-Defined Exceptions, The raise Statement, The raise Statement, Raising Exceptions, Propagating Exceptions with raise, Python 3.X Exception Chaining: raise fromPython 3.X Exception Chaining: raise from, Python 3.X Exception Chaining: raise fromPython 3.X Exception Chaining: raise from, Coding Exceptions Classes, Functions Can Signal Conditions with raise
about, Python’s Statements, Exception Basics, The raise Statement
built-in exceptions and, User-Defined Exceptions
chaining exceptions, Python 3.X Exception Chaining: raise fromPython 3.X Exception Chaining: raise from
from clause, Python 3.X Exception Chaining: raise fromPython 3.X Exception Chaining: raise from
propagating exceptions, Propagating Exceptions with raise
raising exceptions, Using Keyword-Only Arguments, User-Defined Iterables, Raising Exceptions, Raising Exceptions
raising instances, Coding Exceptions Classes
signaling conditions with, Functions Can Signal Conditions with raise
version considerations, The raise Statement
random module, Numbers, Other Built-in Numeric Tools, On the other hand: Space and time, conciseness, expressiveness
about, Numbers, Other Built-in Numeric Tools
generator example, On the other hand: Space and time, conciseness, expressiveness
range built-in function, Comprehensions, List Iteration and Comprehensions, Advanced sequence assignment patterns, Loop Coding TechniquesChanging Lists: range Versus Comprehensions, Counter Loops: range, Sequence Scans: while and range Versus for, Sequence Shufflers: range and len, Nonexhaustive Traversals: range Versus Slices, Changing Lists: range Versus Comprehensions, Other Iteration Contexts, New Iterables in Python 3.X, The range Iterable, Testing subtleties
counter loops, Counter Loops: range
iteration and, Other Iteration Contexts, New Iterables in Python 3.X, The range Iterable
list comprehensions and, Comprehensions, List Iteration and Comprehensions, Changing Lists: range Versus Comprehensions
loop coding techniques and, Advanced sequence assignment patterns, Loop Coding TechniquesChanging Lists: range Versus Comprehensions
nonexhaustive traversals, Nonexhaustive Traversals: range Versus Slices
sequence scans, Sequence Scans: while and range Versus for
sequence shufflers, Sequence Shufflers: range and len
timing calls example, Testing subtleties
rapid development cycle, Is Python a “Scripting Language”?, Development implications
rational numbers, Numbers, Other Core Types
raw_input built-in function, The input Trick on Windows, The input Trick on Windows, A Simple Interactive Loop
re module, Python’s Core Data Types, Pattern Matching, String Basics, Other Common String Methods in Action, The re Pattern-Matching Module, XML Parsing Tools, XML Parsing Tools, XML Parsing Tools
about, Python’s Core Data Types
findall function, XML Parsing Tools
match function, String Basics, XML Parsing Tools
pattern matching and, Pattern Matching, Other Common String Methods in Action, The re Pattern-Matching Module
search function, XML Parsing Tools
read-only descriptors, Read-only descriptors
recursive comparisons, Comparisons, Equality, and Truth
recursive functions, Scope Details, Recursive Functions, Summation with Recursion, Coding Alternatives, Loop Statements Versus Recursion, Handling Arbitrary StructuresMore recursion examples, More recursion examples, A Recursive ReloaderTesting recursive reloads, Recursive from Imports May Not Work, Namespace Links: A Tree Climber, Listing attributes per object in class trees
about, Scope Details, Recursive Functions, Namespace Links: A Tree Climber
coding alternatives, Coding Alternatives
from statement and, Recursive from Imports May Not Work
generators and, Listing attributes per object in class trees
handling arbitrary structures, Handling Arbitrary StructuresMore recursion examples
loops versus, Loop Statements Versus Recursion
reloaders, A Recursive ReloaderTesting recursive reloads
summation with, Summation with Recursion
usage examples, More recursion examples
reduce built-in function, Other Iteration Contexts, Combining Items in Iterables: reduce
reference counters, Variables, Objects, and References, Objects Are Garbage-Collected
references, Variables, Objects, and References, Variables, Objects, and References, Variables, Objects, and References, Objects Are Garbage-Collected, Objects Are Garbage-Collected, Shared ReferencesShared References and Equality, Shared References, Dynamic Typing Is Everywhere, Flexible reference syntax: Extra complexity and functional overlap, References Versus CopiesReferences Versus Copies, Assignment Creates References, Not Copies, Assignment Statements, Nested Scope Details, Attribute Reference
(see also shared references)
about, Variables, Objects, and References, Variables, Objects, and References, Nested Scope Details
assignments and, Assignment Statements
attribute, Attribute Reference
circular, Objects Are Garbage-Collected
copies versus, References Versus CopiesReferences Versus Copies, Assignment Creates References, Not Copies
cyclic, Objects Are Garbage-Collected
dynamic typing and, Variables, Objects, and References, Shared ReferencesShared References and Equality
string method calls, Flexible reference syntax: Extra complexity and functional overlap
weak, Dynamic Typing Is Everywhere
relative imports model, Module Packages, Package Relative ImportsRelative Import Basics, Why Relative Imports?Relative imports versus absolute package paths, The relative imports solution in 3.X, Relative imports versus absolute package paths, The Scope of Relative Imports, Module Lookup Rules Summary, Relative Imports in ActionImports are still relative to the CWD, again, Pitfalls of Package-Relative Imports: Mixed UseExample: Application to module self-test code (preview)
about, Module Packages, Package Relative ImportsRelative Import Basics
absolute imports versus, Relative imports versus absolute package paths
lookup rules summary, Module Lookup Rules Summary
pitfalls of, Pitfalls of Package-Relative Imports: Mixed UseExample: Application to module self-test code (preview)
scope of, The Scope of Relative Imports
usage considerations, Why Relative Imports?Relative imports versus absolute package paths
usage examples, Relative Imports in ActionImports are still relative to the CWD, again
version considerations, The relative imports solution in 3.X
reload built-in function, Import and Reload BasicsThe Grander Module Story: Attributes, Usage Notes: import and reload, Usage Notes: IDLE, Reloading Modulesreload Example, Example: Transitive Module ReloadsTesting reload variants, reload May Not Impact from Importsreload, from, and Interactive Testing
about, Import and Reload BasicsThe Grander Module Story: Attributes, Reloading Modulesreload Example
common usage mistakes, Usage Notes: import and reload, Usage Notes: IDLE
from statement and, reload May Not Impact from Importsreload, from, and Interactive Testing
usage examples, Example: Transitive Module ReloadsTesting reload variants
repetition, The Python Conceptual Hierarchy, Sequence Operations, Basic Operations, Basic List Operations, Tuples, Repetition Adds One Level Deep
as programming pillar, The Python Conceptual Hierarchy
in strings, Sequence Operations, Basic Operations, Basic List Operations
in tuples, Tuples
usage considerations, Repetition Adds One Level Deep
repr built-in function, Python Expression Operators, Numeric Display Formats, String Conversion Tools, Advanced Formatting Method Syntax
about, String Conversion Tools
display formats, Numeric Display Formats
string formatting method calls and, Advanced Formatting Method Syntax
version considerations, Python Expression Operators
__repr__ method, More recursion examples, Providing Print DisplaysProviding Print Displays, A Generic Display Tool, Common Operator Overloading Methods, String Representation: __repr__ and __str__Display Usage Notes, Listing inherited attributes with dir, Custom Print Displays
about, Common Operator Overloading Methods, String Representation: __repr__ and __str__Display Usage Notes
custom print displays, Custom Print Displays
inheritance and, A Generic Display Tool, Listing inherited attributes with dir
print display example, Providing Print DisplaysProviding Print Displays
recursive looping and, More recursion examples
reserved words, Variable Name Rules
reStructuredText markup language, Beyond docstrings: Sphinx
return statement, Python’s Statements, Coding Functions, def Statements, Simulating Output Parameters and Multiple Results, Generator Functions: yield Versus returnExtended generator function protocol: send versus next, Functions Without returns
about, Python’s Statements, def Statements
coding functions, Coding Functions
function gotchas, Functions Without returns
returning multiple values, Simulating Output Parameters and Multiple Results
yield statement versus, Generator Functions: yield Versus returnExtended generator function protocol: send versus next
reversed built-in function, Other common list methods, Nested for loops
RIAs (rich Internet applications), Internet Scripting
rich Internet applications (RIAs), Internet Scripting
__rmod__ method, Method Calls
round built-in function, Floor versus truncation, Other Built-in Numeric Tools
running programs, How Python Runs Programs (see program execution)