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

Created on 2017-07-11 12:39 by Abhijit Mamarde, last changed 2017-07-11 12:39 by Abhijit Mamarde.

Files
File name Uploaded Description Edit
ipaddress_doc_bug.py Abhijit Mamarde, 2017-07-11 12:39 testcase/script to show the issue.
Messages (1)
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.
History
Date User Action Args
2017-07-11 12:39:42Abhijit Mamardecreate