Задать вопрос

Тел: +7 965 3737 888

536

Просмотров

1

Ответов

Tuned IPAddressField with IPv4 & IPv6 support

Tuned IPAddressField with IPv4 & IPv6 support

Вопрос полезен? Да0/Нет0
file_3402.py(3.2Кб)
None

Ответы (1):

Ответjono:30.10.2010
Ответ полезен? Да0/Нет0

Great snippet!

Instead of "return None" I'd "return IP(0)" just in case you need to compare the results with another IP instance. IPy doesn't like comparing IP's with non IP objects (like None or a string).