[issue46174] Feature Request for Python Interfaces

2021-12-24 Thread Or
New submission from Or : Most object oriented languages provide interfaces as part of the core language, this helps bring better design principles to a team's workflows. Today Python provides the ABC module for abstract base classes and the Protocol class from typing module as something

[issue41588] Potential Memory leak with concurrent.futures.ThreadPoolExecutor's map

2020-08-19 Thread Or Yahalom
New submission from Or Yahalom : I've been debugging a high memory consumption in one of my scripts and traced it back to the `concurrent.futures.ThreadPoolExecutor`. When further investigating and playing around, I found out that when using `concurrent.futures.ThreadPoolExecutor` wit

[issue40316] Add zero function to time, datetime, which acts as the use case of replace to limit resolution

2020-04-18 Thread Or Toledano
Or Toledano added the comment: The use-case for this method is to "limit" the resolution of a time object. I encountered the need for it when I needed to reduce the resolution of some timestamps, to compare them with timestamps of lesser resolution. I found the following SOF po

[issue40316] Add zero function to time, datetime, which acts as the use case of replace to limit resolution

2020-04-18 Thread Or Toledano
Or Toledano added the comment: https://github.com/python/cpython/pull/19580 -- ___ Python tracker <https://bugs.python.org/issue40316> ___ ___ Python-bugs-list m

[issue40316] Add zero function to time, datetime, which acts as the use case of replace to limit resolution

2020-04-18 Thread Or Toledano
New submission from Or Toledano : I propose the zero(time_unit) function, which replaces all time units with greater equal resolution than time_unit by 0. E.g. >>> datetime.datetime(2020, 4, 18, 12, 27, 30, 500).zero("second") datetime.datetime(2020, 4, 18, 12, 27) I

[issue40316] Add zero function to time, datetime, which acts as the use case of replace to limit resolution

2020-04-18 Thread Or Toledano
Change by Or Toledano : -- keywords: +patch pull_requests: +18918 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19580 ___ Python tracker <https://bugs.python.org/issu

[issue35464] json.dumps very unclear exception

2018-12-11 Thread Or
New submission from Or : when dumping a value coming from numpy.random.choice([True,False]) the exception raised is very unclear. json.dumps(result) File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 184,

[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler

2011-07-03 Thread Or
Or added the comment: I have fieddler2 listening on 0.0.0.0:. this code is suppose to use the proxy on my localhost. try: proxy = urllib2.ProxyHandler({'http': '127.0.0.1:'}) //also tried {'http': 'http://127.0.0.1:/'} opener =

[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler

2011-07-03 Thread Or
New submission from Or : I have fieddler2 listening on 0.0.0.0:. this code is suppose to use the proxy on my localhost. try: data = '' proxy = urllib2.ProxyHandler({'http': '127.0.0.1:'}) //also tried {'http': 'http://127.0.0.1:88

[issue1759845] subprocess.call fails with unicode strings in command line

2010-08-08 Thread Shahar Or
Changes by Shahar Or : -- nosy: -DawnLight ___ Python tracker <http://bugs.python.org/issue1759845> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1759845] subprocess.call fails with unicode strings in command line

2009-12-31 Thread Shahar Or
Changes by Shahar Or : -- nosy: +DawnLight ___ Python tracker <http://bugs.python.org/issue1759845> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-12-31 Thread Shahar Or
Changes by Shahar Or : -- nosy: +DawnLight ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: