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
5cd75202
Kaydet (Commit)
5cd75202
authored
Ock 14, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Describe new ("unsigned") behavior of hex() and oct().
üst
9a0313cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
libfuncs.tex
Doc/lib/libfuncs.tex
+12
-2
libfuncs.tex
Doc/libfuncs.tex
+12
-2
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
5cd75202
...
...
@@ -189,7 +189,12 @@ module from which it is called).
\begin{funcdesc}
{
hex
}{
x
}
Convert an integer number (of any size) to a hexadecimal string.
The result is a valid Python expression.
The result is a valid Python expression. Note: this always yields
an unsigned literal, e.g. on a 32-bit machine,
\code
{
hex(-1)
}
yields
\code
{
'0xffffffff'
}
. When evaluated on a machine with the same
word size, this literal is evaluated as -1; at a different word
size, it may turn up as a large positive number or raise an
\code
{
OverflowError
}
exception.
\end{funcdesc}
\begin{funcdesc}
{
id
}{
object
}
...
...
@@ -256,7 +261,12 @@ any kind of sequence; the result is always a list.
\begin{funcdesc}
{
oct
}{
x
}
Convert an integer number (of any size) to an octal string. The
result is a valid Python expression.
result is a valid Python expression. Note: this always yields
an unsigned literal, e.g. on a 32-bit machine,
\code
{
oct(-1)
}
yields
\code
{
'037777777777'
}
. When evaluated on a machine with the same
word size, this literal is evaluated as -1; at a different word
size, it may turn up as a large positive number or raise an
\code
{
OverflowError
}
exception.
\end{funcdesc}
\begin{funcdesc}
{
open
}{
filename
\optional
{
\,
mode
\optional
{
\,
bufsize
}}}
...
...
Doc/libfuncs.tex
Dosyayı görüntüle @
5cd75202
...
...
@@ -189,7 +189,12 @@ module from which it is called).
\begin{funcdesc}
{
hex
}{
x
}
Convert an integer number (of any size) to a hexadecimal string.
The result is a valid Python expression.
The result is a valid Python expression. Note: this always yields
an unsigned literal, e.g. on a 32-bit machine,
\code
{
hex(-1)
}
yields
\code
{
'0xffffffff'
}
. When evaluated on a machine with the same
word size, this literal is evaluated as -1; at a different word
size, it may turn up as a large positive number or raise an
\code
{
OverflowError
}
exception.
\end{funcdesc}
\begin{funcdesc}
{
id
}{
object
}
...
...
@@ -256,7 +261,12 @@ any kind of sequence; the result is always a list.
\begin{funcdesc}
{
oct
}{
x
}
Convert an integer number (of any size) to an octal string. The
result is a valid Python expression.
result is a valid Python expression. Note: this always yields
an unsigned literal, e.g. on a 32-bit machine,
\code
{
oct(-1)
}
yields
\code
{
'037777777777'
}
. When evaluated on a machine with the same
word size, this literal is evaluated as -1; at a different word
size, it may turn up as a large positive number or raise an
\code
{
OverflowError
}
exception.
\end{funcdesc}
\begin{funcdesc}
{
open
}{
filename
\optional
{
\,
mode
\optional
{
\,
bufsize
}}}
...
...
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