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
55fca54e
Commit
55fca54e
authored
Feb 18, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added \label{} for logical addressing.
Logical markup.
parent
12918af8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
120 additions
and
112 deletions
+120
-112
Doc/lib/libintro.tex
Doc/lib/libintro.tex
+3
-2
Doc/lib/libmisc.tex
Doc/lib/libmisc.tex
+2
-1
Doc/libintro.tex
Doc/libintro.tex
+3
-2
Doc/libmac.tex
Doc/libmac.tex
+55
-53
Doc/libmisc.tex
Doc/libmisc.tex
+2
-1
Doc/mac/libmac.tex
Doc/mac/libmac.tex
+55
-53
No files found.
Doc/lib/libintro.tex
View file @
55fca54e
\chapter
{
Introduction
}
\label
{
intro
}
The ``Python library'' contains several different kinds of components.
...
...
@@ -11,7 +12,7 @@ syntactic properties like the spelling and priorities of operators.)
The library also contains built-in functions and exceptions ---
objects that can be used by all Python code without the need of an
\
code
{
import
}
statement. Some of these are defined by the core
\
keyword
{
import
}
statement. Some of these are defined by the core
language, but many are not essential for the core semantics and are
only described here.
...
...
@@ -42,6 +43,6 @@ read it like a novel --- you can also browse the table of contents (in
front of the manual), or look for a specific function, module or term
in the index (in the back). And finally, if you enjoy learning about
random subjects, you choose a random page number (see module
\
cod
e
{
rand
}
) and read a section or two.
\
modul
e
{
rand
}
) and read a section or two.
Let the show begin!
Doc/lib/libmisc.tex
View file @
55fca54e
\chapter
{
Miscellaneous Services
}
\label
{
misc
}
The modules described in this chapter provide miscellaneous services
that are available in all Python versions. Here's an overview:
...
...
@@ -6,7 +7,7 @@ that are available in all Python versions. Here's an overview:
\begin{description}
\item
[math]
--- Mathematical functions (
\
code
{
sin()
}
etc.).
--- Mathematical functions (
\
function
{
sin()
}
etc.).
\item
[cmath]
--- Mathematical functions for complex numbers.
...
...
Doc/libintro.tex
View file @
55fca54e
\chapter
{
Introduction
}
\label
{
intro
}
The ``Python library'' contains several different kinds of components.
...
...
@@ -11,7 +12,7 @@ syntactic properties like the spelling and priorities of operators.)
The library also contains built-in functions and exceptions ---
objects that can be used by all Python code without the need of an
\
code
{
import
}
statement. Some of these are defined by the core
\
keyword
{
import
}
statement. Some of these are defined by the core
language, but many are not essential for the core semantics and are
only described here.
...
...
@@ -42,6 +43,6 @@ read it like a novel --- you can also browse the table of contents (in
front of the manual), or look for a specific function, module or term
in the index (in the back). And finally, if you enjoy learning about
random subjects, you choose a random page number (see module
\
cod
e
{
rand
}
) and read a section or two.
\
modul
e
{
rand
}
) and read a section or two.
Let the show begin!
Doc/libmac.tex
View file @
55fca54e
...
...
@@ -5,22 +5,22 @@ The modules in this chapter are available on the Apple Macintosh only.
Aside from the modules described here there are also interfaces to
various MacOS toolboxes, which are currently not extensively
described. The toolboxes for which modules exist are:
\
cod
e
{
AE
}
(Apple Events),
\
cod
e
{
Cm
}
(Component Manager),
\
cod
e
{
Ctl
}
(Control Manager),
\
cod
e
{
Dlg
}
(Dialog Manager),
\
cod
e
{
Evt
}
(Event Manager),
\
cod
e
{
Fm
}
(Font Manager),
\
cod
e
{
List
}
(List Manager),
\
cod
e
{
Menu
}
(Moenu Manager),
\
cod
e
{
Qd
}
(QuickDraw),
\
cod
e
{
Qt
}
(QuickTime),
\
cod
e
{
Res
}
(Resource Manager and Handles),
\
cod
e
{
Scrap
}
(Scrap Manager),
\
cod
e
{
Snd
}
(Sound Manager),
\
cod
e
{
TE
}
(TextEdit),
\
code
{
Waste
}
(non-Apple TextEdit
replacement) and
\
cod
e
{
Win
}
(Window Manager).
\
modul
e
{
AE
}
(Apple Events),
\
modul
e
{
Cm
}
(Component Manager),
\
modul
e
{
Ctl
}
(Control Manager),
\
modul
e
{
Dlg
}
(Dialog Manager),
\
modul
e
{
Evt
}
(Event Manager),
\
modul
e
{
Fm
}
(Font Manager),
\
modul
e
{
List
}
(List Manager),
\
modul
e
{
Menu
}
(Moenu Manager),
\
modul
e
{
Qd
}
(QuickDraw),
\
modul
e
{
Qt
}
(QuickTime),
\
modul
e
{
Res
}
(Resource Manager and Handles),
\
modul
e
{
Scrap
}
(Scrap Manager),
\
modul
e
{
Snd
}
(Sound Manager),
\
modul
e
{
TE
}
(TextEdit),
\
module
{
Waste
}
(non-Apple
\program
{
TextEdit
}
replacement) and
\
modul
e
{
Win
}
(Window Manager).
If applicable the module will define a number of Python objects for
the various structures declared by the toolbox, and operations will be
...
...
@@ -34,60 +34,62 @@ additional description you are referred to Inside Mac or similar
works.
\section
{
Built-in Module
\sectcode
{
mac
}}
\label
{
module-mac
}
\bimodindex
{
mac
}
This module provides a subset of the operating system dependent
functionality provided by the optional built-in module
\
cod
e
{
posix
}
.
functionality provided by the optional built-in module
\
modul
e
{
posix
}
.
It is best accessed through the more portable standard module
\
cod
e
{
os
}
.
\
modul
e
{
os
}
.
\refbimodindex
{
posix
}
\refstmodindex
{
os
}
The following functions are available in this module:
\
code
{
chdir
}
,
\
code
{
close
}
,
\
code
{
dup
}
,
\
code
{
fdopen
}
,
\
code
{
getcwd
}
,
\
code
{
lseek
}
,
\
code
{
listdir
}
,
\
code
{
mkdir
}
,
\
code
{
open
}
,
\
code
{
read
}
,
\
code
{
rename
}
,
\
code
{
rmdir
}
,
\
code
{
stat
}
,
\
code
{
sync
}
,
\
code
{
unlink
}
,
\
code
{
write
}
,
as well as the exception
\
code
{
error
}
. Note that the times returned by
\code
{
stat()
}
are floating-point values, like all time values in
MacPython.
\
function
{
chdir()
}
,
\
function
{
close()
}
,
\
function
{
dup()
}
,
\
function
{
fdopen()
}
,
\
function
{
getcwd()
}
,
\
function
{
lseek()
}
,
\
function
{
listdir()
}
,
\
function
{
mkdir()
}
,
\
function
{
open()
}
,
\
function
{
read()
}
,
\
function
{
rename()
}
,
\
function
{
rmdir()
}
,
\
function
{
stat()
}
,
\
function
{
sync()
}
,
\
function
{
unlink()
}
,
\
function
{
write()
}
,
as well as the exception
\
exception
{
error
}
. Note that the times
returned by
\function
{
stat()
}
are floating-point values, like all time
values in
MacPython.
One additional function is available:
\
code
{
xstat()
}
. This function
returns the same information as
\
code
{
stat()
}
, but with three extra
One additional function is available:
\
function
{
xstat()
}
. This function
returns the same information as
\
function
{
stat()
}
, but with three extra
values appended: the size of the resource fork of the file and its
4-char creator and type.
\section
{
Standard Module
\sectcode
{
macpath
}}
\label
{
module-macpath
}
\stmodindex
{
macpath
}
This module provides a subset of the pathname manipulation functions
available from the optional standard module
\
cod
e
{
posixpath
}
. It is
best accessed through the more portable standard module
\
cod
e
{
os
}
, as
available from the optional standard module
\
modul
e
{
posixpath
}
. It is
best accessed through the more portable standard module
\
modul
e
{
os
}
, as
\code
{
os.path
}
.
\refstmodindex
{
posixpath
}
\refstmodindex
{
os
}
The following functions are available in this module:
\
code
{
normcase
}
,
\
code
{
normpath
}
,
\
code
{
isabs
}
,
\
code
{
join
}
,
\
code
{
split
}
,
\
code
{
isdir
}
,
\
code
{
isfile
}
,
\
code
{
walk
}
,
\
code
{
exists
}
.
For other functions available in
\
cod
e
{
posixpath
}
dummy counterparts
\
function
{
normcase()
}
,
\
function
{
normpath()
}
,
\
function
{
isabs()
}
,
\
function
{
join()
}
,
\
function
{
split()
}
,
\
function
{
isdir()
}
,
\
function
{
isfile()
}
,
\
function
{
walk()
}
,
\
function
{
exists()
}
.
For other functions available in
\
modul
e
{
posixpath
}
dummy counterparts
are available.
Doc/libmisc.tex
View file @
55fca54e
\chapter
{
Miscellaneous Services
}
\label
{
misc
}
The modules described in this chapter provide miscellaneous services
that are available in all Python versions. Here's an overview:
...
...
@@ -6,7 +7,7 @@ that are available in all Python versions. Here's an overview:
\begin{description}
\item
[math]
--- Mathematical functions (
\
code
{
sin()
}
etc.).
--- Mathematical functions (
\
function
{
sin()
}
etc.).
\item
[cmath]
--- Mathematical functions for complex numbers.
...
...
Doc/mac/libmac.tex
View file @
55fca54e
...
...
@@ -5,22 +5,22 @@ The modules in this chapter are available on the Apple Macintosh only.
Aside from the modules described here there are also interfaces to
various MacOS toolboxes, which are currently not extensively
described. The toolboxes for which modules exist are:
\
cod
e
{
AE
}
(Apple Events),
\
cod
e
{
Cm
}
(Component Manager),
\
cod
e
{
Ctl
}
(Control Manager),
\
cod
e
{
Dlg
}
(Dialog Manager),
\
cod
e
{
Evt
}
(Event Manager),
\
cod
e
{
Fm
}
(Font Manager),
\
cod
e
{
List
}
(List Manager),
\
cod
e
{
Menu
}
(Moenu Manager),
\
cod
e
{
Qd
}
(QuickDraw),
\
cod
e
{
Qt
}
(QuickTime),
\
cod
e
{
Res
}
(Resource Manager and Handles),
\
cod
e
{
Scrap
}
(Scrap Manager),
\
cod
e
{
Snd
}
(Sound Manager),
\
cod
e
{
TE
}
(TextEdit),
\
code
{
Waste
}
(non-Apple TextEdit
replacement) and
\
cod
e
{
Win
}
(Window Manager).
\
modul
e
{
AE
}
(Apple Events),
\
modul
e
{
Cm
}
(Component Manager),
\
modul
e
{
Ctl
}
(Control Manager),
\
modul
e
{
Dlg
}
(Dialog Manager),
\
modul
e
{
Evt
}
(Event Manager),
\
modul
e
{
Fm
}
(Font Manager),
\
modul
e
{
List
}
(List Manager),
\
modul
e
{
Menu
}
(Moenu Manager),
\
modul
e
{
Qd
}
(QuickDraw),
\
modul
e
{
Qt
}
(QuickTime),
\
modul
e
{
Res
}
(Resource Manager and Handles),
\
modul
e
{
Scrap
}
(Scrap Manager),
\
modul
e
{
Snd
}
(Sound Manager),
\
modul
e
{
TE
}
(TextEdit),
\
module
{
Waste
}
(non-Apple
\program
{
TextEdit
}
replacement) and
\
modul
e
{
Win
}
(Window Manager).
If applicable the module will define a number of Python objects for
the various structures declared by the toolbox, and operations will be
...
...
@@ -34,60 +34,62 @@ additional description you are referred to Inside Mac or similar
works.
\section
{
Built-in Module
\sectcode
{
mac
}}
\label
{
module-mac
}
\bimodindex
{
mac
}
This module provides a subset of the operating system dependent
functionality provided by the optional built-in module
\
cod
e
{
posix
}
.
functionality provided by the optional built-in module
\
modul
e
{
posix
}
.
It is best accessed through the more portable standard module
\
cod
e
{
os
}
.
\
modul
e
{
os
}
.
\refbimodindex
{
posix
}
\refstmodindex
{
os
}
The following functions are available in this module:
\
code
{
chdir
}
,
\
code
{
close
}
,
\
code
{
dup
}
,
\
code
{
fdopen
}
,
\
code
{
getcwd
}
,
\
code
{
lseek
}
,
\
code
{
listdir
}
,
\
code
{
mkdir
}
,
\
code
{
open
}
,
\
code
{
read
}
,
\
code
{
rename
}
,
\
code
{
rmdir
}
,
\
code
{
stat
}
,
\
code
{
sync
}
,
\
code
{
unlink
}
,
\
code
{
write
}
,
as well as the exception
\
code
{
error
}
. Note that the times returned by
\code
{
stat()
}
are floating-point values, like all time values in
MacPython.
\
function
{
chdir()
}
,
\
function
{
close()
}
,
\
function
{
dup()
}
,
\
function
{
fdopen()
}
,
\
function
{
getcwd()
}
,
\
function
{
lseek()
}
,
\
function
{
listdir()
}
,
\
function
{
mkdir()
}
,
\
function
{
open()
}
,
\
function
{
read()
}
,
\
function
{
rename()
}
,
\
function
{
rmdir()
}
,
\
function
{
stat()
}
,
\
function
{
sync()
}
,
\
function
{
unlink()
}
,
\
function
{
write()
}
,
as well as the exception
\
exception
{
error
}
. Note that the times
returned by
\function
{
stat()
}
are floating-point values, like all time
values in
MacPython.
One additional function is available:
\
code
{
xstat()
}
. This function
returns the same information as
\
code
{
stat()
}
, but with three extra
One additional function is available:
\
function
{
xstat()
}
. This function
returns the same information as
\
function
{
stat()
}
, but with three extra
values appended: the size of the resource fork of the file and its
4-char creator and type.
\section
{
Standard Module
\sectcode
{
macpath
}}
\label
{
module-macpath
}
\stmodindex
{
macpath
}
This module provides a subset of the pathname manipulation functions
available from the optional standard module
\
cod
e
{
posixpath
}
. It is
best accessed through the more portable standard module
\
cod
e
{
os
}
, as
available from the optional standard module
\
modul
e
{
posixpath
}
. It is
best accessed through the more portable standard module
\
modul
e
{
os
}
, as
\code
{
os.path
}
.
\refstmodindex
{
posixpath
}
\refstmodindex
{
os
}
The following functions are available in this module:
\
code
{
normcase
}
,
\
code
{
normpath
}
,
\
code
{
isabs
}
,
\
code
{
join
}
,
\
code
{
split
}
,
\
code
{
isdir
}
,
\
code
{
isfile
}
,
\
code
{
walk
}
,
\
code
{
exists
}
.
For other functions available in
\
cod
e
{
posixpath
}
dummy counterparts
\
function
{
normcase()
}
,
\
function
{
normpath()
}
,
\
function
{
isabs()
}
,
\
function
{
join()
}
,
\
function
{
split()
}
,
\
function
{
isdir()
}
,
\
function
{
isfile()
}
,
\
function
{
walk()
}
,
\
function
{
exists()
}
.
For other functions available in
\
modul
e
{
posixpath
}
dummy counterparts
are available.
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