This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IPv4Network's hostmask attribute doesn't returns string value as mentioned in Documentation.
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Abhijit Mamarde, cheryl.sabella, docs@python
Priority: normal Keywords:

Created on 2017-07-11 12:39 by Abhijit Mamarde, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ipaddress_doc_bug.py Abhijit Mamarde, 2017-07-11 12:39 testcase/script to show the issue.
Messages (2)
msg298153 - (view) Author: Abhijit Mamarde (Abhijit Mamarde) Date: 2017-07-11 12:39
documentation mentions hostmask attribute of IPv4Network
class returns a `string`, but in actual it is
returning the object of class IPv4Address

URL to official doc:
https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Network.hostmask

PFA program file to show the actual issue.
msg338563 - (view) Author: Cheryl Sabella (cheryl.sabella) * (Python committer) Date: 2019-03-21 19:18
Thank you for the report.  This was fixed as part of PR6021.  There was no bpo ticket for that pull request.
History
Date User Action Args
2022-04-11 14:58:48adminsetgithub: 75086
2019-03-21 19:18:21cheryl.sabellasetstatus: open -> closed

nosy: + cheryl.sabella
messages: + msg338563

resolution: fixed
stage: resolved
2017-07-11 12:39:42Abhijit Mamardecreate