mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
parent
e180307c10
commit
ff294fea40
4 changed files with 4 additions and 3 deletions
|
@ -191,7 +191,7 @@ Example:
|
||||||
7 49
|
7 49
|
||||||
8 64
|
8 64
|
||||||
9 81
|
9 81
|
||||||
>>> 8 in db
|
>>> '8' in db
|
||||||
True
|
True
|
||||||
>>> db.sync()
|
>>> db.sync()
|
||||||
0
|
0
|
||||||
|
|
|
@ -362,7 +362,7 @@ Leave cbreak mode. Return to normal ``cooked'' mode with line buffering.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{noecho}{}
|
\begin{funcdesc}{noecho}{}
|
||||||
Leave echo mode. Echoing of input characters is turned off,
|
Leave echo mode. Echoing of input characters is turned off.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{nonl}{}
|
\begin{funcdesc}{nonl}{}
|
||||||
|
|
|
@ -87,7 +87,7 @@ The module defines the following functions:
|
||||||
An example:
|
An example:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
>>> import array, fnctl, struct, termios, os
|
>>> import array, fcntl, struct, termios, os
|
||||||
>>> os.getpgrp()
|
>>> os.getpgrp()
|
||||||
13341
|
13341
|
||||||
>>> struct.unpack('h', fcntl.ioctl(0, termios.TIOCGPGRP, " "))[0]
|
>>> struct.unpack('h', fcntl.ioctl(0, termios.TIOCGPGRP, " "))[0]
|
||||||
|
|
|
@ -76,6 +76,7 @@ by functions or loops that truncate the stream.
|
||||||
|
|
||||||
\begin{funcdesc}{count}{\optional{n}}
|
\begin{funcdesc}{count}{\optional{n}}
|
||||||
Make an iterator that returns consecutive integers starting with \var{n}.
|
Make an iterator that returns consecutive integers starting with \var{n}.
|
||||||
|
If not specified \var{n} defaults to zero.
|
||||||
Does not currently support python long integers. Often used as an
|
Does not currently support python long integers. Often used as an
|
||||||
argument to \function{imap()} to generate consecutive data points.
|
argument to \function{imap()} to generate consecutive data points.
|
||||||
Also, used with \function{izip()} to add sequence numbers. Equivalent to:
|
Also, used with \function{izip()} to add sequence numbers. Equivalent to:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue