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
eef2cd14
Commit
eef2cd14
authored
26 years ago
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the description of os.error to reflect the fact that it is now
equivalent to exceptions.OSError.
parent
27467e4b
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
Doc/lib/libposix.tex
Doc/lib/libposix.tex
+11
-6
No files found.
Doc/lib/libposix.tex
View file @
eef2cd14
...
@@ -25,9 +25,11 @@ The descriptions below are very terse; refer to the corresponding
...
@@ -25,9 +25,11 @@ The descriptions below are very terse; refer to the corresponding
\UNIX
{}
manual (or
\POSIX
{}
documentation) entry for more information.
\UNIX
{}
manual (or
\POSIX
{}
documentation) entry for more information.
Arguments called
\var
{
path
}
refer to a pathname given as a string.
Arguments called
\var
{
path
}
refer to a pathname given as a string.
Errors are reported as exceptions; the usual exceptions are given
Errors are reported as exceptions; the usual exceptions are given for
for type errors, while errors reported by the system calls raise
type errors, while errors reported by the system calls raise
\exception
{
error
}
, described below.
\exception
{
error
}
(a synonym for the standard exception
\exception
{
OSError
}
), described
below.
Module
\module
{
posix
}
defines the following data items:
Module
\module
{
posix
}
defines the following data items:
...
@@ -66,11 +68,14 @@ error codes defined by the underlying operating system.
...
@@ -66,11 +68,14 @@ error codes defined by the underlying operating system.
When exceptions are classes, this exception carries two attributes,
When exceptions are classes, this exception carries two attributes,
\member
{
errno
}
and
\member
{
strerror
}
. The first holds the value of
\member
{
errno
}
and
\member
{
strerror
}
. The first holds the value of
the
\C
{}
\cdata
{
errno
}
variable, and the latter holds the
the
\C
{}
\cdata
{
errno
}
variable, and the latter holds the
corresponding error message from
\cfunction
{
strerror()
}
.
corresponding error message from
\cfunction
{
strerror()
}
. For
exceptions that involve a file system path (e.g.
\code
{
chdir
}
or
\code
{
unlink
}
), the exception instance will contain a third attribute
\member
{
filename
}
which is the file name passed to the
function.
When exceptions are strings, the string for the exception is
When exceptions are strings, the string for the exception is
\code
{
'os.error'
}
; this reflects the more portable access to the
\code
{
'OSError'
}
.
exception through the
\module
{
os
}
module.
\end{excdesc}
\end{excdesc}
It defines the following functions and constants:
It defines the following functions and constants:
...
...
This diff is collapsed.
Click to expand it.
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