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
574980e9
Kaydet (Commit)
574980e9
authored
Mar 27, 2011
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge #9696
üst
756ebc79
79a9036d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
test_xdrlib.py
Lib/test/test_xdrlib.py
+2
-0
xdrlib.py
Lib/xdrlib.py
+3
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_xdrlib.py
Dosyayı görüntüle @
574980e9
...
@@ -12,6 +12,7 @@ class XDRTest(unittest.TestCase):
...
@@ -12,6 +12,7 @@ class XDRTest(unittest.TestCase):
a
=
[
b
'what'
,
b
'is'
,
b
'hapnin'
,
b
'doctor'
]
a
=
[
b
'what'
,
b
'is'
,
b
'hapnin'
,
b
'doctor'
]
p
.
pack_int
(
42
)
p
.
pack_int
(
42
)
p
.
pack_int
(
-
17
)
p
.
pack_uint
(
9
)
p
.
pack_uint
(
9
)
p
.
pack_bool
(
True
)
p
.
pack_bool
(
True
)
p
.
pack_bool
(
False
)
p
.
pack_bool
(
False
)
...
@@ -29,6 +30,7 @@ class XDRTest(unittest.TestCase):
...
@@ -29,6 +30,7 @@ class XDRTest(unittest.TestCase):
self
.
assertEqual
(
up
.
get_position
(),
0
)
self
.
assertEqual
(
up
.
get_position
(),
0
)
self
.
assertEqual
(
up
.
unpack_int
(),
42
)
self
.
assertEqual
(
up
.
unpack_int
(),
42
)
self
.
assertEqual
(
up
.
unpack_int
(),
-
17
)
self
.
assertEqual
(
up
.
unpack_uint
(),
9
)
self
.
assertEqual
(
up
.
unpack_uint
(),
9
)
self
.
assertTrue
(
up
.
unpack_bool
()
is
True
)
self
.
assertTrue
(
up
.
unpack_bool
()
is
True
)
...
...
Lib/xdrlib.py
Dosyayı görüntüle @
574980e9
...
@@ -50,7 +50,9 @@ class Packer:
...
@@ -50,7 +50,9 @@ class Packer:
def
pack_uint
(
self
,
x
):
def
pack_uint
(
self
,
x
):
self
.
__buf
.
write
(
struct
.
pack
(
'>L'
,
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
pack_enum
=
pack_int
def
pack_bool
(
self
,
x
):
def
pack_bool
(
self
,
x
):
...
...
Misc/NEWS
Dosyayı görüntüle @
574980e9
...
@@ -87,6 +87,9 @@ Core and Builtins
...
@@ -87,6 +87,9 @@ Core and Builtins
Library
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
-
Issue
#
11675
:
multiprocessing
.[
Raw
]
Array
objects
created
from
an
integer
size
are
now
zeroed
on
creation
.
This
matches
the
behaviour
specified
by
the
are
now
zeroed
on
creation
.
This
matches
the
behaviour
specified
by
the
documentation
.
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