Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 51 by pgurumur: __iter__ operator for IPv6 network
http://code.google.com/p/netaddr/issues/detail?id=51
Python 2.5.4 (r254:67916, Jul 3 2009, 22:17:21)
[GCC 3.3.5 (propolice)] on openbsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> from netaddr import IPNetwork
>>> test = IPNetwork("fd91:f405:c161:6f7a::/64")
>>> print test
fd91:f405:c161:6f7a::/64
>>> list(test)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/local/lib/python2.5/site-packages/netaddr-0.7.3-py2.5.egg/netaddr/ip/__init__.py",
line 931, in __len__
"IP addresses! Use the .size property instead." % _sys.maxint)
IndexError: range contains more than 9223372036854775807 (sys.maxint) IP
addresses! Use the .size property instead.
How would I go about getting a list? or is it not possible?
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings