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
415d0f5c
Kaydet (Commit)
415d0f5c
authored
Agu 05, 2012
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge
üst
4adc9a8c
31096a94
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
17 deletions
+13
-17
ipaddress.rst
Doc/library/ipaddress.rst
+4
-2
gzip.py
Lib/gzip.py
+4
-2
ipaddress.py
Lib/ipaddress.py
+1
-9
test_ipaddress.py
Lib/test/test_ipaddress.py
+2
-2
NEWS
Misc/NEWS
+2
-2
No files found.
Doc/library/ipaddress.rst
Dosyayı görüntüle @
415d0f5c
...
...
@@ -390,11 +390,13 @@ so to avoid duplication they are only documented for :class:`IPv4Network`.
.. attribute:: network_address
The broadcast address for the network.
The network address for the network. The network address and the
prefix length together uniquely define a network.
.. attribute:: broadcast_address
The broadcast address for the network.
The broadcast address for the network. Packets sent to the broadcast
address should be received by every host on the network.
.. attribute:: host mask
...
...
Lib/gzip.py
Dosyayı görüntüle @
415d0f5c
...
...
@@ -413,8 +413,10 @@ class GzipFile(io.BufferedIOBase):
if
self
.
fileobj
is
None
:
return
b
''
try
:
# 1024 is the same buffering heuristic used in read()
self
.
_read
(
max
(
n
,
1024
))
# Ensure that we don't return b"" if we haven't reached EOF.
while
self
.
extrasize
==
0
:
# 1024 is the same buffering heuristic used in read()
self
.
_read
(
max
(
n
,
1024
))
except
EOFError
:
pass
offset
=
self
.
offset
-
self
.
extrastart
...
...
Lib/ipaddress.py
Dosyayı görüntüle @
415d0f5c
...
...
@@ -1330,10 +1330,6 @@ class IPv4Interface(IPv4Address):
def
__hash__
(
self
):
return
self
.
_ip
^
self
.
_prefixlen
^
int
(
self
.
network
.
network_address
)
@property
def
prefixlen
(
self
):
return
self
.
_prefixlen
@property
def
ip
(
self
):
return
IPv4Address
(
self
.
_ip
)
...
...
@@ -1708,7 +1704,7 @@ class _BaseV6:
hex_str
=
'
%032
x'
%
ip_int
parts
=
[
hex_str
[
x
:
x
+
4
]
for
x
in
range
(
0
,
32
,
4
)]
if
isinstance
(
self
,
(
_BaseNetwork
,
IPv6Interface
)):
return
'
%
s/
%
d'
%
(
':'
.
join
(
parts
),
self
.
prefixlen
)
return
'
%
s/
%
d'
%
(
':'
.
join
(
parts
),
self
.
_
prefixlen
)
return
':'
.
join
(
parts
)
@property
...
...
@@ -1946,10 +1942,6 @@ class IPv6Interface(IPv6Address):
def
__hash__
(
self
):
return
self
.
_ip
^
self
.
_prefixlen
^
int
(
self
.
network
.
network_address
)
@property
def
prefixlen
(
self
):
return
self
.
_prefixlen
@property
def
ip
(
self
):
return
IPv6Address
(
self
.
_ip
)
...
...
Lib/test/test_ipaddress.py
Dosyayı görüntüle @
415d0f5c
...
...
@@ -731,8 +731,8 @@ class IpaddrUnitTest(unittest.TestCase):
'2001:658:22a:cafe:ffff:ffff:ffff:ffff'
)
def
testGetPrefixlen
(
self
):
self
.
assertEqual
(
self
.
ipv4_interface
.
prefixlen
,
24
)
self
.
assertEqual
(
self
.
ipv6_interface
.
prefixlen
,
64
)
self
.
assertEqual
(
self
.
ipv4_interface
.
network
.
prefixlen
,
24
)
self
.
assertEqual
(
self
.
ipv6_interface
.
network
.
prefixlen
,
64
)
def
testGetSupernet
(
self
):
self
.
assertEqual
(
self
.
ipv4_network
.
supernet
()
.
prefixlen
,
23
)
...
...
Misc/NEWS
Dosyayı görüntüle @
415d0f5c
...
...
@@ -81,8 +81,8 @@ Library
constructor
,
objects
in
the
ipaddress
module
no
longer
implement
__index__
(
they
still
implement
__int__
as
appropriate
)
-
Issue
#
15546
:
Fix
handling
of
pathological
input
data
in
the
read1
()
method
of
the
BZ2File
,
GzipFile
and
LZMAFile
classes
.
-
Issue
#
15546
:
Fix
handling
of
pathological
input
data
in
the
peek
()
and
read1
()
methods
of
the
BZ2File
,
GzipFile
and
LZMAFile
classes
.
-
Issue
#
13052
:
Fix
IDLE
crashing
when
replace
string
in
Search
/
Replace
dialog
ended
with
'\'
.
Patch
by
Roger
Serwy
.
...
...
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