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
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
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
Or Toledano added the comment:
https://github.com/python/cpython/pull/19580
--
___
Python tracker
<https://bugs.python.org/issue40316>
___
___
Python-bugs-list m
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
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
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,
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 =
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
Changes by Shahar Or :
--
nosy: -DawnLight
___
Python tracker
<http://bugs.python.org/issue1759845>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Shahar Or :
--
nosy: +DawnLight
___
Python tracker
<http://bugs.python.org/issue1759845>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Shahar Or :
--
nosy: +DawnLight
___
Python tracker
<http://bugs.python.org/issue6135>
___
___
Python-bugs-list mailing list
Unsubscribe:
12 matches
Mail list logo