Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
5c6a5ecd
Commit
5c6a5ecd
authored
May 20, 2006
by
George Yoshida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Add 'as' and 'with' as new keywords in 2.5.
- Regenerate keyword lists with reswords.py.
parent
6fffa5e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
Doc/ref/ref2.tex
Doc/ref/ref2.tex
+13
-9
No files found.
Doc/ref/ref2.tex
View file @
5c6a5ecd
...
...
@@ -308,23 +308,27 @@ identifiers. They must be spelled exactly as written here:%
\index
{
reserved word
}
\begin{verbatim}
and del for is raise
assert elif from lambda return
break else global not try
class except if or while
continue exec import pass yield
def finally in print
and del from not while
as elif global or with
assert else if pass yield
break except import print
class exec in raise
continue finally is return
def for lambda try
\end{verbatim}
% When adding keywords, use reswords.py for reformatting
Note that although the identifier
\code
{
as
}
can be used as part of the
syntax of
\keyword
{
import
}
statements, it is not currently a reserved
word
.
word
by default.
}
In some future version of Python, the identifiers
\code
{
as
}
and
\code
{
None
}
will both become keywords.
\versionchanged
[Both
\keyword
{
as
}
and
\keyword
{
with
}
are only recognized
when the
\code
{
with
_
statement
}
feature has been enabled. It will always
be enabled in Python 2.6. See section~
\ref
{
with
}
for details]
{
2.5
}
In some future version of Python, the identifier
\code
{
None
}
will
become a keyword.
\subsection
{
Reserved classes of identifiers
\label
{
id-classes
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment