Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
b0b81816
Kaydet (Commit)
b0b81816
authored
Ock 03, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added unsigned data formats (B, H, I, L).
üst
7a61f871
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
libarray.tex
Doc/lib/libarray.tex
+8
-1
libarray.tex
Doc/libarray.tex
+8
-1
No files found.
Doc/lib/libarray.tex
Dosyayı görüntüle @
b0b81816
...
@@ -12,16 +12,23 @@ which is a single character. The following type codes are defined:
...
@@ -12,16 +12,23 @@ which is a single character. The following type codes are defined:
\begin{tableiii}
{
|c|c|c|
}{
code
}{
Typecode
}{
Type
}{
Minimal size in bytes
}
\begin{tableiii}
{
|c|c|c|
}{
code
}{
Typecode
}{
Type
}{
Minimal size in bytes
}
\lineiii
{
'c'
}{
character
}{
1
}
\lineiii
{
'c'
}{
character
}{
1
}
\lineiii
{
'b'
}{
signed integer
}{
1
}
\lineiii
{
'b'
}{
signed integer
}{
1
}
\lineiii
{
'B'
}{
unsigned integer
}{
1
}
\lineiii
{
'h'
}{
signed integer
}{
2
}
\lineiii
{
'h'
}{
signed integer
}{
2
}
\lineiii
{
'H'
}{
unsigned integer
}{
2
}
\lineiii
{
'i'
}{
signed integer
}{
2
}
\lineiii
{
'i'
}{
signed integer
}{
2
}
\lineiii
{
'I'
}{
unsigned integer
}{
2
}
\lineiii
{
'l'
}{
signed integer
}{
4
}
\lineiii
{
'l'
}{
signed integer
}{
4
}
\lineiii
{
'L'
}{
unsigned integer
}{
4
}
\lineiii
{
'f'
}{
floating point
}{
4
}
\lineiii
{
'f'
}{
floating point
}{
4
}
\lineiii
{
'd'
}{
floating point
}{
8
}
\lineiii
{
'd'
}{
floating point
}{
8
}
\end{tableiii}
\end{tableiii}
The actual representation of values is determined by the machine
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
\var
{
itemsize
}
attribute.
size can be accessed through the
\var
{
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 can't represent the full range of C's unsigned (long) integers.
See also built-in module
\code
{
struct
}
.
See also built-in module
\code
{
struct
}
.
\bimodindex
{
struct
}
\bimodindex
{
struct
}
...
...
Doc/libarray.tex
Dosyayı görüntüle @
b0b81816
...
@@ -12,16 +12,23 @@ which is a single character. The following type codes are defined:
...
@@ -12,16 +12,23 @@ which is a single character. The following type codes are defined:
\begin{tableiii}
{
|c|c|c|
}{
code
}{
Typecode
}{
Type
}{
Minimal size in bytes
}
\begin{tableiii}
{
|c|c|c|
}{
code
}{
Typecode
}{
Type
}{
Minimal size in bytes
}
\lineiii
{
'c'
}{
character
}{
1
}
\lineiii
{
'c'
}{
character
}{
1
}
\lineiii
{
'b'
}{
signed integer
}{
1
}
\lineiii
{
'b'
}{
signed integer
}{
1
}
\lineiii
{
'B'
}{
unsigned integer
}{
1
}
\lineiii
{
'h'
}{
signed integer
}{
2
}
\lineiii
{
'h'
}{
signed integer
}{
2
}
\lineiii
{
'H'
}{
unsigned integer
}{
2
}
\lineiii
{
'i'
}{
signed integer
}{
2
}
\lineiii
{
'i'
}{
signed integer
}{
2
}
\lineiii
{
'I'
}{
unsigned integer
}{
2
}
\lineiii
{
'l'
}{
signed integer
}{
4
}
\lineiii
{
'l'
}{
signed integer
}{
4
}
\lineiii
{
'L'
}{
unsigned integer
}{
4
}
\lineiii
{
'f'
}{
floating point
}{
4
}
\lineiii
{
'f'
}{
floating point
}{
4
}
\lineiii
{
'd'
}{
floating point
}{
8
}
\lineiii
{
'd'
}{
floating point
}{
8
}
\end{tableiii}
\end{tableiii}
The actual representation of values is determined by the machine
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
\var
{
itemsize
}
attribute.
size can be accessed through the
\var
{
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 can't represent the full range of C's unsigned (long) integers.
See also built-in module
\code
{
struct
}
.
See also built-in module
\code
{
struct
}
.
\bimodindex
{
struct
}
\bimodindex
{
struct
}
...
...
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