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
4f6e4fbc
Commit
4f6e4fbc
authored
Apr 21, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added "See also" reference to xdrlib.
Markup nits.
parent
69fa5632
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
Doc/lib/libarray.tex
Doc/lib/libarray.tex
+11
-10
No files found.
Doc/lib/libarray.tex
View file @
4f6e4fbc
\section
{
\module
{
array
}
---
Efficient arrays of uniformly typed numeric values.
}
\declaremodule
{
builtin
}{
array
}
Efficient arrays of numeric values
}
\declaremodule
{
builtin
}{
array
}
\modulesynopsis
{
Efficient arrays of uniformly typed numeric values.
}
\index
{
arrays
}
This module defines a new object type which can efficiently represent
an array of basic values: characters, integers, floating point
numbers. Arrays are sequence types and behave very much like lists,
except that the type of objects stored in them is constrained. The
type is specified at object creation time by using a
\dfn
{
type code
}
,
which is a single character. The following type codes are defined:
numbers. Arrays
\index
{
arrays
}
are sequence types and behave very much
like lists, except that the type of objects stored in them is
constrained. The type is specified at object creation time by using a
\dfn
{
type code
}
, which is a single character. The following type
codes are defined:
\begin{tableiii}
{
c|l|c
}{
code
}{
Type code
}{
C Type
}{
Minimum size in bytes
}
\lineiii
{
'c'
}{
character
}{
1
}
...
...
@@ -28,11 +28,11 @@ which is a single character. The following type codes are defined:
\end{tableiii}
The actual representation of values is determined by the machine
architecture (strictly speaking, by the
\C
{}
implementation). The actual
architecture (strictly speaking, by the
C
implementation). The actual
size can be accessed through the
\member
{
itemsize
}
attribute. The values
stored for
\code
{
'L'
}
and
\code
{
'I'
}
items will be represented as
Python long integers when retrieved, because Python's plain integer
type cannot represent the full range of
\C
{}
's unsigned (long) integers.
type cannot represent the full range of
C
's unsigned (long) integers.
The module defines the following function and type object:
...
...
@@ -160,5 +160,6 @@ array('d', [1.0, 2.0, 3.14])
\begin{seealso}
\seemodule
{
struct
}{
Packing and unpacking of heterogeneous binary data.
}
\seemodule
{
struct
}{
packing and unpacking of heterogeneous binary data
}
\seemodule
{
xdrlib
{{
packing and unpacking of XDR data
}
\end{seealso}
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