chunk_id
stringlengths
36
36
source
stringclasses
35 values
source_url
stringlengths
0
290
upstream_license
stringclasses
1 value
document_id
stringlengths
36
36
chunk_index
int64
0
324k
retrieved_at
stringclasses
2 values
chunker_version
stringclasses
4 values
content_hash
stringlengths
15
64
content
stringlengths
50
44.7k
namespace
stringclasses
9 values
source_name
stringclasses
35 values
raw_text
stringlengths
50
44.7k
cleaned_text
stringlengths
50
44.7k
tags
stringclasses
49 values
collection_name
stringclasses
11 values
89c13217-baef-487a-96a3-29705daf3d0c
CPython Docs
file://datasets/cpython/Doc/library/asyncio-subprocess.rst
unknown
1c0d9f28-7251-4097-b500-13210691b254
36,566
supabase-export-v2
ef2b3993bb2056ae
A ``None`` value indicates that the process has not terminated yet. For processes created with :func:`~asyncio.create_subprocess_exec`, a negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only).
trusted_official_docs
CPython Docs
A ``None`` value indicates that the process has not terminated yet. For processes created with :func:`~asyncio.create_subprocess_exec`, a negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only).
A ``None`` value indicates that the process has not terminated yet. For processes created with :func:`~asyncio.create_subprocess_exec`, a negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only).
python, official-docs, cpython, P0
Local_Trusted_Corpus
9600250a-885f-4a43-9c31-7d58f73b212e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-subprocess.rst
unknown
1c0d9f28-7251-4097-b500-13210691b254
36,535
supabase-export-v2
c0aec2089a782e79
(if *input* is not ``None``); 2. closes *stdin*; 3. read data from *stdout* and *stderr*, until EOF is reached; 4. wait for process to terminate. The optional *input* argument is the data (:class:`bytes` object) that will be sent to the child process.
trusted_official_docs
CPython Docs
(if *input* is not ``None``); 2. closes *stdin*; 3. read data from *stdout* and *stderr*, until EOF is reached; 4. wait for process to terminate. The optional *input* argument is the data (:class:`bytes` object) that will be sent to the child process.
(if *input* is not ``None``); 2. closes *stdin*; 3. read data from *stdout* and *stderr*, until EOF is reached; 4. wait for process to terminate. The optional *input* argument is the data (:class:`bytes` object) that will be sent to the child process.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9b55d666-b10f-47de-9a1a-568c7ebb8369
CPython Docs
file://datasets/cpython/Doc/library/asyncio-subprocess.rst
unknown
1c0d9f28-7251-4097-b500-13210691b254
36,567
supabase-export-v2
a6e73b36de97d8a1
For processes created with :func:`~asyncio.create_subprocess_exec`, a negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only). For processes created with :func:`~asyncio.create_subprocess_shell`, the return code reflects the exit status of the shell itself (e.g. ``/bin/sh``), which ...
trusted_official_docs
CPython Docs
For processes created with :func:`~asyncio.create_subprocess_exec`, a negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only). For processes created with :func:`~asyncio.create_subprocess_shell`, the return code reflects the exit status of the shell itself (e.g. ``/bin/sh``), which ...
For processes created with :func:`~asyncio.create_subprocess_exec`, a negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only). For processes created with :func:`~asyncio.create_subprocess_shell`, the return code reflects the exit status of the shell itself (e.g. ``/bin/sh``), which ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9cfdfd7c-8bc0-4617-81cf-13ba9f480a93
CPython Docs
file://datasets/cpython/Doc/library/asyncio-subprocess.rst
unknown
1c0d9f28-7251-4097-b500-13210691b254
36,511
supabase-export-v2
ab611e0a56dc95a6
If *PIPE* is passed to *stdin* argument, the :attr:`Process.stdin <asyncio.subprocess.Process.stdin>` attribute will point to a :class:`~asyncio.StreamWriter` instance. If *PIPE* is passed to *stdout* or *stderr* arguments, the :attr:`Process.stdout <asyncio.subprocess.Process.stdout>` and :attr:`Process.stderr <asyn...
trusted_official_docs
CPython Docs
If *PIPE* is passed to *stdin* argument, the :attr:`Process.stdin <asyncio.subprocess.Process.stdin>` attribute will point to a :class:`~asyncio.StreamWriter` instance. If *PIPE* is passed to *stdout* or *stderr* arguments, the :attr:`Process.stdout <asyncio.subprocess.Process.stdout>` and :attr:`Process.stderr <asyn...
If *PIPE* is passed to *stdin* argument, the :attr:`Process.stdin <asyncio.subprocess.Process.stdin>` attribute will point to a :class:`~asyncio.StreamWriter` instance. If *PIPE* is passed to *stdout* or *stderr* arguments, the :attr:`Process.stdout <asyncio.subprocess.Process.stdout>` and :attr:`Process.stderr <asyn...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d9c0e96a-41d4-4f3b-9e4f-584279c5cd0e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-subprocess.rst
unknown
1c0d9f28-7251-4097-b500-13210691b254
36,538
supabase-export-v2
8e5ae3441c08a132
is raised when writing *input* into *stdin*, the exception is ignored. This condition occurs when the process exits before all data are written into *stdin*. If it is desired to send data to the process' *stdin*, the process needs to be created with ``stdin=PIPE``. Similarly, to get anything other than ``None`` in th...
trusted_official_docs
CPython Docs
is raised when writing *input* into *stdin*, the exception is ignored. This condition occurs when the process exits before all data are written into *stdin*. If it is desired to send data to the process' *stdin*, the process needs to be created with ``stdin=PIPE``. Similarly, to get anything other than ``None`` in th...
is raised when writing *input* into *stdin*, the exception is ignored. This condition occurs when the process exits before all data are written into *stdin*. If it is desired to send data to the process' *stdin*, the process needs to be created with ``stdin=PIPE``. Similarly, to get anything other than ``None`` in th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e74f9ca0-bc4f-4a80-83a3-9b161f5a355b
CPython Docs
file://datasets/cpython/Doc/library/asyncio-subprocess.rst
unknown
1c0d9f28-7251-4097-b500-13210691b254
36,501
supabase-export-v2
e72cf2dae4ee84c6
.. important:: It is the application's responsibility to ensure that all whitespace and special characters are quoted appropriately to avoid `shell injection <https://en.wikipedia.org/wiki/Shell_injection#Shell_injection>`_ vulnerabilities. The :func:`shlex.quote` function can be used to properly escape whitespace ...
trusted_official_docs
CPython Docs
.. important:: It is the application's responsibility to ensure that all whitespace and special characters are quoted appropriately to avoid `shell injection <https://en.wikipedia.org/wiki/Shell_injection#Shell_injection>`_ vulnerabilities. The :func:`shlex.quote` function can be used to properly escape whitespace ...
.. important:: It is the application's responsibility to ensure that all whitespace and special characters are quoted appropriately to avoid `shell injection <https://en.wikipedia.org/wiki/Shell_injection#Shell_injection>`_ vulnerabilities. The :func:`shlex.quote` function can be used to properly escape whitespace ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e918e725-5e47-49f4-87ca-96e37f1a5478
CPython Docs
file://datasets/cpython/Doc/library/asyncio-subprocess.rst
unknown
1c0d9f28-7251-4097-b500-13210691b254
36,581
supabase-export-v2
a05169c06ca4ac2a
async def get_date(): code = 'import datetime as dt; print(dt.datetime.now())' # Create the subprocess; redirect the standard output # into a pipe. proc = await asyncio.create_subprocess_exec( sys.executable, '-c', code, stdout=asyncio.subprocess.PIPE)
trusted_official_docs
CPython Docs
async def get_date(): code = 'import datetime as dt; print(dt.datetime.now())' # Create the subprocess; redirect the standard output # into a pipe. proc = await asyncio.create_subprocess_exec( sys.executable, '-c', code, stdout=asyncio.subprocess.PIPE)
async def get_date(): code = 'import datetime as dt; print(dt.datetime.now())' # Create the subprocess; redirect the standard output # into a pipe. proc = await asyncio.create_subprocess_exec( sys.executable, '-c', code, stdout=asyncio.subprocess.PIPE)
python, official-docs, cpython, P0
Local_Trusted_Corpus
0b7b325f-31e4-45ff-a5e7-aea22d5d9271
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,714
supabase-export-v2
29ed57c152300003
Prefix, net mask and host mask ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ There are several equivalent ways to specify IP network masks. A *prefix* ``/<nbits>`` is a notation that denotes how many high-order bits are set in the network mask. A *net mask* is an IP address with some number of high-order bits set. Thus the prefix ``/...
trusted_official_docs
CPython Docs
Prefix, net mask and host mask ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ There are several equivalent ways to specify IP network masks. A *prefix* ``/<nbits>`` is a notation that denotes how many high-order bits are set in the network mask. A *net mask* is an IP address with some number of high-order bits set. Thus the prefix ``/...
Prefix, net mask and host mask ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ There are several equivalent ways to specify IP network masks. A *prefix* ``/<nbits>`` is a notation that denotes how many high-order bits are set in the network mask. A *net mask* is an IP address with some number of high-order bits set. Thus the prefix ``/...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0c37e37b-20b2-4f73-8989-c9935788a7e3
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,828
supabase-export-v2
12f850dc9e514a9c
:class:`IPv6Interface` is a subclass of :class:`IPv6Address`, so it inherits all the attributes from that class. In addition, the following attributes are available: .. attribute:: ip .. attribute:: network .. attribute:: with_prefixlen .. attribute:: with_netmask .. attribute:: with_hostmask
trusted_official_docs
CPython Docs
:class:`IPv6Interface` is a subclass of :class:`IPv6Address`, so it inherits all the attributes from that class. In addition, the following attributes are available: .. attribute:: ip .. attribute:: network .. attribute:: with_prefixlen .. attribute:: with_netmask .. attribute:: with_hostmask
:class:`IPv6Interface` is a subclass of :class:`IPv6Address`, so it inherits all the attributes from that class. In addition, the following attributes are available: .. attribute:: ip .. attribute:: network .. attribute:: with_prefixlen .. attribute:: with_netmask .. attribute:: with_hostmask
python, official-docs, cpython, P0
Local_Trusted_Corpus
15cc3808-422a-4c70-aca1-5b71081155bd
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,753
supabase-export-v2
7e13430a74a2164c
.. method:: hosts() Returns an iterator over the usable hosts in the network. The usable hosts are all the IP addresses that belong to the network, except the network address itself and the network broadcast address. For networks with a mask length of 31, the network address and network broadcast address are also i...
trusted_official_docs
CPython Docs
.. method:: hosts() Returns an iterator over the usable hosts in the network. The usable hosts are all the IP addresses that belong to the network, except the network address itself and the network broadcast address. For networks with a mask length of 31, the network address and network broadcast address are also i...
.. method:: hosts() Returns an iterator over the usable hosts in the network. The usable hosts are all the IP addresses that belong to the network, except the network address itself and the network broadcast address. For networks with a mask length of 31, the network address and network broadcast address are also i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
18fc1ead-2960-4ae4-8dc9-d90fe41a893a
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,792
supabase-export-v2
3c7a9203ec096eb5
.. method:: overlaps(other) .. method:: address_exclude(network) .. method:: subnets(prefixlen_diff=1, new_prefix=None) .. method:: supernet(prefixlen_diff=1, new_prefix=None) .. method:: subnet_of(other) .. method:: supernet_of(other) .. method:: compare_networks(other) Refer to the corresponding attribute documentati...
trusted_official_docs
CPython Docs
.. method:: overlaps(other) .. method:: address_exclude(network) .. method:: subnets(prefixlen_diff=1, new_prefix=None) .. method:: supernet(prefixlen_diff=1, new_prefix=None) .. method:: subnet_of(other) .. method:: supernet_of(other) .. method:: compare_networks(other) Refer to the corresponding attribute documentati...
.. method:: overlaps(other) .. method:: address_exclude(network) .. method:: subnets(prefixlen_diff=1, new_prefix=None) .. method:: supernet(prefixlen_diff=1, new_prefix=None) .. method:: subnet_of(other) .. method:: supernet_of(other) .. method:: compare_networks(other) Refer to the corresponding attribute documentati...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2326a614-6fc7-4b0d-8d61-3190cf0f5683
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,791
supabase-export-v2
01b09ce3e98c8841
the Subnet-Router anycast address is also included in the result. Networks with a mask of 128 will return a list containing the single host address. .. method:: overlaps(other) .. method:: address_exclude(network) .. method:: subnets(prefixlen_diff=1, new_prefix=None) .. method:: supernet(prefixlen_diff=1, new_prefi...
trusted_official_docs
CPython Docs
the Subnet-Router anycast address is also included in the result. Networks with a mask of 128 will return a list containing the single host address. .. method:: overlaps(other) .. method:: address_exclude(network) .. method:: subnets(prefixlen_diff=1, new_prefix=None) .. method:: supernet(prefixlen_diff=1, new_prefi...
the Subnet-Router anycast address is also included in the result. Networks with a mask of 128 will return a list containing the single host address. .. method:: overlaps(other) .. method:: address_exclude(network) .. method:: subnets(prefixlen_diff=1, new_prefix=None) .. method:: supernet(prefixlen_diff=1, new_prefi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
29013b3f-97a7-4490-a6d6-165b39bd5c23
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,657
supabase-export-v2
7f08aa83fe7b50c3
For IPv4, this is only ``240.0.0.0/4``, the ``Reserved`` address block. For IPv6, this is all addresses `allocated <iana-ipv6-address-space_>`__ as ``Reserved by IETF`` for future use. .. note:: For IPv4, ``is_reserved`` is not related to the address block value of the ``Reserved-by-Protocol`` column in iana-ipv4-spec...
trusted_official_docs
CPython Docs
For IPv4, this is only ``240.0.0.0/4``, the ``Reserved`` address block. For IPv6, this is all addresses `allocated <iana-ipv6-address-space_>`__ as ``Reserved by IETF`` for future use. .. note:: For IPv4, ``is_reserved`` is not related to the address block value of the ``Reserved-by-Protocol`` column in iana-ipv4-spec...
For IPv4, this is only ``240.0.0.0/4``, the ``Reserved`` address block. For IPv6, this is all addresses `allocated <iana-ipv6-address-space_>`__ as ``Reserved by IETF`` for future use. .. note:: For IPv4, ``is_reserved`` is not related to the address block value of the ``Reserved-by-Protocol`` column in iana-ipv4-spec...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2948b68f-a34e-4f9f-96d0-24251cb349a7
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,758
supabase-export-v2
8678413fb1a967f9
.. method:: address_exclude(network) Computes the network definitions resulting from removing the given *network* from this one. Returns an iterator of network objects. Raises :exc:`ValueError` if *network* is not completely contained in this network.
trusted_official_docs
CPython Docs
.. method:: address_exclude(network) Computes the network definitions resulting from removing the given *network* from this one. Returns an iterator of network objects. Raises :exc:`ValueError` if *network* is not completely contained in this network.
.. method:: address_exclude(network) Computes the network definitions resulting from removing the given *network* from this one. Returns an iterator of network objects. Raises :exc:`ValueError` if *network* is not completely contained in this network.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2ad5ade2-6121-4ad8-88d2-d84baed0ce1c
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,682
supabase-export-v2
b936e588a533a5b1
The long form of the address representation, with all leading zeroes and groups consisting entirely of zeroes included. For the following attributes and methods, see the corresponding documentation of the :class:`IPv4Address` class:
trusted_official_docs
CPython Docs
The long form of the address representation, with all leading zeroes and groups consisting entirely of zeroes included. For the following attributes and methods, see the corresponding documentation of the :class:`IPv4Address` class:
The long form of the address representation, with all leading zeroes and groups consisting entirely of zeroes included. For the following attributes and methods, see the corresponding documentation of the :class:`IPv4Address` class:
python, official-docs, cpython, P0
Local_Trusted_Corpus
30c499f3-b3b3-4bab-8d8c-b538ccd90cb5
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,765
supabase-export-v2
8c14191b1e56f1a3
the supernet; it must be smaller than our prefix. One and only one of *prefixlen_diff* and *new_prefix* must be set. Returns a single network object. >>> ip_network('192.0.2.0/24').supernet() IPv4Network('192.0.2.0/23') >>> ip_network('192.0.2.0/24').supernet(prefixlen_diff=2) IPv4Network('192.0.0.0/22') >>> ip_net...
trusted_official_docs
CPython Docs
the supernet; it must be smaller than our prefix. One and only one of *prefixlen_diff* and *new_prefix* must be set. Returns a single network object. >>> ip_network('192.0.2.0/24').supernet() IPv4Network('192.0.2.0/23') >>> ip_network('192.0.2.0/24').supernet(prefixlen_diff=2) IPv4Network('192.0.0.0/22') >>> ip_net...
the supernet; it must be smaller than our prefix. One and only one of *prefixlen_diff* and *new_prefix* must be set. Returns a single network object. >>> ip_network('192.0.2.0/24').supernet() IPv4Network('192.0.2.0/23') >>> ip_network('192.0.2.0/24').supernet(prefixlen_diff=2) IPv4Network('192.0.0.0/22') >>> ip_net...
python, official-docs, cpython, P0
Local_Trusted_Corpus
318857d9-e670-49fe-8954-5a15f0ae2d33
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,781
supabase-export-v2
912658c132c82cf3
the network address, and the prefix length must be a single number, the *prefix*. If no prefix length is provided, it's considered to be ``/128``. Note that currently expanded netmasks are not supported. That means ``2001:db00::0/24`` is a valid argument while ``2001:db00::0/ffff:ff00::`` is not.
trusted_official_docs
CPython Docs
the network address, and the prefix length must be a single number, the *prefix*. If no prefix length is provided, it's considered to be ``/128``. Note that currently expanded netmasks are not supported. That means ``2001:db00::0/24`` is a valid argument while ``2001:db00::0/ffff:ff00::`` is not.
the network address, and the prefix length must be a single number, the *prefix*. If no prefix length is provided, it's considered to be ``/128``. Note that currently expanded netmasks are not supported. That means ``2001:db00::0/24`` is a valid argument while ``2001:db00::0/ffff:ff00::`` is not.
python, official-docs, cpython, P0
Local_Trusted_Corpus
34fab08f-74b8-44cb-837e-257b88c22206
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,592
supabase-export-v2
ec3d9dc9b63a82bf
iterating over all hosts in a particular subnet, checking whether or not a string represents a valid IP address or network definition, and so on. This is the full module API reference—for an overview and introduction, see :ref:`ipaddress-howto`.
trusted_official_docs
CPython Docs
iterating over all hosts in a particular subnet, checking whether or not a string represents a valid IP address or network definition, and so on. This is the full module API reference—for an overview and introduction, see :ref:`ipaddress-howto`.
iterating over all hosts in a particular subnet, checking whether or not a string represents a valid IP address or network definition, and so on. This is the full module API reference—for an overview and introduction, see :ref:`ipaddress-howto`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
388b635a-1ab4-4919-a7d7-7f7822d41af0
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,676
supabase-export-v2
eb4acac06eed076c
first link of the node. 2. An integer that fits into 128 bits. 3. An integer packed into a :class:`bytes` object of length 16, big-endian. >>> ipaddress.IPv6Address('2001:db8::1000') IPv6Address('2001:db8::1000') >>> ipaddress.IPv6Address('ff02::5678%1') IPv6Address('ff02::5678%1')
trusted_official_docs
CPython Docs
first link of the node. 2. An integer that fits into 128 bits. 3. An integer packed into a :class:`bytes` object of length 16, big-endian. >>> ipaddress.IPv6Address('2001:db8::1000') IPv6Address('2001:db8::1000') >>> ipaddress.IPv6Address('ff02::5678%1') IPv6Address('ff02::5678%1')
first link of the node. 2. An integer that fits into 128 bits. 3. An integer packed into a :class:`bytes` object of length 16, big-endian. >>> ipaddress.IPv6Address('2001:db8::1000') IPv6Address('2001:db8::1000') >>> ipaddress.IPv6Address('ff02::5678%1') IPv6Address('ff02::5678%1')
python, official-docs, cpython, P0
Local_Trusted_Corpus
3c6e0c28-34d5-47dd-9e2d-957f958456ea
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,776
supabase-export-v2
1ac5bd1d49725f21
Compare this network to *other*. In this comparison only the network addresses are considered; host bits aren't. Returns either ``-1``, ``0`` or ``1``. >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.2/32')) -1 >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.0/32')) 1 >>> ip_...
trusted_official_docs
CPython Docs
Compare this network to *other*. In this comparison only the network addresses are considered; host bits aren't. Returns either ``-1``, ``0`` or ``1``. >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.2/32')) -1 >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.0/32')) 1 >>> ip_...
Compare this network to *other*. In this comparison only the network addresses are considered; host bits aren't. Returns either ``-1``, ``0`` or ``1``. >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.2/32')) -1 >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.0/32')) 1 >>> ip_...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4126385d-d4e6-46c3-bae3-8866f040ccc3
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,695
supabase-export-v2
dc56ed915f5a27fc
.. attribute:: teredo For addresses that appear to be Teredo addresses (starting with ``2001::/32``) as defined by :RFC:`4380`, this property will report the embedded ``(server, client)`` IP address pair. For any other address, this property will be ``None``.
trusted_official_docs
CPython Docs
.. attribute:: teredo For addresses that appear to be Teredo addresses (starting with ``2001::/32``) as defined by :RFC:`4380`, this property will report the embedded ``(server, client)`` IP address pair. For any other address, this property will be ``None``.
.. attribute:: teredo For addresses that appear to be Teredo addresses (starting with ``2001::/32``) as defined by :RFC:`4380`, this property will report the embedded ``(server, client)`` IP address pair. For any other address, this property will be ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
41af7e85-fcde-4b08-93da-9a8a16f72d98
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,604
supabase-export-v2
e029e7ec70f4aaca
.. function:: ip_interface(address) Return an :class:`IPv4Interface` or :class:`IPv6Interface` object depending on the IP address passed as argument. *address* is a string or integer representing the IP address. Either IPv4 or IPv6 addresses may be supplied; integers less than ``2**32`` will be considered to be IPv4...
trusted_official_docs
CPython Docs
.. function:: ip_interface(address) Return an :class:`IPv4Interface` or :class:`IPv6Interface` object depending on the IP address passed as argument. *address* is a string or integer representing the IP address. Either IPv4 or IPv6 addresses may be supplied; integers less than ``2**32`` will be considered to be IPv4...
.. function:: ip_interface(address) Return an :class:`IPv4Interface` or :class:`IPv6Interface` object depending on the IP address passed as argument. *address* is a string or integer representing the IP address. Either IPv4 or IPv6 addresses may be supplied; integers less than ``2**32`` will be considered to be IPv4...
python, official-docs, cpython, P0
Local_Trusted_Corpus
44d09ef6-31e1-40d0-a64f-c53932ba4f22
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,853
supabase-export-v2
95e57467e0a361d7
may wish to have :mod:`!ipaddress` sort these anyway. If you need to do this, you can use this function as the *key* argument to :func:`sorted`. *obj* is either a network or address object.
trusted_official_docs
CPython Docs
may wish to have :mod:`!ipaddress` sort these anyway. If you need to do this, you can use this function as the *key* argument to :func:`sorted`. *obj* is either a network or address object.
may wish to have :mod:`!ipaddress` sort these anyway. If you need to do this, you can use this function as the *key* argument to :func:`sorted`. *obj* is either a network or address object.
python, official-docs, cpython, P0
Local_Trusted_Corpus
45a4296d-0c3f-439e-b74a-c2b58dee43a1
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,842
supabase-export-v2
ac62a492e52dfa08
.. function:: v6_int_to_packed(address) Represent an address as 16 packed bytes in network (big-endian) order. *address* is an integer representation of an IPv6 IP address. A :exc:`ValueError` is raised if the integer is negative or too large to be an IPv6 IP address.
trusted_official_docs
CPython Docs
.. function:: v6_int_to_packed(address) Represent an address as 16 packed bytes in network (big-endian) order. *address* is an integer representation of an IPv6 IP address. A :exc:`ValueError` is raised if the integer is negative or too large to be an IPv6 IP address.
.. function:: v6_int_to_packed(address) Represent an address as 16 packed bytes in network (big-endian) order. *address* is an integer representation of an IPv6 IP address. A :exc:`ValueError` is raised if the integer is negative or too large to be an IPv6 IP address.
python, official-docs, cpython, P0
Local_Trusted_Corpus
48335a20-f95d-4ba2-8657-3e944304374f
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,640
supabase-export-v2
fa9af37d8a2741f4
``True`` if the address is defined as not globally reachable by iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6) with the following exceptions: * ``is_private`` is ``False`` for the shared address space (``100.64.0.0/10``) * For IPv4-mapped IPv6-addresses the ``is_private`` value is det...
trusted_official_docs
CPython Docs
``True`` if the address is defined as not globally reachable by iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6) with the following exceptions: * ``is_private`` is ``False`` for the shared address space (``100.64.0.0/10``) * For IPv4-mapped IPv6-addresses the ``is_private`` value is det...
``True`` if the address is defined as not globally reachable by iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6) with the following exceptions: * ``is_private`` is ``False`` for the shared address space (``100.64.0.0/10``) * For IPv4-mapped IPv6-addresses the ``is_private`` value is det...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4875fccb-37ca-47c3-8637-fe30bc6eea13
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,613
supabase-export-v2
1abd02cc5470b638
octal notation. 2. An integer that fits into 32 bits. 3. An integer packed into a :class:`bytes` object of length 4 (most significant octet first). >>> ipaddress.IPv4Address('192.168.0.1') IPv4Address('192.168.0.1') >>> ipaddress.IPv4Address(3232235521) IPv4Address('192.168.0.1') >>> ipaddress.IPv4Address(b'\xC0\xA...
trusted_official_docs
CPython Docs
octal notation. 2. An integer that fits into 32 bits. 3. An integer packed into a :class:`bytes` object of length 4 (most significant octet first). >>> ipaddress.IPv4Address('192.168.0.1') IPv4Address('192.168.0.1') >>> ipaddress.IPv4Address(3232235521) IPv4Address('192.168.0.1') >>> ipaddress.IPv4Address(b'\xC0\xA...
octal notation. 2. An integer that fits into 32 bits. 3. An integer packed into a :class:`bytes` object of length 4 (most significant octet first). >>> ipaddress.IPv4Address('192.168.0.1') IPv4Address('192.168.0.1') >>> ipaddress.IPv4Address(3232235521) IPv4Address('192.168.0.1') >>> ipaddress.IPv4Address(b'\xC0\xA...
python, official-docs, cpython, P0
Local_Trusted_Corpus
48b1218d-4721-4650-8696-e7bdd50a327b
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,700
supabase-export-v2
f7bf9271d99d428d
Conversion to Strings and Integers ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ To interoperate with networking interfaces such as the socket module, addresses must be converted to strings or integers. This is handled using the :func:`str` and :func:`int` builtin functions::
trusted_official_docs
CPython Docs
Conversion to Strings and Integers ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ To interoperate with networking interfaces such as the socket module, addresses must be converted to strings or integers. This is handled using the :func:`str` and :func:`int` builtin functions::
Conversion to Strings and Integers ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ To interoperate with networking interfaces such as the socket module, addresses must be converted to strings or integers. This is handled using the :func:`str` and :func:`int` builtin functions::
python, official-docs, cpython, P0
Local_Trusted_Corpus
49086f96-5730-4ce1-8c61-396bb83653f0
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,836
supabase-export-v2
9397fdfcee2dfaf1
sort before the interface objects. Two interface objects are first compared by their networks and, if those are the same, then by their IP addresses. Other Module Level Functions ----------------------------
trusted_official_docs
CPython Docs
sort before the interface objects. Two interface objects are first compared by their networks and, if those are the same, then by their IP addresses. Other Module Level Functions ----------------------------
sort before the interface objects. Two interface objects are first compared by their networks and, if those are the same, then by their IP addresses. Other Module Level Functions ----------------------------
python, official-docs, cpython, P0
Local_Trusted_Corpus
4cab5384-602a-4fec-b9f2-e7b82249bbec
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,678
supabase-export-v2
216a1ac922acb44a
.. attribute:: compressed The short form of the address representation, with leading zeroes in groups omitted and the longest sequence of groups consisting entirely of zeroes collapsed to a single empty group.
trusted_official_docs
CPython Docs
.. attribute:: compressed The short form of the address representation, with leading zeroes in groups omitted and the longest sequence of groups consisting entirely of zeroes collapsed to a single empty group.
.. attribute:: compressed The short form of the address representation, with leading zeroes in groups omitted and the longest sequence of groups consisting entirely of zeroes collapsed to a single empty group.
python, official-docs, cpython, P0
Local_Trusted_Corpus
506998b3-5a1e-439c-a125-6700494201b0
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,605
supabase-export-v2
27240b3a1308b1b4
than ``2**32`` will be considered to be IPv4 by default. A :exc:`ValueError` is raised if *address* does not represent a valid IPv4 or IPv6 address. One downside of these convenience functions is that the need to handle both IPv4 and IPv6 formats means that error messages provide minimal information on the precise erro...
trusted_official_docs
CPython Docs
than ``2**32`` will be considered to be IPv4 by default. A :exc:`ValueError` is raised if *address* does not represent a valid IPv4 or IPv6 address. One downside of these convenience functions is that the need to handle both IPv4 and IPv6 formats means that error messages provide minimal information on the precise erro...
than ``2**32`` will be considered to be IPv4 by default. A :exc:`ValueError` is raised if *address* does not represent a valid IPv4 or IPv6 address. One downside of these convenience functions is that the need to handle both IPv4 and IPv6 formats means that error messages provide minimal information on the precise erro...
python, official-docs, cpython, P0
Local_Trusted_Corpus
509ef0de-1005-493c-ba79-0c678c83a6c7
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,726
supabase-export-v2
48431cb922e409dc
host bits are set in the supplied address, then :exc:`ValueError` is raised. Otherwise, the host bits are masked out to determine the appropriate network address. Unless stated otherwise, all network methods accepting other network/address objects will raise :exc:`TypeError` if the argument's IP version is incompatib...
trusted_official_docs
CPython Docs
host bits are set in the supplied address, then :exc:`ValueError` is raised. Otherwise, the host bits are masked out to determine the appropriate network address. Unless stated otherwise, all network methods accepting other network/address objects will raise :exc:`TypeError` if the argument's IP version is incompatib...
host bits are set in the supplied address, then :exc:`ValueError` is raised. Otherwise, the host bits are masked out to determine the appropriate network address. Unless stated otherwise, all network methods accepting other network/address objects will raise :exc:`TypeError` if the argument's IP version is incompatib...
python, official-docs, cpython, P0
Local_Trusted_Corpus
50dccf4c-dccd-49bb-a1ad-409cf7a5faa6
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,834
supabase-export-v2
c0ad6b61ca7ac1c2
Interface objects can be compared with the usual set of logical operators. For equality comparison (``==`` and ``!=``), both the IP address and network must be the same for the objects to be equal. An interface will not compare equal to any address or network object.
trusted_official_docs
CPython Docs
Interface objects can be compared with the usual set of logical operators. For equality comparison (``==`` and ``!=``), both the IP address and network must be the same for the objects to be equal. An interface will not compare equal to any address or network object.
Interface objects can be compared with the usual set of logical operators. For equality comparison (``==`` and ``!=``), both the IP address and network must be the same for the objects to be equal. An interface will not compare equal to any address or network object.
python, official-docs, cpython, P0
Local_Trusted_Corpus
55ab7742-8f2e-4c70-a4be-c6788b6b7102
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,720
supabase-export-v2
6366d5c890eade60
with the single exception of an all-zero mask which is treated as a *net mask*. If no mask is provided, it's considered to be ``/32``. For example, the following *address* specifications are equivalent: ``192.168.1.0/24``, ``192.168.1.0/255.255.255.0`` and ``192.168.1.0/0.0.0.255``.
trusted_official_docs
CPython Docs
with the single exception of an all-zero mask which is treated as a *net mask*. If no mask is provided, it's considered to be ``/32``. For example, the following *address* specifications are equivalent: ``192.168.1.0/24``, ``192.168.1.0/255.255.255.0`` and ``192.168.1.0/0.0.0.255``.
with the single exception of an all-zero mask which is treated as a *net mask*. If no mask is provided, it's considered to be ``/32``. For example, the following *address* specifications are equivalent: ``192.168.1.0/24``, ``192.168.1.0/255.255.255.0`` and ``192.168.1.0/0.0.0.255``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
588a9e54-d1eb-40ac-ac0b-d88d9ce1ed7d
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,648
supabase-export-v2
8eef1cba616eb65f
``True`` if the address is defined as globally reachable by iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6) with the following exception: For IPv4-mapped IPv6-addresses the ``is_private`` value is determined by the semantics of the underlying IPv4 addresses and the following condition ...
trusted_official_docs
CPython Docs
``True`` if the address is defined as globally reachable by iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6) with the following exception: For IPv4-mapped IPv6-addresses the ``is_private`` value is determined by the semantics of the underlying IPv4 addresses and the following condition ...
``True`` if the address is defined as globally reachable by iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6) with the following exception: For IPv4-mapped IPv6-addresses the ``is_private`` value is determined by the semantics of the underlying IPv4 addresses and the following condition ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
590a0ef8-34ce-4f2c-a36f-0ce2e2babe31
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,802
supabase-export-v2
40189138e57cf568
>>> for addr in IPv4Network('192.0.2.0/28'): ... addr ... IPv4Address('192.0.2.0') IPv4Address('192.0.2.1') IPv4Address('192.0.2.2') IPv4Address('192.0.2.3') IPv4Address('192.0.2.4') IPv4Address('192.0.2.5') IPv4Address('192.0.2.6') IPv4Address('192.0.2.7') IPv4Address('192.0.2.8') IPv4Address('192.0.2.9') IPv4Address(...
trusted_official_docs
CPython Docs
>>> for addr in IPv4Network('192.0.2.0/28'): ... addr ... IPv4Address('192.0.2.0') IPv4Address('192.0.2.1') IPv4Address('192.0.2.2') IPv4Address('192.0.2.3') IPv4Address('192.0.2.4') IPv4Address('192.0.2.5') IPv4Address('192.0.2.6') IPv4Address('192.0.2.7') IPv4Address('192.0.2.8') IPv4Address('192.0.2.9') IPv4Address(...
>>> for addr in IPv4Network('192.0.2.0/28'): ... addr ... IPv4Address('192.0.2.0') IPv4Address('192.0.2.1') IPv4Address('192.0.2.2') IPv4Address('192.0.2.3') IPv4Address('192.0.2.4') IPv4Address('192.0.2.5') IPv4Address('192.0.2.6') IPv4Address('192.0.2.7') IPv4Address('192.0.2.8') IPv4Address('192.0.2.9') IPv4Address(...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5ea7d773-13dc-4bf5-ad57-7789f24c4ebf
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,612
supabase-export-v2
ed3f30e4df9eca78
The following constitutes a valid IPv4 address: 1. A string in decimal-dot notation, consisting of four decimal integers in the inclusive range 0--255, separated by dots (e.g. ``192.168.0.1``). Each integer represents an octet (byte) in the address. Leading zeroes are not tolerated to prevent confusion with octal no...
trusted_official_docs
CPython Docs
The following constitutes a valid IPv4 address: 1. A string in decimal-dot notation, consisting of four decimal integers in the inclusive range 0--255, separated by dots (e.g. ``192.168.0.1``). Each integer represents an octet (byte) in the address. Leading zeroes are not tolerated to prevent confusion with octal no...
The following constitutes a valid IPv4 address: 1. A string in decimal-dot notation, consisting of four decimal integers in the inclusive range 0--255, separated by dots (e.g. ``192.168.0.1``). Each integer represents an octet (byte) in the address. Leading zeroes are not tolerated to prevent confusion with octal no...
python, official-docs, cpython, P0
Local_Trusted_Corpus
619bbef4-1efe-4e75-b0d5-2509aaf391c2
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,689
supabase-export-v2
1523174433465b18
.. attribute:: ipv4_mapped For addresses that appear to be IPv4 mapped addresses (starting with ``::FFFF/96``), this property will report the embedded IPv4 address. For any other address, this property will be ``None``.
trusted_official_docs
CPython Docs
.. attribute:: ipv4_mapped For addresses that appear to be IPv4 mapped addresses (starting with ``::FFFF/96``), this property will report the embedded IPv4 address. For any other address, this property will be ``None``.
.. attribute:: ipv4_mapped For addresses that appear to be IPv4 mapped addresses (starting with ``::FFFF/96``), this property will report the embedded IPv4 address. For any other address, this property will be ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
655d99da-46a4-4d23-b463-66b25507f3d3
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,759
supabase-export-v2
2da5da1a9a653f6e
from removing the given *network* from this one. Returns an iterator of network objects. Raises :exc:`ValueError` if *network* is not completely contained in this network. >>> n1 = ip_network('192.0.2.0/28') >>> n2 = ip_network('192.0.2.1/32') >>> list(n1.address_exclude(n2)) #doctest: +NORMALIZE_WHITESPACE [IPv4Net...
trusted_official_docs
CPython Docs
from removing the given *network* from this one. Returns an iterator of network objects. Raises :exc:`ValueError` if *network* is not completely contained in this network. >>> n1 = ip_network('192.0.2.0/28') >>> n2 = ip_network('192.0.2.1/32') >>> list(n1.address_exclude(n2)) #doctest: +NORMALIZE_WHITESPACE [IPv4Net...
from removing the given *network* from this one. Returns an iterator of network objects. Raises :exc:`ValueError` if *network* is not completely contained in this network. >>> n1 = ip_network('192.0.2.0/28') >>> n2 = ip_network('192.0.2.1/32') >>> list(n1.address_exclude(n2)) #doctest: +NORMALIZE_WHITESPACE [IPv4Net...
python, official-docs, cpython, P0
Local_Trusted_Corpus
69df9400-5d99-49a9-8dbf-5a5e31190b9d
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,754
supabase-export-v2
ff8014d1130ecec2
and network broadcast address are also included in the result. Networks with a mask of 32 will return a list containing the single host address. >>> list(ip_network('192.0.2.0/29').hosts()) #doctest: +NORMALIZE_WHITESPACE [IPv4Address('192.0.2.1'), IPv4Address('192.0.2.2'), IPv4Address('192.0.2.3'), IPv4Address('192....
trusted_official_docs
CPython Docs
and network broadcast address are also included in the result. Networks with a mask of 32 will return a list containing the single host address. >>> list(ip_network('192.0.2.0/29').hosts()) #doctest: +NORMALIZE_WHITESPACE [IPv4Address('192.0.2.1'), IPv4Address('192.0.2.2'), IPv4Address('192.0.2.3'), IPv4Address('192....
and network broadcast address are also included in the result. Networks with a mask of 32 will return a list containing the single host address. >>> list(ip_network('192.0.2.0/29').hosts()) #doctest: +NORMALIZE_WHITESPACE [IPv4Address('192.0.2.1'), IPv4Address('192.0.2.2'), IPv4Address('192.0.2.3'), IPv4Address('192....
python, official-docs, cpython, P0
Local_Trusted_Corpus
6a813a9f-9a2d-4d0d-b721-edff3b353005
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,591
supabase-export-v2
5b755df08430a875
:mod:`!ipaddress` provides the capabilities to create, manipulate and operate on IPv4 and IPv6 addresses and networks. The functions and classes in this module make it straightforward to handle various tasks related to IP addresses, including checking whether or not two hosts are on the same subnet, iterating over all ...
trusted_official_docs
CPython Docs
:mod:`!ipaddress` provides the capabilities to create, manipulate and operate on IPv4 and IPv6 addresses and networks. The functions and classes in this module make it straightforward to handle various tasks related to IP addresses, including checking whether or not two hosts are on the same subnet, iterating over all ...
:mod:`!ipaddress` provides the capabilities to create, manipulate and operate on IPv4 and IPv6 addresses and networks. The functions and classes in this module make it straightforward to handle various tasks related to IP addresses, including checking whether or not two hosts are on the same subnet, iterating over all ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6af541cc-33a8-4cda-ab5f-995888a2f9f1
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,852
supabase-export-v2
feab77d3cbc2cb3c
IPv4Address('192.0.2.0') <= IPv4Network('192.0.2.0/24') doesn't make sense. There are some times however, where you may wish to have :mod:`!ipaddress` sort these anyway. If you need to do this, you can use this function as the *key* argument to :func:`sorted`.
trusted_official_docs
CPython Docs
IPv4Address('192.0.2.0') <= IPv4Network('192.0.2.0/24') doesn't make sense. There are some times however, where you may wish to have :mod:`!ipaddress` sort these anyway. If you need to do this, you can use this function as the *key* argument to :func:`sorted`.
IPv4Address('192.0.2.0') <= IPv4Network('192.0.2.0/24') doesn't make sense. There are some times however, where you may wish to have :mod:`!ipaddress` sort these anyway. If you need to do this, you can use this function as the *key* argument to :func:`sorted`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6cd7a21d-db7e-4317-ad02-beb8847d388c
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,687
supabase-export-v2
07537424f8887223
.. attribute:: is_site_local ``True`` if the address is reserved for site-local usage. Note that the site-local address space has been deprecated by :RFC:`3879`. Use :attr:`~IPv4Address.is_private` to test if this address is in the space of unique local addresses as defined by :RFC:`4193`.
trusted_official_docs
CPython Docs
.. attribute:: is_site_local ``True`` if the address is reserved for site-local usage. Note that the site-local address space has been deprecated by :RFC:`3879`. Use :attr:`~IPv4Address.is_private` to test if this address is in the space of unique local addresses as defined by :RFC:`4193`.
.. attribute:: is_site_local ``True`` if the address is reserved for site-local usage. Note that the site-local address space has been deprecated by :RFC:`3879`. Use :attr:`~IPv4Address.is_private` to test if this address is in the space of unique local addresses as defined by :RFC:`4193`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
72669669-c50f-40d4-973a-bf67d078b66d
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,801
supabase-export-v2
e499a262f9886764
all the addresses belonging to the network. For iteration, *all* hosts are returned, including unusable hosts (for usable hosts, use the :meth:`~IPv4Network.hosts` method). An example:: >>> for addr in IPv4Network('192.0.2.0/28'): ... addr ... IPv4Address('192.0.2.0') IPv4Address('192.0.2.1') IPv4Address('192.0.2.2...
trusted_official_docs
CPython Docs
all the addresses belonging to the network. For iteration, *all* hosts are returned, including unusable hosts (for usable hosts, use the :meth:`~IPv4Network.hosts` method). An example:: >>> for addr in IPv4Network('192.0.2.0/28'): ... addr ... IPv4Address('192.0.2.0') IPv4Address('192.0.2.1') IPv4Address('192.0.2.2...
all the addresses belonging to the network. For iteration, *all* hosts are returned, including unusable hosts (for usable hosts, use the :meth:`~IPv4Network.hosts` method). An example:: >>> for addr in IPv4Network('192.0.2.0/28'): ... addr ... IPv4Address('192.0.2.0') IPv4Address('192.0.2.1') IPv4Address('192.0.2.2...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7360bd44-0b69-4b55-a95f-5235dc5c5d7a
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,784
supabase-export-v2
4e1fd462c5af4025
3. An integer packed into a :class:`bytes` object of length 16, big-endian. The interpretation is similar to an integer *address*. 4. A two-tuple of an address description and a netmask, where the address description is either a string, a 128-bits integer, a 16-bytes packed integer, or an existing :class:`IPv6Address...
trusted_official_docs
CPython Docs
3. An integer packed into a :class:`bytes` object of length 16, big-endian. The interpretation is similar to an integer *address*. 4. A two-tuple of an address description and a netmask, where the address description is either a string, a 128-bits integer, a 16-bytes packed integer, or an existing :class:`IPv6Address...
3. An integer packed into a :class:`bytes` object of length 16, big-endian. The interpretation is similar to an integer *address*. 4. A two-tuple of an address description and a netmask, where the address description is either a string, a 128-bits integer, a 16-bytes packed integer, or an existing :class:`IPv6Address...
python, official-docs, cpython, P0
Local_Trusted_Corpus
76b8353d-3e65-4c79-978d-89c9e8149097
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,725
supabase-export-v2
aaca92fe14ca4a77
:exc:`AddressValueError` is raised if *address* is not a valid IPv4 address. A :exc:`NetmaskValueError` is raised if the mask is not valid for an IPv4 address. If *strict* is ``True`` and host bits are set in the supplied address, then :exc:`ValueError` is raised. Otherwise, the host bits are masked out to determine ...
trusted_official_docs
CPython Docs
:exc:`AddressValueError` is raised if *address* is not a valid IPv4 address. A :exc:`NetmaskValueError` is raised if the mask is not valid for an IPv4 address. If *strict* is ``True`` and host bits are set in the supplied address, then :exc:`ValueError` is raised. Otherwise, the host bits are masked out to determine ...
:exc:`AddressValueError` is raised if *address* is not a valid IPv4 address. A :exc:`NetmaskValueError` is raised if the mask is not valid for an IPv4 address. If *strict* is ``True`` and host bits are set in the supplied address, then :exc:`ValueError` is raised. Otherwise, the host bits are masked out to determine ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
76fe1f0f-e9b9-41ae-833b-f7c9cf59e2cd
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,724
supabase-export-v2
0cf30d3c1822fd33
existing :class:`IPv4Address` object; and the netmask is either an integer representing the prefix length (e.g. ``24``) or a string representing the prefix mask (e.g. ``255.255.255.0``). An :exc:`AddressValueError` is raised if *address* is not a valid IPv4 address. A :exc:`NetmaskValueError` is raised if the mask is ...
trusted_official_docs
CPython Docs
existing :class:`IPv4Address` object; and the netmask is either an integer representing the prefix length (e.g. ``24``) or a string representing the prefix mask (e.g. ``255.255.255.0``). An :exc:`AddressValueError` is raised if *address* is not a valid IPv4 address. A :exc:`NetmaskValueError` is raised if the mask is ...
existing :class:`IPv4Address` object; and the netmask is either an integer representing the prefix length (e.g. ``24``) or a string representing the prefix mask (e.g. ``255.255.255.0``). An :exc:`AddressValueError` is raised if *address* is not a valid IPv4 address. A :exc:`NetmaskValueError` is raised if the mask is ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7810ed5a-4a0a-46cb-b68c-10e5617b84aa
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,840
supabase-export-v2
270110c69b13ed76
integer representation of an IPv4 IP address. A :exc:`ValueError` is raised if the integer is negative or too large to be an IPv4 IP address. >>> ipaddress.ip_address(3221225985) IPv4Address('192.0.2.1') >>> ipaddress.v4_int_to_packed(3221225985) b'\xc0\x00\x02\x01'
trusted_official_docs
CPython Docs
integer representation of an IPv4 IP address. A :exc:`ValueError` is raised if the integer is negative or too large to be an IPv4 IP address. >>> ipaddress.ip_address(3221225985) IPv4Address('192.0.2.1') >>> ipaddress.v4_int_to_packed(3221225985) b'\xc0\x00\x02\x01'
integer representation of an IPv4 IP address. A :exc:`ValueError` is raised if the integer is negative or too large to be an IPv4 IP address. >>> ipaddress.ip_address(3221225985) IPv4Address('192.0.2.1') >>> ipaddress.v4_int_to_packed(3221225985) b'\xc0\x00\x02\x01'
python, official-docs, cpython, P0
Local_Trusted_Corpus
7aaf1d41-c7e3-4b93-b228-b21e8d4e0c78
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,848
supabase-export-v2
f94b1a4bd7121c53
the collapsed :class:`IPv4Network` or :class:`IPv6Network` objects. *addresses* is an :term:`iterable` of :class:`IPv4Network` or :class:`IPv6Network` objects. A :exc:`TypeError` is raised if *addresses* contains mixed version objects. >>> [ipaddr for ipaddr in ... ipaddress.collapse_addresses([ipaddress.IPv4Network('...
trusted_official_docs
CPython Docs
the collapsed :class:`IPv4Network` or :class:`IPv6Network` objects. *addresses* is an :term:`iterable` of :class:`IPv4Network` or :class:`IPv6Network` objects. A :exc:`TypeError` is raised if *addresses* contains mixed version objects. >>> [ipaddr for ipaddr in ... ipaddress.collapse_addresses([ipaddress.IPv4Network('...
the collapsed :class:`IPv4Network` or :class:`IPv6Network` objects. *addresses* is an :term:`iterable` of :class:`IPv4Network` or :class:`IPv6Network` objects. A :exc:`TypeError` is raised if *addresses* contains mixed version objects. >>> [ipaddr for ipaddr in ... ipaddress.collapse_addresses([ipaddress.IPv4Network('...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7ca904f8-8d89-4eb5-ae9c-42aea368b398
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,712
supabase-export-v2
13cac1e1191e3193
IP Network definitions ---------------------- The :class:`IPv4Network` and :class:`IPv6Network` objects provide a mechanism for defining and inspecting IP network definitions. A network definition consists of a *mask* and a *network address*, and as such defines a range of IP addresses that equal the network address wh...
trusted_official_docs
CPython Docs
IP Network definitions ---------------------- The :class:`IPv4Network` and :class:`IPv6Network` objects provide a mechanism for defining and inspecting IP network definitions. A network definition consists of a *mask* and a *network address*, and as such defines a range of IP addresses that equal the network address wh...
IP Network definitions ---------------------- The :class:`IPv4Network` and :class:`IPv6Network` objects provide a mechanism for defining and inspecting IP network definitions. A network definition consists of a *mask* and a *network address*, and as such defines a range of IP addresses that equal the network address wh...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e6eaa12-5ebe-4f5e-b4ef-1de897878ace
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,675
supabase-export-v2
457d1812f43c683a
(longhand) notation. The string can also be *compressed* (shorthand notation) by various means. See :RFC:`4291` for details. For example, ``"0000:0000:0000:0000:0000:0abc:0007:0def"`` can be compressed to ``"::abc:7:def"``. Optionally, the string may also have a scope zone ID, expressed with a suffix ``%scope_id``. If...
trusted_official_docs
CPython Docs
(longhand) notation. The string can also be *compressed* (shorthand notation) by various means. See :RFC:`4291` for details. For example, ``"0000:0000:0000:0000:0000:0abc:0007:0def"`` can be compressed to ``"::abc:7:def"``. Optionally, the string may also have a scope zone ID, expressed with a suffix ``%scope_id``. If...
(longhand) notation. The string can also be *compressed* (shorthand notation) by various means. See :RFC:`4291` for details. For example, ``"0000:0000:0000:0000:0000:0abc:0007:0def"`` can be compressed to ``"::abc:7:def"``. Optionally, the string may also have a scope zone ID, expressed with a suffix ``%scope_id``. If...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e7d2709-d616-4901-bfa7-567e64033fe2
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,631
supabase-export-v2
cc98718fe650f566
.. attribute:: packed The binary representation of this address - a :class:`bytes` object of the appropriate length (most significant octet first). This is 4 bytes for IPv4 and 16 bytes for IPv6.
trusted_official_docs
CPython Docs
.. attribute:: packed The binary representation of this address - a :class:`bytes` object of the appropriate length (most significant octet first). This is 4 bytes for IPv4 and 16 bytes for IPv6.
.. attribute:: packed The binary representation of this address - a :class:`bytes` object of the appropriate length (most significant octet first). This is 4 bytes for IPv4 and 16 bytes for IPv6.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7fd4463b-3905-40c7-9b37-e92bb345b2c5
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,713
supabase-export-v2
a2ce11a3cda57af6
For example, a network definition with the mask ``255.255.255.0`` and the network address ``192.168.1.0`` consists of IP addresses in the inclusive range ``192.168.1.0`` to ``192.168.1.255``. Prefix, net mask and host mask ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trusted_official_docs
CPython Docs
For example, a network definition with the mask ``255.255.255.0`` and the network address ``192.168.1.0`` consists of IP addresses in the inclusive range ``192.168.1.0`` to ``192.168.1.255``. Prefix, net mask and host mask ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For example, a network definition with the mask ``255.255.255.0`` and the network address ``192.168.1.0`` consists of IP addresses in the inclusive range ``192.168.1.0`` to ``192.168.1.255``. Prefix, net mask and host mask ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python, official-docs, cpython, P0
Local_Trusted_Corpus
8010d3ff-7e21-451d-92c1-1846ad9dcad5
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,691
supabase-export-v2
022f86e10e86bf8f
.. attribute:: scope_id For scoped addresses as defined by :RFC:`4007`, this property identifies the particular zone of the address's scope that the address belongs to, as a string. When no scope zone is specified, this property will be ``None``.
trusted_official_docs
CPython Docs
.. attribute:: scope_id For scoped addresses as defined by :RFC:`4007`, this property identifies the particular zone of the address's scope that the address belongs to, as a string. When no scope zone is specified, this property will be ``None``.
.. attribute:: scope_id For scoped addresses as defined by :RFC:`4007`, this property identifies the particular zone of the address's scope that the address belongs to, as a string. When no scope zone is specified, this property will be ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
82b8fc4e-5f9d-4e3a-810f-560e93d50473
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,839
supabase-export-v2
8e470102526986fb
.. function:: v4_int_to_packed(address) Represent an address as 4 packed bytes in network (big-endian) order. *address* is an integer representation of an IPv4 IP address. A :exc:`ValueError` is raised if the integer is negative or too large to be an IPv4 IP address.
trusted_official_docs
CPython Docs
.. function:: v4_int_to_packed(address) Represent an address as 4 packed bytes in network (big-endian) order. *address* is an integer representation of an IPv4 IP address. A :exc:`ValueError` is raised if the integer is negative or too large to be an IPv4 IP address.
.. function:: v4_int_to_packed(address) Represent an address as 4 packed bytes in network (big-endian) order. *address* is an integer representation of an IPv4 IP address. A :exc:`ValueError` is raised if the integer is negative or too large to be an IPv4 IP address.
python, official-docs, cpython, P0
Local_Trusted_Corpus
85b2c2f7-bb06-49ed-ba79-7dc40154d249
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,786
supabase-export-v2
00b3756e40ec7a28
:exc:`AddressValueError` is raised if *address* is not a valid IPv6 address. A :exc:`NetmaskValueError` is raised if the mask is not valid for an IPv6 address. If *strict* is ``True`` and host bits are set in the supplied address, then :exc:`ValueError` is raised. Otherwise, the host bits are masked out to determine ...
trusted_official_docs
CPython Docs
:exc:`AddressValueError` is raised if *address* is not a valid IPv6 address. A :exc:`NetmaskValueError` is raised if the mask is not valid for an IPv6 address. If *strict* is ``True`` and host bits are set in the supplied address, then :exc:`ValueError` is raised. Otherwise, the host bits are masked out to determine ...
:exc:`AddressValueError` is raised if *address* is not a valid IPv6 address. A :exc:`NetmaskValueError` is raised if the mask is not valid for an IPv6 address. If *strict* is ``True`` and host bits are set in the supplied address, then :exc:`ValueError` is raised. Otherwise, the host bits are masked out to determine ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
890598f5-f777-4a6c-bf48-51b1759074a3
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,599
supabase-export-v2
18469881b9d94948
than ``2**32`` will be considered to be IPv4 by default. A :exc:`ValueError` is raised if *address* does not represent a valid IPv4 or IPv6 address. >>> ipaddress.ip_address('192.168.0.1') IPv4Address('192.168.0.1') >>> ipaddress.ip_address('2001:db8::') IPv6Address('2001:db8::')
trusted_official_docs
CPython Docs
than ``2**32`` will be considered to be IPv4 by default. A :exc:`ValueError` is raised if *address* does not represent a valid IPv4 or IPv6 address. >>> ipaddress.ip_address('192.168.0.1') IPv4Address('192.168.0.1') >>> ipaddress.ip_address('2001:db8::') IPv6Address('2001:db8::')
than ``2**32`` will be considered to be IPv4 by default. A :exc:`ValueError` is raised if *address* does not represent a valid IPv4 or IPv6 address. >>> ipaddress.ip_address('192.168.0.1') IPv4Address('192.168.0.1') >>> ipaddress.ip_address('2001:db8::') IPv6Address('2001:db8::')
python, official-docs, cpython, P0
Local_Trusted_Corpus
8d1c5613-1ee8-428c-8a5a-5a31fa8c2399
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,669
supabase-export-v2
b790bec9a336456a
IPv6. For binary and hexadecimal representations, the form specifier ``'#'`` and the grouping option ``'_'`` are available. ``__format__`` is used by ``format``, ``str.format`` and f-strings. >>> format(ipaddress.IPv4Address('192.168.0.1')) '192.168.0.1' >>> '{:#b}'.format(ipaddress.IPv4Address('192.168.0.1')) '0b11...
trusted_official_docs
CPython Docs
IPv6. For binary and hexadecimal representations, the form specifier ``'#'`` and the grouping option ``'_'`` are available. ``__format__`` is used by ``format``, ``str.format`` and f-strings. >>> format(ipaddress.IPv4Address('192.168.0.1')) '192.168.0.1' >>> '{:#b}'.format(ipaddress.IPv4Address('192.168.0.1')) '0b11...
IPv6. For binary and hexadecimal representations, the form specifier ``'#'`` and the grouping option ``'_'`` are available. ``__format__`` is used by ``format``, ``str.format`` and f-strings. >>> format(ipaddress.IPv4Address('192.168.0.1')) '192.168.0.1' >>> '{:#b}'.format(ipaddress.IPv4Address('192.168.0.1')) '0b11...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8f6b6ba4-eedf-49e6-81f4-048181c3ff0f
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,721
supabase-export-v2
569cdf5c51f47929
For example, the following *address* specifications are equivalent: ``192.168.1.0/24``, ``192.168.1.0/255.255.255.0`` and ``192.168.1.0/0.0.0.255``. 2. An integer that fits into 32 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/32``.
trusted_official_docs
CPython Docs
For example, the following *address* specifications are equivalent: ``192.168.1.0/24``, ``192.168.1.0/255.255.255.0`` and ``192.168.1.0/0.0.0.255``. 2. An integer that fits into 32 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/32``.
For example, the following *address* specifications are equivalent: ``192.168.1.0/24``, ``192.168.1.0/255.255.255.0`` and ``192.168.1.0/0.0.0.255``. 2. An integer that fits into 32 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/32``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a5fcf94-f0b9-41b0-b819-146040cd4aa8
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,722
supabase-export-v2
8f0e3507a261424b
An integer that fits into 32 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/32``. 3. An integer packed into a :class:`bytes` object of length 4, big-endian. The interpretation is similar to an integer *address*.
trusted_official_docs
CPython Docs
An integer that fits into 32 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/32``. 3. An integer packed into a :class:`bytes` object of length 4, big-endian. The interpretation is similar to an integer *address*.
An integer that fits into 32 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/32``. 3. An integer packed into a :class:`bytes` object of length 4, big-endian. The interpretation is similar to an integer *address*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a0bb1cc7-3434-48e4-8b6f-791720f9ebf9
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,845
supabase-export-v2
d1f8c384f57444f5
of the same version. A :exc:`ValueError` is raised if *last* is not greater than *first* or if *first* address version is not 4 or 6. >>> [ipaddr for ipaddr in ipaddress.summarize_address_range( ... ipaddress.IPv4Address('192.0.2.0'), ... ipaddress.IPv4Address('192.0.2.130'))] [IPv4Network('192.0.2.0/25'), IPv4Netwo...
trusted_official_docs
CPython Docs
of the same version. A :exc:`ValueError` is raised if *last* is not greater than *first* or if *first* address version is not 4 or 6. >>> [ipaddr for ipaddr in ipaddress.summarize_address_range( ... ipaddress.IPv4Address('192.0.2.0'), ... ipaddress.IPv4Address('192.0.2.130'))] [IPv4Network('192.0.2.0/25'), IPv4Netwo...
of the same version. A :exc:`ValueError` is raised if *last* is not greater than *first* or if *first* address version is not 4 or 6. >>> [ipaddr for ipaddr in ipaddress.summarize_address_range( ... ipaddress.IPv4Address('192.0.2.0'), ... ipaddress.IPv4Address('192.0.2.130'))] [IPv4Network('192.0.2.0/25'), IPv4Netwo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ab63e518-5b98-4b04-8ebc-ae0459d2977e
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,800
supabase-export-v2
1901a3cc5d9af59c
Iteration """"""""" Network objects can be iterated to list all the addresses belonging to the network. For iteration, *all* hosts are returned, including unusable hosts (for usable hosts, use the :meth:`~IPv4Network.hosts` method). An example::
trusted_official_docs
CPython Docs
Iteration """"""""" Network objects can be iterated to list all the addresses belonging to the network. For iteration, *all* hosts are returned, including unusable hosts (for usable hosts, use the :meth:`~IPv4Network.hosts` method). An example::
Iteration """"""""" Network objects can be iterated to list all the addresses belonging to the network. For iteration, *all* hosts are returned, including unusable hosts (for usable hosts, use the :meth:`~IPv4Network.hosts` method). An example::
python, official-docs, cpython, P0
Local_Trusted_Corpus
ab6fd861-081b-426f-9cde-746a0c102ee1
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,658
supabase-export-v2
5f92e710cd2feb55
.. note:: For IPv4, ``is_reserved`` is not related to the address block value of the ``Reserved-by-Protocol`` column in iana-ipv4-special-registry_. .. caution:: For IPv6, ``fec0::/10`` a former Site-Local scoped address prefix is currently excluded from that list (see :attr:`~IPv6Address.is_site_local` & :rfc:`3879`)...
trusted_official_docs
CPython Docs
.. note:: For IPv4, ``is_reserved`` is not related to the address block value of the ``Reserved-by-Protocol`` column in iana-ipv4-special-registry_. .. caution:: For IPv6, ``fec0::/10`` a former Site-Local scoped address prefix is currently excluded from that list (see :attr:`~IPv6Address.is_site_local` & :rfc:`3879`)...
.. note:: For IPv4, ``is_reserved`` is not related to the address block value of the ``Reserved-by-Protocol`` column in iana-ipv4-special-registry_. .. caution:: For IPv6, ``fec0::/10`` a former Site-Local scoped address prefix is currently excluded from that list (see :attr:`~IPv6Address.is_site_local` & :rfc:`3879`)...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b10054c9-18c7-4c0f-a6b6-1c9036568e41
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,674
supabase-export-v2
d8c58f70f911930b
The following constitutes a valid IPv6 address: 1. A string consisting of eight groups of four hexadecimal digits, each group representing 16 bits. The groups are separated by colons. This describes an *exploded* (longhand) notation. The string can also be *compressed* (shorthand notation) by various means. See :RFC...
trusted_official_docs
CPython Docs
The following constitutes a valid IPv6 address: 1. A string consisting of eight groups of four hexadecimal digits, each group representing 16 bits. The groups are separated by colons. This describes an *exploded* (longhand) notation. The string can also be *compressed* (shorthand notation) by various means. See :RFC...
The following constitutes a valid IPv6 address: 1. A string consisting of eight groups of four hexadecimal digits, each group representing 16 bits. The groups are separated by colons. This describes an *exploded* (longhand) notation. The string can also be *compressed* (shorthand notation) by various means. See :RFC...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b208a66d-00e9-4748-b337-67c42c0420ae
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,679
supabase-export-v2
415682a3586b701d
the address representation, with leading zeroes in groups omitted and the longest sequence of groups consisting entirely of zeroes collapsed to a single empty group. This is also the value returned by ``str(addr)`` for IPv6 addresses.
trusted_official_docs
CPython Docs
the address representation, with leading zeroes in groups omitted and the longest sequence of groups consisting entirely of zeroes collapsed to a single empty group. This is also the value returned by ``str(addr)`` for IPv6 addresses.
the address representation, with leading zeroes in groups omitted and the longest sequence of groups consisting entirely of zeroes collapsed to a single empty group. This is also the value returned by ``str(addr)`` for IPv6 addresses.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b2ad00f1-ff98-4461-9507-430e3c6646f2
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,608
supabase-export-v2
851960d99c2a81d4
Address objects ^^^^^^^^^^^^^^^ The :class:`IPv4Address` and :class:`IPv6Address` objects share a lot of common attributes. Some attributes that are only meaningful for IPv6 addresses are also implemented by :class:`IPv4Address` objects, in order to make it easier to write code that handles both IP versions correctly. ...
trusted_official_docs
CPython Docs
Address objects ^^^^^^^^^^^^^^^ The :class:`IPv4Address` and :class:`IPv6Address` objects share a lot of common attributes. Some attributes that are only meaningful for IPv6 addresses are also implemented by :class:`IPv4Address` objects, in order to make it easier to write code that handles both IP versions correctly. ...
Address objects ^^^^^^^^^^^^^^^ The :class:`IPv4Address` and :class:`IPv6Address` objects share a lot of common attributes. Some attributes that are only meaningful for IPv6 addresses are also implemented by :class:`IPv4Address` objects, in order to make it easier to write code that handles both IP versions correctly. ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b35512b3-6001-4e20-adfe-2d4eb5b7a33a
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,656
supabase-export-v2
55698e6eaca4cfc8
.. attribute:: is_reserved ``True`` if the address is noted as reserved by the IETF. For IPv4, this is only ``240.0.0.0/4``, the ``Reserved`` address block. For IPv6, this is all addresses `allocated <iana-ipv6-address-space_>`__ as ``Reserved by IETF`` for future use.
trusted_official_docs
CPython Docs
.. attribute:: is_reserved ``True`` if the address is noted as reserved by the IETF. For IPv4, this is only ``240.0.0.0/4``, the ``Reserved`` address block. For IPv6, this is all addresses `allocated <iana-ipv6-address-space_>`__ as ``Reserved by IETF`` for future use.
.. attribute:: is_reserved ``True`` if the address is noted as reserved by the IETF. For IPv4, this is only ``240.0.0.0/4``, the ``Reserved`` address block. For IPv6, this is all addresses `allocated <iana-ipv6-address-space_>`__ as ``Reserved by IETF`` for future use.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b635cedc-f56f-415f-8c7d-a55df9a29105
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,789
supabase-export-v2
8dbfb48db913a220
Added the two-tuple form for the *address* constructor parameter. .. attribute:: version .. attribute:: max_prefixlen .. attribute:: is_multicast .. attribute:: is_private .. attribute:: is_unspecified .. attribute:: is_reserved .. attribute:: is_loopback .. attribute:: is_link_local .. attribute:: network_addr...
trusted_official_docs
CPython Docs
Added the two-tuple form for the *address* constructor parameter. .. attribute:: version .. attribute:: max_prefixlen .. attribute:: is_multicast .. attribute:: is_private .. attribute:: is_unspecified .. attribute:: is_reserved .. attribute:: is_loopback .. attribute:: is_link_local .. attribute:: network_addr...
Added the two-tuple form for the *address* constructor parameter. .. attribute:: version .. attribute:: max_prefixlen .. attribute:: is_multicast .. attribute:: is_private .. attribute:: is_unspecified .. attribute:: is_reserved .. attribute:: is_loopback .. attribute:: is_link_local .. attribute:: network_addr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b87838c3-d03e-44b5-bfc1-f1597128bfc7
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,683
supabase-export-v2
272dab489ec77184
For the following attributes and methods, see the corresponding documentation of the :class:`IPv4Address` class: .. attribute:: packed .. attribute:: reverse_pointer .. attribute:: version .. attribute:: max_prefixlen .. attribute:: is_multicast .. attribute:: is_private .. attribute:: is_global
trusted_official_docs
CPython Docs
For the following attributes and methods, see the corresponding documentation of the :class:`IPv4Address` class: .. attribute:: packed .. attribute:: reverse_pointer .. attribute:: version .. attribute:: max_prefixlen .. attribute:: is_multicast .. attribute:: is_private .. attribute:: is_global
For the following attributes and methods, see the corresponding documentation of the :class:`IPv4Address` class: .. attribute:: packed .. attribute:: reverse_pointer .. attribute:: version .. attribute:: max_prefixlen .. attribute:: is_multicast .. attribute:: is_private .. attribute:: is_global
python, official-docs, cpython, P0
Local_Trusted_Corpus
ba8f12d0-760a-44f0-9d21-7e5e353dcdd4
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,809
supabase-export-v2
7ea03d8504edffbc
Construct an IPv4 interface. The meaning of *address* is as in the constructor of :class:`IPv4Network`, except that arbitrary host addresses are always accepted. :class:`IPv4Interface` is a subclass of :class:`IPv4Address`, so it inherits all the attributes from that class. In addition, the following attributes are a...
trusted_official_docs
CPython Docs
Construct an IPv4 interface. The meaning of *address* is as in the constructor of :class:`IPv4Network`, except that arbitrary host addresses are always accepted. :class:`IPv4Interface` is a subclass of :class:`IPv4Address`, so it inherits all the attributes from that class. In addition, the following attributes are a...
Construct an IPv4 interface. The meaning of *address* is as in the constructor of :class:`IPv4Network`, except that arbitrary host addresses are always accepted. :class:`IPv4Interface` is a subclass of :class:`IPv4Address`, so it inherits all the attributes from that class. In addition, the following attributes are a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bc1b6d27-1820-439a-9695-7c9e5dc1e935
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,764
supabase-export-v2
4b9b151ec2cc0422
.. method:: supernet(prefixlen_diff=1, new_prefix=None) The supernet containing this network definition, depending on the argument values. *prefixlen_diff* is the amount our prefix length should be decreased by. *new_prefix* is the desired new prefix of the supernet; it must be smaller than our prefix. One and only ...
trusted_official_docs
CPython Docs
.. method:: supernet(prefixlen_diff=1, new_prefix=None) The supernet containing this network definition, depending on the argument values. *prefixlen_diff* is the amount our prefix length should be decreased by. *new_prefix* is the desired new prefix of the supernet; it must be smaller than our prefix. One and only ...
.. method:: supernet(prefixlen_diff=1, new_prefix=None) The supernet containing this network definition, depending on the argument values. *prefixlen_diff* is the amount our prefix length should be decreased by. *new_prefix* is the desired new prefix of the supernet; it must be smaller than our prefix. One and only ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bfe9de73-cd91-45d2-9a04-cbd775cf34cf
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,716
supabase-export-v2
856ff7ca672c4a8f
Network objects ^^^^^^^^^^^^^^^ All attributes implemented by address objects are implemented by network objects as well. In addition, network objects implement additional attributes. All of these are common between :class:`IPv4Network` and :class:`IPv6Network`, so to avoid duplication they are only documented for :cla...
trusted_official_docs
CPython Docs
Network objects ^^^^^^^^^^^^^^^ All attributes implemented by address objects are implemented by network objects as well. In addition, network objects implement additional attributes. All of these are common between :class:`IPv4Network` and :class:`IPv6Network`, so to avoid duplication they are only documented for :cla...
Network objects ^^^^^^^^^^^^^^^ All attributes implemented by address objects are implemented by network objects as well. In addition, network objects implement additional attributes. All of these are common between :class:`IPv4Network` and :class:`IPv6Network`, so to avoid duplication they are only documented for :cla...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cb1a9a4b-d404-4e79-81f4-6a47e8ac3594
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,762
supabase-export-v2
dc9ff40b48ab623b
subnets; it must be larger than our prefix. One and only one of *prefixlen_diff* and *new_prefix* must be set. Returns an iterator of network objects. >>> list(ip_network('192.0.2.0/24').subnets()) [IPv4Network('192.0.2.0/25'), IPv4Network('192.0.2.128/25')] >>> list(ip_network('192.0.2.0/24').subnets(prefixlen_diff=...
trusted_official_docs
CPython Docs
subnets; it must be larger than our prefix. One and only one of *prefixlen_diff* and *new_prefix* must be set. Returns an iterator of network objects. >>> list(ip_network('192.0.2.0/24').subnets()) [IPv4Network('192.0.2.0/25'), IPv4Network('192.0.2.128/25')] >>> list(ip_network('192.0.2.0/24').subnets(prefixlen_diff=...
subnets; it must be larger than our prefix. One and only one of *prefixlen_diff* and *new_prefix* must be set. Returns an iterator of network objects. >>> list(ip_network('192.0.2.0/24').subnets()) [IPv4Network('192.0.2.0/25'), IPv4Network('192.0.2.128/25')] >>> list(ip_network('192.0.2.0/24').subnets(prefixlen_diff=...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cc4aeee7-24de-4935-b38d-f97284782f6d
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,827
supabase-export-v2
8d7d405402435e04
Construct an IPv6 interface. The meaning of *address* is as in the constructor of :class:`IPv6Network`, except that arbitrary host addresses are always accepted. :class:`IPv6Interface` is a subclass of :class:`IPv6Address`, so it inherits all the attributes from that class. In addition, the following attributes are a...
trusted_official_docs
CPython Docs
Construct an IPv6 interface. The meaning of *address* is as in the constructor of :class:`IPv6Network`, except that arbitrary host addresses are always accepted. :class:`IPv6Interface` is a subclass of :class:`IPv6Address`, so it inherits all the attributes from that class. In addition, the following attributes are a...
Construct an IPv6 interface. The meaning of *address* is as in the constructor of :class:`IPv6Network`, except that arbitrary host addresses are always accepted. :class:`IPv6Interface` is a subclass of :class:`IPv6Address`, so it inherits all the attributes from that class. In addition, the following attributes are a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ce93e0a9-0582-4819-9485-b93d2ac304fd
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,844
supabase-export-v2
0331ffe38671009b
.. function:: summarize_address_range(first, last) Return an iterator of the summarized network range given the first and last IP addresses. *first* is the first :class:`IPv4Address` or :class:`IPv6Address` in the range and *last* is the last :class:`IPv4Address` or :class:`IPv6Address` in the range. A :exc:`TypeErr...
trusted_official_docs
CPython Docs
.. function:: summarize_address_range(first, last) Return an iterator of the summarized network range given the first and last IP addresses. *first* is the first :class:`IPv4Address` or :class:`IPv6Address` in the range and *last* is the last :class:`IPv4Address` or :class:`IPv6Address` in the range. A :exc:`TypeErr...
.. function:: summarize_address_range(first, last) Return an iterator of the summarized network range given the first and last IP addresses. *first* is the first :class:`IPv4Address` or :class:`IPv6Address` in the range and *last* is the last :class:`IPv4Address` or :class:`IPv6Address` in the range. A :exc:`TypeErr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cf33b1c5-0b84-4251-a78e-31edfd774ac0
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,761
supabase-export-v2
cc0e25e746e3f5c8
.. method:: subnets(prefixlen_diff=1, new_prefix=None) The subnets that join to make the current network definition, depending on the argument values. *prefixlen_diff* is the amount our prefix length should be increased by. *new_prefix* is the desired new prefix of the subnets; it must be larger than our prefix. One...
trusted_official_docs
CPython Docs
.. method:: subnets(prefixlen_diff=1, new_prefix=None) The subnets that join to make the current network definition, depending on the argument values. *prefixlen_diff* is the amount our prefix length should be increased by. *new_prefix* is the desired new prefix of the subnets; it must be larger than our prefix. One...
.. method:: subnets(prefixlen_diff=1, new_prefix=None) The subnets that join to make the current network definition, depending on the argument values. *prefixlen_diff* is the amount our prefix length should be increased by. *new_prefix* is the desired new prefix of the subnets; it must be larger than our prefix. One...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cf92c0dc-33f9-40bb-b6d2-cc7e344b6623
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,668
supabase-export-v2
9c9194b10c446529
.. method:: IPv4Address.__format__(fmt) Returns a string representation of the IP address, controlled by an explicit format string. *fmt* can be one of the following: ``'s'``, the default option, equivalent to :func:`str`, ``'b'`` for a zero-padded binary string, ``'X'`` or ``'x'`` for an uppercase or lowercase hexa...
trusted_official_docs
CPython Docs
.. method:: IPv4Address.__format__(fmt) Returns a string representation of the IP address, controlled by an explicit format string. *fmt* can be one of the following: ``'s'``, the default option, equivalent to :func:`str`, ``'b'`` for a zero-padded binary string, ``'X'`` or ``'x'`` for an uppercase or lowercase hexa...
.. method:: IPv4Address.__format__(fmt) Returns a string representation of the IP address, controlled by an explicit format string. *fmt* can be one of the following: ``'s'``, the default option, equivalent to :func:`str`, ``'b'`` for a zero-padded binary string, ``'X'`` or ``'x'`` for an uppercase or lowercase hexa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d22a93a6-a152-45da-84e0-ace9c103a05c
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,785
supabase-export-v2
3ec75784f8416244
either a string, a 128-bits integer, a 16-bytes packed integer, or an existing :class:`IPv6Address` object; and the netmask is an integer representing the prefix length. An :exc:`AddressValueError` is raised if *address* is not a valid IPv6 address. A :exc:`NetmaskValueError` is raised if the mask is not valid for an...
trusted_official_docs
CPython Docs
either a string, a 128-bits integer, a 16-bytes packed integer, or an existing :class:`IPv6Address` object; and the netmask is an integer representing the prefix length. An :exc:`AddressValueError` is raised if *address* is not a valid IPv6 address. A :exc:`NetmaskValueError` is raised if the mask is not valid for an...
either a string, a 128-bits integer, a 16-bytes packed integer, or an existing :class:`IPv6Address` object; and the netmask is an integer representing the prefix length. An :exc:`AddressValueError` is raised if *address* is not a valid IPv6 address. A :exc:`NetmaskValueError` is raised if the mask is not valid for an...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d3993d3b-feb8-4677-b9e1-c4c30455f8a6
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,598
supabase-export-v2
f9af4f26192a6ba2
.. function:: ip_address(address) Return an :class:`IPv4Address` or :class:`IPv6Address` object depending on the IP address passed as argument. Either IPv4 or IPv6 addresses may be supplied; integers less than ``2**32`` will be considered to be IPv4 by default. A :exc:`ValueError` is raised if *address* does not repr...
trusted_official_docs
CPython Docs
.. function:: ip_address(address) Return an :class:`IPv4Address` or :class:`IPv6Address` object depending on the IP address passed as argument. Either IPv4 or IPv6 addresses may be supplied; integers less than ``2**32`` will be considered to be IPv4 by default. A :exc:`ValueError` is raised if *address* does not repr...
.. function:: ip_address(address) Return an :class:`IPv4Address` or :class:`IPv6Address` object depending on the IP address passed as argument. Either IPv4 or IPv6 addresses may be supplied; integers less than ``2**32`` will be considered to be IPv4 by default. A :exc:`ValueError` is raised if *address* does not repr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d39fdec2-bc43-4134-9387-48165e3102e1
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,732
supabase-export-v2
f832cac0e18b6157
.. attribute:: is_multicast .. attribute:: is_private .. attribute:: is_unspecified .. attribute:: is_reserved .. attribute:: is_loopback .. attribute:: is_link_local These attributes are true for the network as a whole if they are true for both the network address and the broadcast address.
trusted_official_docs
CPython Docs
.. attribute:: is_multicast .. attribute:: is_private .. attribute:: is_unspecified .. attribute:: is_reserved .. attribute:: is_loopback .. attribute:: is_link_local These attributes are true for the network as a whole if they are true for both the network address and the broadcast address.
.. attribute:: is_multicast .. attribute:: is_private .. attribute:: is_unspecified .. attribute:: is_reserved .. attribute:: is_loopback .. attribute:: is_link_local These attributes are true for the network as a whole if they are true for both the network address and the broadcast address.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d4a250c1-a888-4285-a20c-10a38d0b9f0c
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,624
supabase-export-v2
f781a30ef990ebd7
The total number of bits in the address representation for this version: ``32`` for IPv4, ``128`` for IPv6. The prefix defines the number of leading bits in an address that are compared to determine whether or not an address is part of a network.
trusted_official_docs
CPython Docs
The total number of bits in the address representation for this version: ``32`` for IPv4, ``128`` for IPv6. The prefix defines the number of leading bits in an address that are compared to determine whether or not an address is part of a network.
The total number of bits in the address representation for this version: ``32`` for IPv4, ``128`` for IPv6. The prefix defines the number of leading bits in an address that are compared to determine whether or not an address is part of a network.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d4accf19-7e3e-4de9-846b-4105814e83e0
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,629
supabase-export-v2
fa633376c04f1f94
The string representation in dotted decimal notation. Leading zeroes are never included in the representation. As IPv4 does not define a shorthand notation for addresses with octets set to zero, these two attributes are always the same as ``str(addr)`` for IPv4 addresses. Exposing these attributes makes it easier to ...
trusted_official_docs
CPython Docs
The string representation in dotted decimal notation. Leading zeroes are never included in the representation. As IPv4 does not define a shorthand notation for addresses with octets set to zero, these two attributes are always the same as ``str(addr)`` for IPv4 addresses. Exposing these attributes makes it easier to ...
The string representation in dotted decimal notation. Leading zeroes are never included in the representation. As IPv4 does not define a shorthand notation for addresses with octets set to zero, these two attributes are always the same as ``str(addr)`` for IPv4 addresses. Exposing these attributes makes it easier to ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d79c2db7-a947-4ec1-b5b9-4b142fad7c8f
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,710
supabase-export-v2
efc8cbff24d70ede
Integers can be added to or subtracted from address objects. Some examples:: >>> IPv4Address('127.0.0.2') + 3 IPv4Address('127.0.0.5') >>> IPv4Address('127.0.0.2') - 3 IPv4Address('126.255.255.255') >>> IPv4Address('255.255.255.255') + 1 Traceback (most recent call last): File "<stdin>", line 1, in <module> ipad...
trusted_official_docs
CPython Docs
Integers can be added to or subtracted from address objects. Some examples:: >>> IPv4Address('127.0.0.2') + 3 IPv4Address('127.0.0.5') >>> IPv4Address('127.0.0.2') - 3 IPv4Address('126.255.255.255') >>> IPv4Address('255.255.255.255') + 1 Traceback (most recent call last): File "<stdin>", line 1, in <module> ipad...
Integers can be added to or subtracted from address objects. Some examples:: >>> IPv4Address('127.0.0.2') + 3 IPv4Address('127.0.0.5') >>> IPv4Address('127.0.0.2') - 3 IPv4Address('126.255.255.255') >>> IPv4Address('255.255.255.255') + 1 Traceback (most recent call last): File "<stdin>", line 1, in <module> ipad...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d7c6ba33-1709-4072-9348-1d098635a082
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,780
supabase-export-v2
6510ca6b8fb46600
Construct an IPv6 network definition. *address* can be one of the following: 1. A string consisting of an IP address and an optional prefix length, separated by a slash (``/``). The IP address is the network address, and the prefix length must be a single number, the *prefix*. If no prefix length is provided, it's c...
trusted_official_docs
CPython Docs
Construct an IPv6 network definition. *address* can be one of the following: 1. A string consisting of an IP address and an optional prefix length, separated by a slash (``/``). The IP address is the network address, and the prefix length must be a single number, the *prefix*. If no prefix length is provided, it's c...
Construct an IPv6 network definition. *address* can be one of the following: 1. A string consisting of an IP address and an optional prefix length, separated by a slash (``/``). The IP address is the network address, and the prefix length must be a single number, the *prefix*. If no prefix length is provided, it's c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d89d7a66-2767-4a43-8984-1cbe55c73b9e
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,783
supabase-export-v2
0ecba11edb4e9a17
An integer that fits into 128 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/128``. 3. An integer packed into a :class:`bytes` object of length 16, big-endian. The interpretation is similar to an integer *address*.
trusted_official_docs
CPython Docs
An integer that fits into 128 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/128``. 3. An integer packed into a :class:`bytes` object of length 16, big-endian. The interpretation is similar to an integer *address*.
An integer that fits into 128 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/128``. 3. An integer packed into a :class:`bytes` object of length 16, big-endian. The interpretation is similar to an integer *address*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d9cbb515-7e81-4bb6-be4f-4714d0427250
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,601
supabase-export-v2
0e97d2218138b8e6
.. function:: ip_network(address, strict=True) Return an :class:`IPv4Network` or :class:`IPv6Network` object depending on the IP address passed as argument. *address* is a string or integer representing the IP network. Either IPv4 or IPv6 networks may be supplied; integers less than ``2**32`` will be considered to b...
trusted_official_docs
CPython Docs
.. function:: ip_network(address, strict=True) Return an :class:`IPv4Network` or :class:`IPv6Network` object depending on the IP address passed as argument. *address* is a string or integer representing the IP network. Either IPv4 or IPv6 networks may be supplied; integers less than ``2**32`` will be considered to b...
.. function:: ip_network(address, strict=True) Return an :class:`IPv4Network` or :class:`IPv6Network` object depending on the IP address passed as argument. *address* is a string or integer representing the IP network. Either IPv4 or IPv6 networks may be supplied; integers less than ``2**32`` will be considered to b...
python, official-docs, cpython, P0
Local_Trusted_Corpus
dd3156b7-9a99-441e-b09b-6a925f5b5ed9
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,701
supabase-export-v2
53032e1fcd898b8b
networking interfaces such as the socket module, addresses must be converted to strings or integers. This is handled using the :func:`str` and :func:`int` builtin functions:: >>> str(ipaddress.IPv4Address('192.168.0.1')) '192.168.0.1' >>> int(ipaddress.IPv4Address('192.168.0.1')) 3232235521 >>> str(ipaddress.IPv6Ad...
trusted_official_docs
CPython Docs
networking interfaces such as the socket module, addresses must be converted to strings or integers. This is handled using the :func:`str` and :func:`int` builtin functions:: >>> str(ipaddress.IPv4Address('192.168.0.1')) '192.168.0.1' >>> int(ipaddress.IPv4Address('192.168.0.1')) 3232235521 >>> str(ipaddress.IPv6Ad...
networking interfaces such as the socket module, addresses must be converted to strings or integers. This is handled using the :func:`str` and :func:`int` builtin functions:: >>> str(ipaddress.IPv4Address('192.168.0.1')) '192.168.0.1' >>> int(ipaddress.IPv4Address('192.168.0.1')) 3232235521 >>> str(ipaddress.IPv6Ad...
python, official-docs, cpython, P0
Local_Trusted_Corpus
dd7f7c90-d0bb-464b-b406-698ab245e47c
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,645
supabase-export-v2
840ae43a3fee7865
Fixed some false positives and false negatives. * ``192.0.0.0/24`` is considered private with the exception of ``192.0.0.9/32`` and ``192.0.0.10/32`` (previously: only the ``192.0.0.0/29`` sub-range was considered private). * ``64:ff9b:1::/48`` is considered private. * ``2002::/16`` is considered private. * There are ...
trusted_official_docs
CPython Docs
Fixed some false positives and false negatives. * ``192.0.0.0/24`` is considered private with the exception of ``192.0.0.9/32`` and ``192.0.0.10/32`` (previously: only the ``192.0.0.0/29`` sub-range was considered private). * ``64:ff9b:1::/48`` is considered private. * ``2002::/16`` is considered private. * There are ...
Fixed some false positives and false negatives. * ``192.0.0.0/24`` is considered private with the exception of ``192.0.0.9/32`` and ``192.0.0.10/32`` (previously: only the ``192.0.0.0/29`` sub-range was considered private). * ``64:ff9b:1::/48`` is considered private. * ``2002::/16`` is considered private. * There are ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
df4df48b-e989-4e7e-aea3-f4131e90e07f
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,693
supabase-export-v2
2c55ab28db21565c
.. attribute:: sixtofour For addresses that appear to be 6to4 addresses (starting with ``2002::/16``) as defined by :RFC:`3056`, this property will report the embedded IPv4 address. For any other address, this property will be ``None``.
trusted_official_docs
CPython Docs
.. attribute:: sixtofour For addresses that appear to be 6to4 addresses (starting with ``2002::/16``) as defined by :RFC:`3056`, this property will report the embedded IPv4 address. For any other address, this property will be ``None``.
.. attribute:: sixtofour For addresses that appear to be 6to4 addresses (starting with ``2002::/16``) as defined by :RFC:`3056`, this property will report the embedded IPv4 address. For any other address, this property will be ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e25e9608-7691-4a4a-9fcc-e434f2048683
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,719
supabase-export-v2
c7a8430ba6dd2b44
Construct an IPv4 network definition. *address* can be one of the following: 1. A string consisting of an IP address and an optional mask, separated by a slash (``/``). The IP address is the network address, and the mask can be either a single number, which means it's a *prefix*, or a string representation of an IPv...
trusted_official_docs
CPython Docs
Construct an IPv4 network definition. *address* can be one of the following: 1. A string consisting of an IP address and an optional mask, separated by a slash (``/``). The IP address is the network address, and the mask can be either a single number, which means it's a *prefix*, or a string representation of an IPv...
Construct an IPv4 network definition. *address* can be one of the following: 1. A string consisting of an IP address and an optional mask, separated by a slash (``/``). The IP address is the network address, and the mask can be either a single number, which means it's a *prefix*, or a string representation of an IPv...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e34f6eb3-3276-45a3-96da-98c209566cb5
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,782
supabase-export-v2
2845dc0a21051d57
Note that currently expanded netmasks are not supported. That means ``2001:db00::0/24`` is a valid argument while ``2001:db00::0/ffff:ff00::`` is not. 2. An integer that fits into 128 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/128``.
trusted_official_docs
CPython Docs
Note that currently expanded netmasks are not supported. That means ``2001:db00::0/24`` is a valid argument while ``2001:db00::0/ffff:ff00::`` is not. 2. An integer that fits into 128 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/128``.
Note that currently expanded netmasks are not supported. That means ``2001:db00::0/24`` is a valid argument while ``2001:db00::0/ffff:ff00::`` is not. 2. An integer that fits into 128 bits. This is equivalent to a single-address network, with the network address being *address* and the mask being ``/128``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e5c502d3-467e-4aab-a0dd-5f73aebe4af6
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,707
supabase-export-v2
5bf77879f1f68778
Address objects can be compared with the usual set of comparison operators. Same IPv6 addresses with different scope zone IDs are not equal. Some examples:: >>> IPv4Address('127.0.0.2') > IPv4Address('127.0.0.1') True >>> IPv4Address('127.0.0.2') == IPv4Address('127.0.0.1') False >>> IPv4Address('127.0.0.2') != IPv...
trusted_official_docs
CPython Docs
Address objects can be compared with the usual set of comparison operators. Same IPv6 addresses with different scope zone IDs are not equal. Some examples:: >>> IPv4Address('127.0.0.2') > IPv4Address('127.0.0.1') True >>> IPv4Address('127.0.0.2') == IPv4Address('127.0.0.1') False >>> IPv4Address('127.0.0.2') != IPv...
Address objects can be compared with the usual set of comparison operators. Same IPv6 addresses with different scope zone IDs are not equal. Some examples:: >>> IPv4Address('127.0.0.2') > IPv4Address('127.0.0.1') True >>> IPv4Address('127.0.0.2') == IPv4Address('127.0.0.1') False >>> IPv4Address('127.0.0.2') != IPv...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e7e80e8f-378b-4757-950f-e0561be2c9eb
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,723
supabase-export-v2
04fd15d1c0be405b
3. An integer packed into a :class:`bytes` object of length 4, big-endian. The interpretation is similar to an integer *address*. 4. A two-tuple of an address description and a netmask, where the address description is either a string, a 32-bits integer, a 4-bytes packed integer, or an existing :class:`IPv4Address` o...
trusted_official_docs
CPython Docs
3. An integer packed into a :class:`bytes` object of length 4, big-endian. The interpretation is similar to an integer *address*. 4. A two-tuple of an address description and a netmask, where the address description is either a string, a 32-bits integer, a 4-bytes packed integer, or an existing :class:`IPv4Address` o...
3. An integer packed into a :class:`bytes` object of length 4, big-endian. The interpretation is similar to an integer *address*. 4. A two-tuple of an address description and a netmask, where the address description is either a string, a 32-bits integer, a 4-bytes packed integer, or an existing :class:`IPv4Address` o...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9935b7f-03fc-429b-8444-9d90ab3163e5
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,847
supabase-export-v2
dd4b6ef84473bc88
.. function:: collapse_addresses(addresses) Return an iterator of the collapsed :class:`IPv4Network` or :class:`IPv6Network` objects. *addresses* is an :term:`iterable` of :class:`IPv4Network` or :class:`IPv6Network` objects. A :exc:`TypeError` is raised if *addresses* contains mixed version objects.
trusted_official_docs
CPython Docs
.. function:: collapse_addresses(addresses) Return an iterator of the collapsed :class:`IPv4Network` or :class:`IPv6Network` objects. *addresses* is an :term:`iterable` of :class:`IPv4Network` or :class:`IPv6Network` objects. A :exc:`TypeError` is raised if *addresses* contains mixed version objects.
.. function:: collapse_addresses(addresses) Return an iterator of the collapsed :class:`IPv4Network` or :class:`IPv6Network` objects. *addresses* is an :term:`iterable` of :class:`IPv4Network` or :class:`IPv6Network` objects. A :exc:`TypeError` is raised if *addresses* contains mixed version objects.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9c8e83e-7ca3-404e-93de-473a9ec31efa
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,835
supabase-export-v2
a8f27f7ef55fc873
address and network must be the same for the objects to be equal. An interface will not compare equal to any address or network object. For ordering (``<``, ``>``, etc) the rules are different. Interface and address objects with the same IP version can be compared, and the address objects will always sort before the in...
trusted_official_docs
CPython Docs
address and network must be the same for the objects to be equal. An interface will not compare equal to any address or network object. For ordering (``<``, ``>``, etc) the rules are different. Interface and address objects with the same IP version can be compared, and the address objects will always sort before the in...
address and network must be the same for the objects to be equal. An interface will not compare equal to any address or network object. For ordering (``<``, ``>``, etc) the rules are different. Interface and address objects with the same IP version can be compared, and the address objects will always sort before the in...
python, official-docs, cpython, P0
Local_Trusted_Corpus
eafe1f39-e7d5-41d0-9567-eee32b42793c
CPython Docs
file://datasets/cpython/Doc/library/ipaddress.rst
unknown
d0f85b08-bb02-4211-8357-3a8dbcb9b84f
36,790
supabase-export-v2
9ff86ca9ab214e94
netmask .. attribute:: with_prefixlen .. attribute:: compressed .. attribute:: exploded .. attribute:: with_netmask .. attribute:: with_hostmask .. attribute:: num_addresses .. attribute:: prefixlen .. method:: hosts() Returns an iterator over the usable hosts in the network. The usable hosts are all the IP addresses ...
trusted_official_docs
CPython Docs
netmask .. attribute:: with_prefixlen .. attribute:: compressed .. attribute:: exploded .. attribute:: with_netmask .. attribute:: with_hostmask .. attribute:: num_addresses .. attribute:: prefixlen .. method:: hosts() Returns an iterator over the usable hosts in the network. The usable hosts are all the IP addresses ...
netmask .. attribute:: with_prefixlen .. attribute:: compressed .. attribute:: exploded .. attribute:: with_netmask .. attribute:: with_hostmask .. attribute:: num_addresses .. attribute:: prefixlen .. method:: hosts() Returns an iterator over the usable hosts in the network. The usable hosts are all the IP addresses ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
089f25af-fe6b-48fa-87f0-f38356675c18
CPython Docs
file://datasets/cpython/Doc/library/shelve.rst
unknown
ae8725a0-99ed-4adc-9377-b92306969cc0
36,865
supabase-export-v2
1dbd8eb78b199c5e
the :mod:`pickle` module can handle. This includes most class instances, recursive data types, and objects containing lots of shared sub-objects. The keys are ordinary strings. .. function:: open(filename, flag='c', protocol=None, writeback=False, *, \ serializer=None, deserializer=None)
trusted_official_docs
CPython Docs
the :mod:`pickle` module can handle. This includes most class instances, recursive data types, and objects containing lots of shared sub-objects. The keys are ordinary strings. .. function:: open(filename, flag='c', protocol=None, writeback=False, *, \ serializer=None, deserializer=None)
the :mod:`pickle` module can handle. This includes most class instances, recursive data types, and objects containing lots of shared sub-objects. The keys are ordinary strings. .. function:: open(filename, flag='c', protocol=None, writeback=False, *, \ serializer=None, deserializer=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
09c8852b-258f-45e4-91dd-8473d0dade5a
CPython Docs
file://datasets/cpython/Doc/library/shelve.rst
unknown
ae8725a0-99ed-4adc-9377-b92306969cc0
36,864
supabase-export-v2
1f92a0f86e5d9363
-------------- A "shelf" is a persistent, dictionary-like object. The difference with "dbm" databases is that the values (not the keys!) in a shelf can be essentially arbitrary Python objects --- anything that the :mod:`pickle` module can handle. This includes most class instances, recursive data types, and objects con...
trusted_official_docs
CPython Docs
-------------- A "shelf" is a persistent, dictionary-like object. The difference with "dbm" databases is that the values (not the keys!) in a shelf can be essentially arbitrary Python objects --- anything that the :mod:`pickle` module can handle. This includes most class instances, recursive data types, and objects con...
-------------- A "shelf" is a persistent, dictionary-like object. The difference with "dbm" databases is that the values (not the keys!) in a shelf can be essentially arbitrary Python objects --- anything that the :mod:`pickle` module can handle. This includes most class instances, recursive data types, and objects con...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1055a27c-d9a9-4ea6-bd6f-6e03a11cddd9
CPython Docs
file://datasets/cpython/Doc/library/shelve.rst
unknown
ae8725a0-99ed-4adc-9377-b92306969cc0
36,903
supabase-export-v2
03fe04992d7f23e0
The *serializer* and *deserializer* parameters have the same interpretation as in :func:`~shelve.open`. A :class:`Shelf` object can also be used as a context manager, in which case it will be automatically closed when the :keyword:`with` block ends.
trusted_official_docs
CPython Docs
The *serializer* and *deserializer* parameters have the same interpretation as in :func:`~shelve.open`. A :class:`Shelf` object can also be used as a context manager, in which case it will be automatically closed when the :keyword:`with` block ends.
The *serializer* and *deserializer* parameters have the same interpretation as in :func:`~shelve.open`. A :class:`Shelf` object can also be used as a context manager, in which case it will be automatically closed when the :keyword:`with` block ends.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1dcea9a8-f809-484e-bc6e-840fb9fcba50
CPython Docs
file://datasets/cpython/Doc/library/shelve.rst
unknown
ae8725a0-99ed-4adc-9377-b92306969cc0
36,919
supabase-export-v2
5c7fb7cbab69b333
data at key (raise KeyError # if no such key) del d[key] # delete data stored at key (raises KeyError # if no such key) flag = key in d # true if the key exists klist = list(d.keys()) # a list of all existing keys (slow!)
trusted_official_docs
CPython Docs
data at key (raise KeyError # if no such key) del d[key] # delete data stored at key (raises KeyError # if no such key) flag = key in d # true if the key exists klist = list(d.keys()) # a list of all existing keys (slow!)
data at key (raise KeyError # if no such key) del d[key] # delete data stored at key (raises KeyError # if no such key) flag = key in d # true if the key exists klist = list(d.keys()) # a list of all existing keys (slow!)
python, official-docs, cpython, P0
Local_Trusted_Corpus
1ec9f52e-42bb-425b-8a70-78c4604a798c
CPython Docs
file://datasets/cpython/Doc/library/shelve.rst
unknown
ae8725a0-99ed-4adc-9377-b92306969cc0
36,918
supabase-export-v2
f89ffff0e7cf8958
d = shelve.open(filename) # open -- file may get suffix added by low-level # library d[key] = data # store data at key (overwrites old data if # using an existing key) data = d[key] # retrieve a COPY of data at key (raise KeyError # if no such key) del d[key] # delete data stored at key (raises KeyError # if no su...
trusted_official_docs
CPython Docs
d = shelve.open(filename) # open -- file may get suffix added by low-level # library d[key] = data # store data at key (overwrites old data if # using an existing key) data = d[key] # retrieve a COPY of data at key (raise KeyError # if no such key) del d[key] # delete data stored at key (raises KeyError # if no su...
d = shelve.open(filename) # open -- file may get suffix added by low-level # library d[key] = data # store data at key (overwrites old data if # using an existing key) data = d[key] # retrieve a COPY of data at key (raise KeyError # if no such key) del d[key] # delete data stored at key (raises KeyError # if no su...
python, official-docs, cpython, P0
Local_Trusted_Corpus