Core Python Programming (2nd Edition)

Table B.1 lists Python's keywords.

Table B.1. Python Keywords[a]

and

as[b]

assert[c]

break

class

continue

def

del

elif

else

except

exec

finally

for

from

global

if

import

in

is

lambda

not

or

pass

print

raise

return

TRy

while

with[b]

yield[d]

None[e]

[a] access keyword obsoleted in Python 1.4.

[b] New in Python 2.6.

[c] New in Python 1.5.

[d] New in Python 2.3.

[e] Not a keyword but made a constant in Python 2.4.

Категории