You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I should raise an error on .broadcast() when it's v6?
I think, no. It will break lots of code. As a first mitigation I'd propose to pass the version info (like in .net() method).
Please, keep in mind that, for instance, https://github.com/irrdnet/irrd makes heavy use of .net()/.broadcast() (yepp, instead of ip[0]/ip[-1]) and is a production code (not mine 😄 )
python-ipy/IPy.py
Line 821 in b8eb507
missing IP version propagation as compared to
python-ipy/IPy.py
Line 811 in b8eb507
Reproduce with:
In general, I'd prefer to have
.first_address()
and.last_address()
methods as IPv6 address has no "broadcast" part.// random losses of edits observed //
The text was updated successfully, but these errors were encountered: