Skip to content
Myr

Merge pull request #1163 from pallets/traceback-32-bit

Before adoption: this commit came in with the history the project adopted, so no landing records it.

better PyObject_HEAD size calculation

authored by David Lord · committed by GitHub · parents eccf9a0, 40e70b8 · Browse files · 2 files+3 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−4 removed

  • other:+3 added−4 removed

2 files+3 added−4 removed

modified:src/jinja2/debug.py+1 added-4 removed
243 unmodified lines
244245 class _CTraceback(ctypes.Structure):246 _fields_ = [247 # Extra PyObject slots when compiled with Py_TRACE_REFS.248 (249 "PyObject_HEAD",250 ctypes.c_byte * (32 if hasattr(sys, "getobjects") else 16),251 ),248 ("PyObject_HEAD", ctypes.c_byte * object().__sizeof__()),249 # Only care about tb_next as an object, not a traceback.250 ("tb_next", ctypes.py_object),251 ]252
16 unmodified lines
modified:CHANGES.rst+2 added
8 unmodified lines
9 :class:`~unittest.mock.Mock` to be treated as a10 :func:`contextfunction`. :issue:`1145`11- Update ``wordcount`` filter to trigger :class:`Undefined` methods12 by wrapping the input in :func:`soft_unicode`. :pr:`1160`13- Fix a hang when displaying tracebacks on Python 32-bit.14 :issue:`1162`151617Version 2.11.118--------------
737 unmodified lines