
144
|
Index
O
object namespaces, 54
object persistence
modules, 116–119
object( ), 74
oct( ), 74
octdigits string module
constant, 92
OOP (Object-Oriented
Programming), 56–58
open( ), 74, 99
operating system, services
interface (see os module)
operations, 7–11
Boolean, 7
comparison, 7
indexing, 10
mapping, 9
numeric, 9
sequence, 8–11
operator overloading
methods, 59–67
operators, 6–8
precedence of, 6
options, command-line, 2–5
ord( ), 75
os module, 93–109
administrative tools, 93
environment tools, 97
file descriptor tools, 98–100
file pathname tools, 100–103
portability constants, 94
process control, 103–106
shell commands, 95
os.path module, 107–109
OSError exception, 80
output files, 30
OverflowError exception, 81
overloading methods, 59
(see also methods)
P
package imports, 48
paramstyle, 131
pardir, 94
pass statement, 42
path, 88
path (os module), 94
pathsep, 95
pattern object, 112
PendingDeprecationWarning
exception, 82
pickle interface, 118
pipe( ), 100, 105
platform, 88
plock( ), 105
popen( ) shell command, 96
popen2( ) shell command, 96
popen3( ) shell command, 96
popen4( ) shell command, 97
poplib, 125
portability constants (os
module), 94
pow( ), 75
precedence of operators, 6
prefix, 88
print statement, 40
printable string module
constant, 93
process control, 103–106
programming rules, 35
property( ), 75
ps1, 89
ps2, 89
pseudo-private attributes, 58
punctuation string module
constant, 93
putenv( ), 97
Python, 1
general rules, 35