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
68cfbe7c
Commit
68cfbe7c
authored
Feb 24, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documented xrange; crossreffed lambda a bit more
parent
9f65ae00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+12
-0
Doc/libfuncs.tex
Doc/libfuncs.tex
+12
-0
No files found.
Doc/lib/libfuncs.tex
View file @
68cfbe7c
...
...
@@ -354,3 +354,15 @@ its goal is to return a printable string.
>>> if type(x) == type(''): print 'It is a string'
\end{verbatim}
\ecode
\end{funcdesc}
\begin{funcdesc}
{
xrange
}{
start
\,
end
\,
step
}
This function is very similar to
\code
{
range()
}
, but returns an
``xrange object'' instead of a list. This is an opaque sequence type
which yields the same values as the corresponding list, without
actually storing them all simultaneously. The advantage of
\code
{
xrange()
}
over
\code
{
range()
}
is minimal (since
\code
{
xrange()
}
still has to create the values when asked for them) except when a very
large range is used on a memory-starved machine (e.g. DOS) or when all
of the range's elements are never used (e.g. when the loop is usually
terminated with
\code
{
break
}
).
\end{funcdesc}
Doc/libfuncs.tex
View file @
68cfbe7c
...
...
@@ -354,3 +354,15 @@ its goal is to return a printable string.
>>> if type(x) == type(''): print 'It is a string'
\end{verbatim}
\ecode
\end{funcdesc}
\begin{funcdesc}
{
xrange
}{
start
\,
end
\,
step
}
This function is very similar to
\code
{
range()
}
, but returns an
``xrange object'' instead of a list. This is an opaque sequence type
which yields the same values as the corresponding list, without
actually storing them all simultaneously. The advantage of
\code
{
xrange()
}
over
\code
{
range()
}
is minimal (since
\code
{
xrange()
}
still has to create the values when asked for them) except when a very
large range is used on a memory-starved machine (e.g. DOS) or when all
of the range's elements are never used (e.g. when the loop is usually
terminated with
\code
{
break
}
).
\end{funcdesc}
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