[issue39545] await is not supported in f-string in 3.6

2020-02-04 Thread Rohit Sanjay
Rohit Sanjay added the comment: Hey, I'd like to work on this issue. Seems like an easy fix. Can you please help me out with where I will need to add the documentation for this? -- nosy: +rohitsanjay ___ Python tracker <https://bugs.python.

[issue38335] simplify overlaps function in ipaddress.py

2019-10-05 Thread Sanjay
Sanjay added the comment: the version in the patch is less code a or b or c or d becomes a or d the version in PR is using the subnet_of, supernet_of function because overlap means either a is subnet_of or supernet_of b. So was trying to consolidate the implementation of overlap from 2 to 1

[issue38335] simplify overlaps function in ipaddress.py

2019-10-02 Thread Sanjay
Change by Sanjay : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue38335> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38337] inspect: getmembers calls properties

2019-10-01 Thread Sanjay
Sanjay added the comment: the issue happens in 2.7 as well -- nosy: +Sanjay versions: +Python 2.7 ___ Python tracker <https://bugs.python.org/issue38

[issue38335] simplify overlaps function in ipaddress.py

2019-10-01 Thread Sanjay
Change by Sanjay : -- pull_requests: +16110 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16519 ___ Python tracker <https://bugs.python.org/issu

[issue38335] simplify overlaps function in ipaddress.py

2019-10-01 Thread Sanjay
New submission from Sanjay : the current implementation of overlaps function tests either network or broadcast address is in other but we can skip checking broadcast address is in other because we anyway check if other.network_address in self without loss of generality if we assume self has

[issue34233] subprocess.check_output goes to infinte loop

2018-07-26 Thread sanjay patel
New submission from sanjay patel : Below snipped goes to infinite loop when running through windows command prompt but works in python IDLE import subprocess subprocess.check_output('cmd.exe dir', stderr=subprocess.STDOUT) save as:test.py in windows cmd use command: python test.py

[issue29931] ipaddress.ip_interface __lt__ check seems to be broken

2017-03-28 Thread Sanjay
New submission from Sanjay: The less than check for ip_interface behavior seems weird. I am not sure if this is by design. We are just comparing the network address but when network address is equal we should compare the ip address. The expectation is if a < b is False then b <= a must b

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Sanjay
Sanjay added the comment: ok I will update the doc -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29913> ___ ___ Python-bugs-

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Sanjay
Sanjay added the comment: yes but compare_networks is not used to implement equality check. __eq__ correctly returns False when we do 1.1.1.0/24 == 1.1.1.0/25. If compare_networks works exactly like __eq__ then it seems a bit redundant

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Sanjay
Changes by Sanjay <sanjay...@gmail.com>: -- pull_requests: +739 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29913> ___ __

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Sanjay
New submission from Sanjay: according to the docs compare_networks only checks the network address but the implementation is also taking the mask length into account. It returns '0' only if both the network address and the mask are equal but this can be done with just equality check ( ip1