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
dfd72bbc
Kaydet (Commit)
dfd72bbc
authored
Tem 31, 2012
tarafından
Eli Bendersky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #14814: fix some typos in howto/ipaddress.rst
üst
0e49749f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ipaddress.rst
Doc/howto/ipaddress.rst
+4
-4
No files found.
Doc/howto/ipaddress.rst
Dosyayı görüntüle @
dfd72bbc
...
@@ -19,7 +19,7 @@ An Introduction to the ipaddress module
...
@@ -19,7 +19,7 @@ An Introduction to the ipaddress module
Creating Address/Network/Interface objects
Creating Address/Network/Interface objects
==========================================
==========================================
Since :mod:`ipaddress` is a module for inspecting and manipulating IP address,
Since :mod:`ipaddress` is a module for inspecting and manipulating IP address
es
,
the first thing you'll want to do is create some objects. You can use
the first thing you'll want to do is create some objects. You can use
:mod:`ipaddress` to create objects from strings and integers.
:mod:`ipaddress` to create objects from strings and integers.
...
@@ -183,10 +183,10 @@ Finding out how many individual addresses are in a network::
...
@@ -183,10 +183,10 @@ Finding out how many individual addresses are in a network::
>>> net6.numhosts
>>> net6.numhosts
4294967296
4294967296
Iterating through the
'usable'
addresses on a network::
Iterating through the
"usable"
addresses on a network::
>>> net4 = ipaddress.ip_network('192.0.2.0/24')
>>> net4 = ipaddress.ip_network('192.0.2.0/24')
>>> for x in net4.
iter
hosts():
>>> for x in net4.hosts():
print(x)
print(x)
192.0.2.1
192.0.2.1
192.0.2.2
192.0.2.2
...
@@ -294,7 +294,7 @@ Getting more detail when instance creation fails
...
@@ -294,7 +294,7 @@ Getting more detail when instance creation fails
When creating address/network/interface objects using the version-agnostic
When creating address/network/interface objects using the version-agnostic
factory functions, any errors will be reported as :exc:`ValueError` with
factory functions, any errors will be reported as :exc:`ValueError` with
a generic error message that simply says the passed in value was not
a generic error message that simply says the passed in value was not
recogni
s
ed as an object of that type. The lack of a specific error is
recogni
z
ed as an object of that type. The lack of a specific error is
because it's necessary to know whether the value is *supposed* to be IPv4
because it's necessary to know whether the value is *supposed* to be IPv4
or IPv6 in order to provide more detail on why it has been rejected.
or IPv6 in order to provide more detail on why it has been rejected.
...
...
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