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
1243c7d3
Kaydet (Commit)
1243c7d3
authored
Mar 11, 2014
tarafından
Peter Moody
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19157: Include the broadcast address in the usuable hosts for IPv6
in ipaddress.
üst
11a4270b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
ipaddress.py
Lib/ipaddress.py
+12
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/ipaddress.py
Dosyayı görüntüle @
1243c7d3
...
...
@@ -2155,6 +2155,18 @@ class IPv6Network(_BaseV6, _BaseNetwork):
if
self
.
_prefixlen
==
(
self
.
_max_prefixlen
-
1
):
self
.
hosts
=
self
.
__iter__
def
hosts
(
self
):
"""Generate Iterator over usable hosts in a network.
This is like __iter__ except it doesn't return the
Subnet-Router anycast address.
"""
network
=
int
(
self
.
network_address
)
broadcast
=
int
(
self
.
broadcast_address
)
for
x
in
range
(
network
+
1
,
broadcast
+
1
):
yield
self
.
_address_class
(
x
)
@property
def
is_site_local
(
self
):
"""Test if the address is reserved for site-local.
...
...
Misc/NEWS
Dosyayı görüntüle @
1243c7d3
...
...
@@ -20,6 +20,9 @@ Core and Builtins
Library
-------
- Issue #19157: Include the broadcast address in the usuable hosts for IPv6
in ipaddress.
- Issue #20875: Prevent possible gzip "'
read
' is not defined" NameError.
Patch by Claudiu Popa.
...
...
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