Martin v. Löwis <martin <at> v.loewis.de> writes: > > Still, people proposing that 192.168.1.1/24 should be rejected (I still > don't know whether anybody is actually proposing that) *have* to provide > a proposal how this should be input instead. It was proposed to have a dedicated function or class method which would parse such strings and return a (Network, Address) tuple corresponding to the two objects that are described by that single notation. >>> parse_network_and_host('192.168.1.1/24') (Network('192.168.1.0/24'), Address('192.168.1.1')) Regards Antoine.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4