[issue15751] [subinterpreters] Make the PyGILState API compatible with subinterpreters

2021-03-22 Thread Gabriel Amine Eddine
Change by Gabriel Amine Eddine : -- nosy: +gabrielhae ___ Python tracker <https://bugs.python.org/issue15751> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41657] Refactor for object source files variable in Makefile

2020-08-28 Thread Elian Mariano Gabriel
New submission from Elian Mariano Gabriel : Refactoring in the Makefile is needed due a hard coded declaration to the 'OBJECT_OBJS' variable in the line 388. This hard coded declaration can be replaced by a pattern substitution function which assigns the 'OBJECT_OBJS' v

[issue41657] Refactor for object source files variable in Makefile

2020-08-28 Thread Elian Mariano Gabriel
Change by Elian Mariano Gabriel : -- keywords: +patch pull_requests: +21099 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21993 ___ Python tracker <https://bugs.python.org/issu

[issue42439] Use of ternary operator instead of if and else in month calculation function

2020-11-22 Thread Elian Mariano Gabriel
New submission from Elian Mariano Gabriel : Inside the file calendar.py, there are two functions which are supposed to calculate the previous and next month relative to the actual year and month. def _prevmonth(year, month): if month == 1: return year-1, 12 else

[issue42439] Use of ternary operator instead of if and else in month calculation function

2020-11-22 Thread Elian Mariano Gabriel
Change by Elian Mariano Gabriel : -- keywords: +patch pull_requests: +22358 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23468 ___ Python tracker <https://bugs.python.org/issu

[issue16578] Regular expressions with empty named groups breaks isname check

2012-11-29 Thread Gabriel Rodríguez Alberich
New submission from Gabriel Rodríguez Alberich: >>> import re >>> re.compile("(?P<>)") Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/re.py", line 190, in compile return _compile(pattern, flags)

[issue16578] Regular expressions with empty named groups break isname check

2012-11-29 Thread Gabriel Rodríguez Alberich
Changes by Gabriel Rodríguez Alberich : -- title: Regular expressions with empty named groups breaks isname check -> Regular expressions with empty named groups break isname check ___ Python tracker <http://bugs.python.org/issu

[issue16578] Regular expressions with empty named groups break isname check

2012-11-29 Thread Gabriel Rodríguez Alberich
Gabriel Rodríguez Alberich added the comment: Uh, sorry about that. Thanks. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue16578] Regular expressions with empty named groups break isname check

2012-11-29 Thread Gabriel Rodríguez Alberich
Changes by Gabriel Rodríguez Alberich : -- resolution: -> duplicate ___ Python tracker <http://bugs.python.org/issue16578> ___ ___ Python-bugs-list mai

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2009-03-06 Thread Gabriel Sean Farrell
Gabriel Sean Farrell added the comment: Now that BeautifulSoup uses HTMLParser, more people are seeing these errors. See http://groups.google.com/group/beautifulsoup/msg/d5a7540620538d14 and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516824 -- nosy: +gsf

[issue5331] multiprocessing hangs when Pool used within Process

2009-06-10 Thread Gabriel de Perthuis
Gabriel de Perthuis added the comment: Apparently the pool workers die all at once, just after the pool creates them and before the pool is used. I added a few lines to multiprocessing/pool.py to get the stack and the exception backtrace. except (EOFError, IOError): import

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2016-08-09 Thread Gabriel Pettier (Tshirtman)
New submission from Gabriel Pettier (Tshirtman): Up to apparently python 3.5, using help('signal') used to show the 'signal.signal' function among others, now it's not in the list, while of course help('signal.signal') does work, it was reported t

[issue27747] Broken example in the queue module documentation

2016-08-12 Thread Paulo Gabriel Poiati
New submission from Paulo Gabriel Poiati: I believe the code example at https://docs.python.org/3.6/library/queue.html is broken. The break condition in the worker loop (when the queued value is None) must call the `task_done` before breaking, otherwise the code blocks indefinitely in the

[issue27747] Broken example in the queue module documentation

2016-08-12 Thread Paulo Gabriel Poiati
Paulo Gabriel Poiati added the comment: You are absolutely right David. I was calling join after putting `None` in the queue. Sorry, I'm closing this. -- resolution: -> not a bug status: open -> closed ___ Python tracker <http://b

[issue26382] List object memory allocator

2016-02-18 Thread Catalin Gabriel Manciu
New submission from Catalin Gabriel Manciu: Hi All, This is Catalin from the Server Scripting Languages Optimization Team at Intel Corporation. I would like to submit a patch that replaces the 'malloc' allocator used by the list object (Objects/listobject.c) with the small object

[issue26382] List object memory allocator

2016-02-18 Thread Catalin Gabriel Manciu
Changes by Catalin Gabriel Manciu : Added file: http://bugs.python.org/file41954/listobject_CPython2.patch ___ Python tracker <http://bugs.python.org/issue26382> ___ ___

[issue26382] List object memory allocator

2016-02-19 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: Hi Victor, This patch follows the same idea as your proposal, but it's focused on a single object type. I think doing this incrementally is the safer approach, allowing us to have finer control over the new areas where we enable allocating usin

[issue26382] List object memory allocator

2016-02-19 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: Theoretically, an object type that consistently allocates more than the small object threshold would perform a bit slower because it would first jump to the small object allocator, do the size comparison and then jump to malloc. There would be a small

[issue26249] Change PyMem_Malloc to use PyObject_Malloc allocator?

2016-02-22 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: Hi all, Please find below the results from a complete GUPB run on a patched CPython 3.6. In average, an improvement of about 2.1% can be observed. I'm also attaching an implementation of the patch for CPython 2.7 and its benchmark results. On

[issue26382] List object memory allocator

2016-02-22 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: Our Haswell-EP OpenStack Swift setup shows a 1% improvement in throughput rate using CPython 2.7 (5715a6d9ff12) with this patch. -- ___ Python tracker <http://bugs.python.org/issue26

[issue26249] Change PyMem_Malloc to use PyObject_Malloc allocator?

2016-02-22 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: I've just posted the results to an OpenStack Swift benchmark run using the patch from my proposition, issue #26382. Victor's patch, applied to CPython 2.7, adds an extra 1% compared to mine (which improved throughput by 1%), effectively do

[issue26832] ProactorEventLoop doesn't support stdin/stdout nor files with connect_read_pipe/connect_write_pipe

2016-04-22 Thread Gabriel Mesquita Cangussu
New submission from Gabriel Mesquita Cangussu: The documentation of asyncio specifies that the methods connect_read_pipe and connect_write_pipe are available on Windows with the ProactorEventLoop. The documentation then says that those methods accept file-like objects on the pipe parameter

[issue26832] ProactorEventLoop doesn't support stdin/stdout nor files with connect_read_pipe/connect_write_pipe

2016-05-01 Thread Gabriel Mesquita Cangussu
Gabriel Mesquita Cangussu added the comment: Terry, About your question, "Isn't there some other way to asynchronously read/file files, as opposed to sockets and pipes, on Windows?", that is exactly the problem I was trying to overcome, specifically for reading the stdin. O

<    1   2   3   4