[issue25431] implement address in network in ipaddress module

2015-10-17 Thread Александр Балезин
New submission from Александр Балезин: Current realization of _BaseNetwork.__contains__ always returns False if other is _BaseNetwork. This patch implements proper comparison of _BaseNetwork objects. -- components: Library (Lib) files: ipaddress_contains_network.patch keywords: patch

[issue25430] speed up ipaddress __contain__ method

2015-10-17 Thread Александр Балезин
New submission from Александр Балезин: Current check "address in network" is seems a bit odd: int(self.network_address) <= int(other._ip) < int(self.broadcast_address) This patch make this in bit-operation manner. Perfomace test: import ipaddress import timeit cl

[issue13671] double comma cant be parsed in config module

2011-12-28 Thread Александр Балезин
New submission from Александр Балезин : In conf file: "keyе_ = ,," Get next exception: File "/usr/lib/python2.6/dist-packages/configobj.py", line 1230, in __init__ self._load(infile, configspec) File "/usr/lib/python2.6/dist-packages/configobj.py", line