era added the comment:

Quick googling did not turn up anything like a credible authoritative reference 
for this, but in actual practice, I have seen /32 used to designate a single 
individual IP address in CIDR notation quite a lot.

I can see roughly three options:

  1. Status quo.  Silently surprise users who expect this to work.
  2. Silently fix.  Hard-code /32 to return a range of one IP address.
  3. Let users choose.  Similarly to the "strict=True" keyword argument in the 
constructor method, the code could allow for either lenient or strict semantics.

By the by, I don't see how the bug you linked to is relevant here, did you 
mistype the bug number?  #27863 is about _elementtree

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28577>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to