[issue31905] IPv4Networkcontains raises exception on None

2017-10-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: fixed -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31905] IPv4Networkcontains raises exception on None

2017-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur. IPvNetwork is not a general purposed collection. And even genera purposed collections can have restrictions on the arguments of "in". E.g.: >>> [] in {} Traceback (most recent call last): File "", line 1, in TypeError: unhashable type: 'list' S

[issue31905] IPv4Networkcontains raises exception on None

2017-10-30 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with David. And since the PR says "not other", then it makes even less sense, since it's checking for any False-y object. I recommend closing this as "not a bug". -- nosy: +eric.smith ___ Python tracker

[issue31905] IPv4Networkcontains raises exception on None

2017-10-30 Thread R. David Murray
R. David Murray added the comment: It is not obvious that this is a bug. Why should None be a valid value for 'in network'? -- nosy: +r.david.murray ___ Python tracker ___ __

[issue31905] IPv4Networkcontains raises exception on None

2017-10-30 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4150 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue31905] IPv4Networkcontains raises exception on None

2017-10-30 Thread Gerard Weatherby
New submission from Gerard Weatherby : Given a IPvNetwork network if x in network: ... raises an AttributeError instead of returning False. -- components: Library (Lib) files: ne.py messages: 305250 nosy: Gerard Weatherby priority: normal severity: normal status: open title: IPv4Netw