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
f9fdfa7c
Kaydet (Commit)
f9fdfa7c
authored
Eyl 11, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.4
üst
dddfffed
ec1a498a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
NEWS
Misc/NEWS
+6
-0
socketmodule.c
Modules/socketmodule.c
+1
-3
No files found.
Misc/NEWS
Dosyayı görüntüle @
f9fdfa7c
...
...
@@ -14,6 +14,12 @@ Core and Builtins
Library
-------
- Issue #24684: socket.socket.getaddrinfo() now calls
PyUnicode_AsEncodedString() instead of calling the encode() method of the
host, to handle correctly custom string with an encode() method which doesn'
t
return
a
byte
string
.
The
encoder
of
the
IDNA
codec
is
now
called
directly
instead
of
calling
the
encode
()
method
of
the
string
.
-
Issue
#
25060
:
Correctly
compute
stack
usage
of
the
BUILD_MAP
opcode
.
-
Issue
#
24857
:
Comparing
call_args
to
a
long
sequence
now
correctly
returns
a
...
...
Modules/socketmodule.c
Dosyayı görüntüle @
f9fdfa7c
...
...
@@ -5513,9 +5513,7 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs)
if
(
hobj
==
Py_None
)
{
hptr
=
NULL
;
}
else
if
(
PyUnicode_Check
(
hobj
))
{
_Py_IDENTIFIER
(
encode
);
idna
=
_PyObject_CallMethodId
(
hobj
,
&
PyId_encode
,
"s"
,
"idna"
);
idna
=
PyUnicode_AsEncodedString
(
hobj
,
"idna"
,
NULL
);
if
(
!
idna
)
return
NULL
;
assert
(
PyBytes_Check
(
idna
));
...
...
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