[issue7946] Convoy effect with I/O bound threads and New GIL

2022-03-21 Thread Omer Katz
Omer Katz added the comment: I think that we should focus our efforts on removing the GIL, now that we have a feasible solution for doing so without breaking anything (hopefully) however the removal of the GIL is still far from being complete and will need to be rebased upon the latest Python

[issue43248] platform.libc_ver() returns no information on Alpine Linux

2021-02-18 Thread Omer Katz
New submission from Omer Katz : When calling platform.libc_ver() on Alpine I get the following tuple: ('', '') Instead, I expect to get ('muslc', '') or an exception if the libc type & version cannot be detected. If one of them is not detected, the

[issue7946] Convoy effect with I/O bound threads and New GIL

2019-07-10 Thread Omer Katz
Omer Katz added the comment: FYI I can verify that the original benchmark is still valid on Python 3.7.3. I'm running the client on an 8 core CPU. The result is 30.702 seconds (341534.322 bytes/sec). I'll need somebody to decide how we're going to fix this problem. I can

[issue7946] Convoy effect with I/O bound threads and New GIL

2019-06-24 Thread Omer Katz
Omer Katz added the comment: Celery 5 is going async and in order to isolate the main event loop from task execution, the tasks are going to be executed in a different thread with it's own event loop. This thread may or may not be CPU bound. The main thread is I/O bound. This patch s

[issue21145] Add the @cached_property decorator

2018-05-15 Thread Omer Katz
Omer Katz added the comment: I believe so. Let's do it :) ‫בתאריך יום ב׳, 14 במאי 2018 ב-19:30 מאת ‪Carl Meyer‬‏ <‪ rep...@bugs.python.org‬‏>:‬ > > Carl Meyer added the comment: > > > I don't think it makes sense to try to make cached_property itself wor

[issue21145] Add the @cached_property decorator

2016-02-15 Thread Omer Katz
Omer Katz added the comment: In that case, most of the users won't use the standard library @cached_property anyway since they require it. On Mon, Feb 15, 2016, 19:51 Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > The TTL idea is completely outlandish in

[issue21145] Add the @cached_property decorator

2016-02-15 Thread Omer Katz
Omer Katz added the comment: Most implementations these days support TTL because they require it. The whole point is to remove the need to reimplement such basic functionality over and over. ‫בתאריך יום ב׳, 15 בפבר׳ 2016 ב-18:33 מאת ‪STINNER Victor‬‏ <‪ rep...@bugs.python.org‬‏>:‬ >

[issue21145] Add the @cached_property decorator

2016-02-15 Thread Omer Katz
Omer Katz added the comment: Can we make this happen for 3.6? -- versions: +Python 3.6 -Python 3.5 ___ Python tracker <http://bugs.python.org/issue21145> ___ ___

[issue26263] Serialize array.array to JSON by default

2016-02-01 Thread Omer Katz
New submission from Omer Katz: Is there a reason why the JSON module doesn't serialize array.array() instances by default? Currently you need to convert them to tuples but I'm confident that the C API for those types is enough to iterate over the array and serialize it to a JSON

[issue16392] import crashes on circular imports in ext modules

2015-05-08 Thread Omer Katz
Omer Katz added the comment: Is this issue resolved in any way? Has there been a decision made on how to resolve it? What's the status here? -- nosy: +Omer.Katz ___ Python tracker <http://bugs.python.org/is

[issue22985] Segfault on time.sleep

2014-12-06 Thread Omer Katz
Omer Katz added the comment: Capturing the signal provides the following traceback: File "mt_example.py", line 10, in p1 = ThreadPool() File "/home/omer/.virtualenvs/billiard/lib/python2.7/site-packages/billiard/pool.py", line 1016, in __init__ self._result_ha

[issue22985] Segfault on time.sleep

2014-12-06 Thread Omer Katz
Omer Katz added the comment: So why exactly the program terminates on a system call? 2014-12-05 23:44 GMT+02:00 STINNER Victor : > > STINNER Victor added the comment: > > > Program received signal SIGTERM, Terminated. > > SIGTERM is not a segmentation fault. SIGSEGV is fo

[issue22985] Segfault on time.sleep

2014-12-02 Thread Omer Katz
New submission from Omer Katz: I have found what appears to be a segfualt in time.sleep but I'm not sure. I have verified that the segfualt occurs both on Python 2.7.8 and 3.4.2. The following program that reproduces the segfault uses my fork of billiard, a replacement for the multiproce

[issue21807] SysLogHandler closes TCP connection after first message

2014-06-19 Thread Omer Katz
New submission from Omer Katz: import logging import logging.handlers import socket logger = logging.getLogger('mylogger') handler = logging.handlers.SysLogHandler(('', logging.handlers.SYSLOG_TCP_PORT), socktype=socket.SOCK_STREAM) formatter = logging.Formatter('

[issue21145] Add the @cached_property decorator

2014-04-06 Thread Omer Katz
Omer Katz added the comment: I just checked and werkzeug uses the same implementation as Django & pip. 2014-04-06 14:31 GMT+04:00 Omer Katz : > > Omer Katz added the comment: > > The default implementation should simple: > Once the property is accessed for the first time c

[issue21145] Add the @cached_property decorator

2014-04-06 Thread Omer Katz
Omer Katz added the comment: The default implementation should simple: Once the property is accessed for the first time calculate the result and never calculate again. It's what both Django & pip uses. You can add an optional TTL. There aren't any other features I can come up

[issue21145] Add the @cached_property decorator

2014-04-03 Thread Omer Katz
New submission from Omer Katz: cached properties are widely used in various prominent Python projects such as Django and pip (and many more). They are not very complicated and there are proven implementation out there. Unfortunately there are way too many of them. This situation leads me to