Skip to content

Avoid OverflowError with large ranges#13

Merged
bd808 merged 3 commits intomasterfrom
issue/12
Mar 1, 2014
Merged

Avoid OverflowError with large ranges#13
bd808 merged 3 commits intomasterfrom
issue/12

Conversation

@bd808
Copy link
Copy Markdown
Owner

@bd808 bd808 commented Mar 1, 2014

Use IpRange.__len__() directly rather than calling len(IpRange()) when
computing the length of an IpRangeList. This won't stop OverflowErrors in
calling code such as len(IpRangeList('fe80::/10')), but it will provide
a method to work around the overflow by direct use of IpRangeList.__len__().

Resolves: #12

bd808 added 3 commits March 1, 2014 10:17
Use `IpRange.__len__()` directly rather than calling `len(IpRange())` when
computing the length of an IpRangeList. This won't stop OverflowErrors in
calling code such as `len(IpRangeList('fe80::/10'))`, but it will provide
a method to work around the overflow by direct use of `IpRangeList.__len__()`.

Issue: #12
Python 3.x dropped the `L` suffix for the repr of long integers.
As of 2013-11-20 Travis CI removed support for testing using python 2.5 See
http://blog.travis-ci.com/2013-11-18-upcoming-build-environment-updates/.
bd808 added a commit that referenced this pull request Mar 1, 2014
Avoid OverflowError with large ranges
@bd808 bd808 merged commit ea1892f into master Mar 1, 2014
@bd808 bd808 deleted the issue/12 branch March 1, 2014 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OverflowError when getting a list of addresses

1 participant