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
79a9036d
Kaydet (Commit)
79a9036d
authored
Mar 27, 2011
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge #9696
üst
ea8e2083
92b60d55
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
1 deletion
+9
-1
test_xdrlib.py
Lib/test/test_xdrlib.py
+2
-0
xdrlib.py
Lib/xdrlib.py
+3
-1
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_xdrlib.py
Dosyayı görüntüle @
79a9036d
...
...
@@ -12,6 +12,7 @@ class XDRTest(unittest.TestCase):
a
=
[
b
'what'
,
b
'is'
,
b
'hapnin'
,
b
'doctor'
]
p
.
pack_int
(
42
)
p
.
pack_int
(
-
17
)
p
.
pack_uint
(
9
)
p
.
pack_bool
(
True
)
p
.
pack_bool
(
False
)
...
...
@@ -29,6 +30,7 @@ class XDRTest(unittest.TestCase):
self
.
assertEqual
(
up
.
get_position
(),
0
)
self
.
assertEqual
(
up
.
unpack_int
(),
42
)
self
.
assertEqual
(
up
.
unpack_int
(),
-
17
)
self
.
assertEqual
(
up
.
unpack_uint
(),
9
)
self
.
assertTrue
(
up
.
unpack_bool
()
is
True
)
...
...
Lib/xdrlib.py
Dosyayı görüntüle @
79a9036d
...
...
@@ -50,7 +50,9 @@ class Packer:
def
pack_uint
(
self
,
x
):
self
.
__buf
.
write
(
struct
.
pack
(
'>L'
,
x
))
pack_int
=
pack_uint
def
pack_int
(
self
,
x
):
self
.
__buf
.
write
(
struct
.
pack
(
'>l'
,
x
))
pack_enum
=
pack_int
def
pack_bool
(
self
,
x
):
...
...
Misc/ACKS
Dosyayı görüntüle @
79a9036d
...
...
@@ -331,6 +331,7 @@ Duncan Grisby
Fabian Groffen
Eric Groo
Dag Gruneau
Filip Gruszczyński
Michael Guravage
Lars Gustäbel
Thomas Güttler
...
...
Misc/NEWS
Dosyayı görüntüle @
79a9036d
...
...
@@ -49,6 +49,9 @@ Core and Builtins
Library
-------
-
Issue
#
9696
:
Fix
exception
incorrectly
raised
by
xdrlib
.
Packer
.
pack_int
when
trying
to
pack
a
negative
(
in
-
range
)
integer
.
-
Issue
#
11675
:
multiprocessing
.[
Raw
]
Array
objects
created
from
an
integer
size
are
now
zeroed
on
creation
.
This
matches
the
behaviour
specified
by
the
documentation
.
...
...
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