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
30781e93
Kaydet (Commit)
30781e93
authored
Mar 10, 2014
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
whatsnew: urllib Request objects are now reusable.
#16464, #17485, #17272.
üst
0c5598be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
3.4.rst
Doc/whatsnew/3.4.rst
+13
-0
NEWS
Misc/NEWS
+4
-1
No files found.
Doc/whatsnew/3.4.rst
Dosyayı görüntüle @
30781e93
...
...
@@ -1562,6 +1562,19 @@ can now be specified by setting a :class:`~urllib.request.Request.method`
class attribute on the subclass. (Contributed by Jason R Coombs in
:issue:`18978`.)
:class:`~urllib.request.Request` objects are now reusable: if the
:attr:`~urllib.request.Request.full_url` or :attr:`~urllib.request.Request.data`
attributes are modified, all relevant internal properties are updated. This
means, for example, that it is now possible to use the same
:class:`~urllib.request.Request` object in more than one
:meth:`.OpenerDirector.open` call with different *data* arguments, or to
modify a :class:`~urllib.request.Request`\ 's ``url`` rather than recomputing it
from scratch. There is also a new
:meth:`~urllib.request.Request.remove_header` method that can be used to remove
headers from a :class:`~urllib.request.Request`. (Contributed by Alexey
Kachayev in :issue:`16464`, Daniel Wozniak in :issue:`17485`, and Damien Brecht
and Senthil Kumaran in :issue:`17272`.)
unittest
--------
...
...
Misc/NEWS
Dosyayı görüntüle @
30781e93
...
...
@@ -3053,7 +3053,7 @@ Library
to
procedurally
generate
,
in
an
easy
way
,
small
test
instances
.
-
Issue
#
17485
:
Also
delete
the
Request
Content
-
Length
header
if
the
data
attribute
is
deleted
.
(
Follow
on
to
issue
16464
).
attribute
is
deleted
.
(
Follow
on
to
issue
Issue
#
16464
).
-
Issue
#
15927
:
CVS
now
correctly
parses
escaped
newlines
and
carriage
when
parsing
with
quoting
turned
off
.
...
...
@@ -3477,6 +3477,9 @@ Library
list() calls aren'
t
added
to
filter
(),
map
(),
and
zip
()
which
are
directly
passed
enumerate
().
-
Issue
#
16464
:
Reset
the
Content
-
Length
header
when
a
urllib
Request
is
reused
with
new
data
.
-
Issue
#
12848
:
The
pure
Python
pickle
implementation
now
treats
object
lengths
as
unsigned
32
-
bit
integers
,
like
the
C
implementation
does
.
Patch
by
Serhiy
Storchaka
.
...
...
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