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
8321026f
Commit
8321026f
authored
Jan 10, 2001
by
Eric S. Raymond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SourceForge patch #103140, checked in at fdrake's invitation. Minor fixes and
additions to library docs.#
parent
62c11155
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
9 deletions
+22
-9
Doc/lib/libascii.tex
Doc/lib/libascii.tex
+3
-1
Doc/lib/libcookie.tex
Doc/lib/libcookie.tex
+1
-1
Doc/lib/libsocket.tex
Doc/lib/libsocket.tex
+6
-6
Doc/lib/libstat.tex
Doc/lib/libstat.tex
+12
-1
No files found.
Doc/lib/libascii.tex
View file @
8321026f
...
...
@@ -53,7 +53,9 @@ control characters as follows:
\lineii
{
DEL
}{
Delete
}
\end{tableii}
Note that many of these have little practical use in modern usage.
Note that many of these have little practical significance in modern
usage. The mnemonics derive from teleprinter conventions that predate
digital computers.
The module supplies the following functions, patterned on those in the
standard C library:
...
...
Doc/lib/libcookie.tex
View file @
8321026f
...
...
@@ -8,7 +8,7 @@
The
\module
{
Cookie
}
module defines classes for abstracting the concept of
cookies, an HTTP state management mechanism. It supports both simpl
istic
cookies, an HTTP state management mechanism. It supports both simpl
e
string-only cookies, and provides an abstraction for having any serializable
data-type as cookie value.
...
...
Doc/lib/libsocket.tex
View file @
8321026f
...
...
@@ -267,8 +267,8 @@ Bind the socket to \var{address}. The socket must not already be bound.
(The format of
\var
{
address
}
depends on the address family --- see
above.)
\strong
{
Note:
}
This method has historically accepted a pair
of parameters for
\constant
{
AF
_
INET
}
addresses instead of only a
tuple. This was never intentional and
will
no longer be available in
Python
1.7
.
tuple. This was never intentional and
is
no longer be available in
Python
2.0
.
\end{methoddesc}
\begin{methoddesc}
[socket]
{
close
}{}
...
...
@@ -282,8 +282,8 @@ Connect to a remote socket at \var{address}.
(The format of
\var
{
address
}
depends on the address family --- see
above.)
\strong
{
Note:
}
This method has historically accepted a pair
of parameters for
\constant
{
AF
_
INET
}
addresses instead of only a
tuple. This was never intentional and
will no longer be
available in
Python
1.7
.
tuple. This was never intentional and
is no longer
available in
Python
2.0 and later
.
\end{methoddesc}
\begin{methoddesc}
[socket]
{
connect
_
ex
}{
address
}
...
...
@@ -295,8 +295,8 @@ operation succeeded, otherwise the value of the \cdata{errno}
variable. This is useful, e.g., for asynchronous connects.
\strong
{
Note:
}
This method has historically accepted a pair of
parameters for
\constant
{
AF
_
INET
}
addresses instead of only a tuple.
This was never intentional and
will
no longer be available in Python
1.7
.
This was never intentional and
is
no longer be available in Python
2.0 and later
.
\end{methoddesc}
\begin{methoddesc}
[socket]
{
fileno
}{}
...
...
Doc/lib/libstat.tex
View file @
8321026f
...
...
@@ -97,7 +97,8 @@ Group id of the owner.
\end{datadesc}
\begin{datadesc}
{
ST
_
SIZE
}
File size in bytes.
Size in bytes of a plain file; amount of data waiting on some special
files.
\end{datadesc}
\begin{datadesc}
{
ST
_
ATIME
}
...
...
@@ -112,6 +113,16 @@ Time of last modification.
Time of last status change (see manual pages for details).
\end{datadesc}
The interpretation of ``file size'' changes according to the file
type. For plain files this is the size of the file in bytes. For
FIFOs and sockets under most Unixes (including Linux in particular),
the ``size'' is the number of bytes waiting to be read at the time of
the stat(2)/fstat(2)/lstat(2) call; this can sometimes be useful,
especially for polling one of these special files after a non-blocking
open. The meaning of the size field for other character and block
devices varies more, depending on the local implementation of the
underlying system call.
Example:
\begin{verbatim}
...
...
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