Return the base (first) address of a network as an IP object. The same as IP[0]. >>> IP('10.0.0.0/8').net() IP('10.0.0.0')
(self)
| 711 | """Class for handling IP addresses and networks.""" |
| 712 | |
| 713 | def net(self): |
| 714 | """Return the base (first) address of a network as an IP object. |
| 715 | |
| 716 | The same as IP[0]. |
| 717 | |
| 718 | >>> IP('10.0.0.0/8').net() |
| 719 | IP('10.0.0.0') |
| 720 | """ |
| 721 | return IP(IPint.net(self), ipversion=self._ipversion) |
| 722 | |
| 723 | def broadcast(self): |
| 724 | """Return the broadcast (last) address of a network as an IP object. |