Change by Sam Gross :
--
keywords: +patch
pull_requests: +28673
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30470
___
Python tracker
<https://bugs.python.org/issu
Change by Sam Gross :
--
nosy: +vstinner
___
Python tracker
<https://bugs.python.org/issue46205>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Sam Gross :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue46205>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Sam Gross :
The runtest_mp.py has a race condition between checking for worker.is_alive()
and processing the queue that can lead to indefinite hangs.
The hang happens when the all the results from the self.output queue are
processed but at least one of the workers hasn
Change by Sam Gross :
--
keywords: +patch
pull_requests: +27860
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29628
___
Python tracker
<https://bugs.python.org/issu
New submission from Sam Gross :
Starting in Python 3.6 the line numbers table contains a *signed* byte
indicating line delta. The calculation in Tools/gdb/libpython.py was not
updated to handle signed bytes leading to incorrect line numbers when running
"py-bt" (or printing fram
Change by Sam Gross :
--
pull_requests: +27844
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29601
___
Python tracker
<https://bugs.python.org/issu
Change by Sam Gross :
--
keywords: +patch
Added file: https://bugs.python.org/file50447/issue45835_repro.patch
___
Python tracker
<https://bugs.python.org/issue45
New submission from Sam Gross :
The test_queue suite has a race condition that can lead to test failures in
test_many_threads, test_many_threads_nonblock, and test_many_threads_timeout.
Consumers are signaled to exit by a sentinel value (None). The sentinel values
are at the end of the input
Change by Sam Gross :
--
pull_requests: +27843
pull_request: https://github.com/python/cpython/pull/29600
___
Python tracker
<https://bugs.python.org/issue42
Sam Gross added the comment:
The `pthread_exit` behavior has been a problem for PyTorch and related
libraries since Python 3.9. The PyTorch team has tried working around the
problems without success (i.e. they keep getting bug reports involving crashes
in PyEval_SaveThread/RestoreThread
Change by Sam Gross :
--
keywords: +patch
nosy: +colesbury
nosy_count: 2.0 -> 3.0
pull_requests: +27812
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29564
___
Python tracker
<https://bugs.python.org/i
Sam Gross added the comment:
The attached patch (issue45809-repro.patch) introduces artificial delays to
make reproduction of the underlying issue easier.
To reproduce the issue:
patch -p1 < issue45809-repro.patch
./python -m test test_weakref -m test_threaded_weak_value_dict_deepc
New submission from Sam Gross :
The issue described issue7105 (and maybe issue7060) still exists due to a race
condition in WeakKeyDictionary. This shows up as test failure that looks like:
test test_weakref failed -- Traceback (most recent call last):
File "Lib/test/test_weakr
Change by Sam Gross :
--
pull_requests: +27513
pull_request: https://github.com/python/cpython/pull/29249
___
Python tracker
<https://bugs.python.org/issue28
Change by Sam Gross :
--
keywords: +patch
pull_requests: +27510
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29246
___
Python tracker
<https://bugs.python.org/issu
Sam Gross added the comment:
Antoine Pitrou already fixed the "noddy4" example (now renamed to "custom4")
and updated the newtypes_tutorial, but I think it's still worth mentioning
PyObject_GC_Untrack in a few additional places.
--
_
Change by Sam Gross :
--
assignee: docs@python -> colesbury
___
Python tracker
<https://bugs.python.org/issue28737>
___
___
Python-bugs-list mailing list
Un
Change by Sam Gross :
--
type: enhancement -> behavior
___
Python tracker
<https://bugs.python.org/issue44657>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Sam Gross :
The instancemethod_call function should use the PyInstanceMethod_GET_FUNCTION
macro instead of the PyMethod_GET_FUNCTION macro. The current code is
incorrect, but still works okay (doesn't crash) because
PyInstanceMethodObject.func is at the same offs
Sam Gross added the comment:
It may be worth considering C-API extensions written in C++. Flexible array
members are not part of the C++ standard, although GCC, Clang, and MSVC support
them as an extension. GCC and Clang will issue warnings with `-Wpedantic` and
MSVC will issue warnings
Sam Gross added the comment:
Yes, that fixes the warnings for me. Thanks!
--
___
Python tracker
<https://bugs.python.org/issue39571>
___
___
Python-bugs-list m
Sam Gross added the comment:
Alternatively I think you can just remove the typedef from
Include/cpython/object.h since Include/object.h is always included first. i.e.:
typedef struct _typeobject {
...
} PyTypeObject;
to simply
struct _typeobject
New submission from Sam Gross :
A recent commit added a typedef for PyTypeObject in Include/object.h
https://github.com/python/cpython/commit/0e4e735d06967145b49fd00693627f3624991dbc
This duplicates the typedef in Include/cpython/object.h. Building with clang
now issues a warning:
./Include
New submission from Sam Gross :
The implementation of weakref.proxy's methods call back into the Python API
using a "borrowed reference" of the weakly referenced object (acquired via
PyWeakref_GET_OBJECT). This API call may delete the last reference to the
object (either dir
New submission from Sam Gross:
In general, an a PyTypeObject that has Py_TPFLAGS_HAVE_GC set must call
PyObject_GC_UnTrack() before it frees any PyObject* references it owns. The
only reference to this requirement I found is in
https://docs.python.org/3/c-api/gcsupport.html#c
26 matches
Mail list logo