[issue40724] Support buffer protocol with type specs

2020-06-05 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: +patch pull_requests: +19868 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20648 ___ Python tracker <https://bugs.python.org/issu

[issue40874] Update to libmpdec-2.5.0

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : Synopsis: There are no relevant new features for _decimal, but it would be too much work/error prone to have divergent code in libmpdec-2.5.0 and Python 3.9, especially for the Linux distributions. I'll release libmpdec-2.5.0/libmpdec++-2.5.0 in a mon

[issue40874] Update to libmpdec-2.5.0

2020-06-05 Thread Stefan Krah
Change by Stefan Krah : -- keywords: +patch pull_requests: +19872 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20652 ___ Python tracker <https://bugs.python.org/issu

[issue40877] Code coverage is blocking a merge again

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : Again code coverage prevents the merge button from going green: https://travis-ci.org/github/python/cpython/jobs/695095365 "The job exceeded the maximum time limit for jobs, and has been terminated." Why can this not run on buildbot.

[issue40874] Update to libmpdec-2.5.0

2020-06-05 Thread Stefan Krah
Stefan Krah added the comment: New changeset 087d612efebe7c64e5f079b07e0454111859830e by Stefan Krah in branch 'master': bpo-40874: Update to libmpdec-2.5.0 (GH-20652) https://github.com/python/cpython/commit/087d612efebe7c64e5f079b07e0454

[issue40877] Code coverage is blocking a merge again

2020-06-05 Thread Stefan Krah
Stefan Krah added the comment: It finally went through after Travis-CI hanging for about an hour. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue40874] Update to libmpdec-2.5.0

2020-06-05 Thread Stefan Krah
Change by Stefan Krah : -- versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issue40874> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40878] Use c99 on the aixtools bot

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : There appears to be an xlc buildbot with libmpdec failures. libmpdec uses C99 extern inline semantics. From the brief period that I had access to xlc I remember that xlc was quite picky about C99. Actually all of Python uses C99. So I think xlc_r needs to be

[issue40874] Update to libmpdec-2.5.0

2020-06-05 Thread Stefan Krah
Stefan Krah added the comment: New changeset 83bff88b4b16fb30491faa9263bbd6f3df4bab56 by Miss Islington (bot) in branch '3.9': bpo-40874: Update to libmpdec-2.5.0 (GH-20652) https://github.com/python/cpython/commit/83bff88b4b16fb30491faa9263bbd6

[issue40880] Invalid read in pegen.c

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : >From test_decimal: test_xor (test.test_decimal.PyIBMTestCases) ... ==17597== Invalid read of size 1 ==17597==at 0x64A7E2: newline_in_string (pegen.c:940) ==17597==by 0x64A84E: bad_single_statement (pegen.c:958) ==17597==by 0x64A

[issue40881] --with-valgrind broken

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : ./configure --with-valgrind: Objects/unicodeobject.c: In function ‘unicode_release_interned’: Objects/unicodeobject.c:15672:26: error: lvalue required as left operand of assignment Py_REFCNT(s) += 1; ^ Objects

[issue40883] parse_string.c: free "str"

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : Also in test_decimal, there's a small leak here: ==10040== 24 bytes in 1 blocks are definitely lost in loss record 549 of 5,095 ==10040==at 0x4C2DE56: malloc (vg_replace_malloc.c:299) ==10040==by 0x643B33: fstring_compile_expr (parse_string.

[issue40887] Leaks in new free lists

2020-06-06 Thread Stefan Krah
New submission from Stefan Krah : I'm opening a separate issue to prevent #40521 from getting too big. Lists and tuples sometimes leak (starting 69ac6e58f and later): ==1445== 56 bytes in 1 blocks are definitely lost in loss record 1,542 of 4,898 ==1445==at 0x4C2DE56: m

[issue40724] Support buffer protocol with type specs

2020-06-06 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset f7c4e236429606e1c982cacf24e10fc86ef4462f by scoder in branch 'master': bpo-40724: Support setting buffer slots from type specs (GH-20648) https://github.com/python/cpython/commit/f7c4e236429606e1c982cacf24e10f

[issue40724] Support buffer protocol with type specs

2020-06-07 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 1e4fa91104a03c44baa241326102cbec42d387f1 by Miss Islington (bot) in branch '3.9': bpo-40724: Support setting buffer slots from type specs (GH-20648) (GH-20683) https://github.com/python/cpython/commit/1e4fa91104a03c44baa241326102cb

[issue40724] Support buffer protocol with type specs

2020-06-07 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 1d711f2e31e02b2e9cbe4f109bf79541f56c35a2 by Miss Islington (bot) in branch '3.9': bpo-40724: Fix return type of test helper function heapctypewithbuffer_releasebuffer() (GH-20685) (GH-20690) https://github.com/python/cpyt

[issue40724] Support buffer protocol with type specs

2020-06-07 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40887] Free lists are still used after being finalized (cleared)

2020-06-08 Thread Stefan Krah
Stefan Krah added the comment: > It's not a regression. It's just that bpo-40521 helped Valgrind to detect > such bug :-) Yes, I suspected that previously reachable global objects were just unreachable after the new free lists. Th

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2020-06-08 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 301f0d4ff9b6bd60599eea0612904f65a92e6dd9 by Shantanu in branch 'master': bpo-33187: Document 3.9 changes to xml.etree.ElementInclude.include (GH-20438) https://github.com/python/cpython/commit/301f0d4ff9b6bd60599eea0612904f

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2020-06-08 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 301f0d4ff9b6bd60599eea0612904f65a92e6dd9 by Shantanu in branch 'master': bpo-33187: Document 3.9 changes to xml.etree.ElementInclude.include (GH-20438) https://github.com/python/cpython/commit/301f0d4ff9b6bd60599eea0612904f

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Stefan Krah added the comment: I think I'm going to revert this for 3.7 and 3.8 -- not because of xlc (it is almost certainly a compiler or missing flag error), but because coordination with the Linux distributions is a mess, see #40874. I really want the system libmpdec to be the sa

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Change by Stefan Krah : -- pull_requests: +19948 pull_request: https://github.com/python/cpython/pull/20743 ___ Python tracker <https://bugs.python.org/issue39

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Change by Stefan Krah : -- pull_requests: +19949 pull_request: https://github.com/python/cpython/pull/20744 ___ Python tracker <https://bugs.python.org/issue39

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Stefan Krah added the comment: New changeset 706de4e5a4b21880c67f6b90e3a2147a258d6fc5 by Stefan Krah in branch '3.8': [3.8] Revert bpo-39576: Clarify the word size for the 32-bit build. (GH-20743) https://github.com/python/cpython/commit/706de4e5a4b21880c67f6b90e3a214

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Stefan Krah added the comment: New changeset c0b79450bc9e93105799528151c48d25af8240a3 by Stefan Krah in branch '3.7': [3.7] Revert bpo-39576: Clarify the word size for the 32-bit build. (GH-20744) https://github.com/python/cpython/commit/c0b79450bc9e93105799528151c48d

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Change by Stefan Krah : -- pull_requests: +19950 pull_request: https://github.com/python/cpython/pull/20745 ___ Python tracker <https://bugs.python.org/issue39

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Change by Stefan Krah : -- pull_requests: +19951 pull_request: https://github.com/python/cpython/pull/20746 ___ Python tracker <https://bugs.python.org/issue39

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Stefan Krah added the comment: New changeset 32c1fb07e6f2ded90e5dd24d4b46b7aa7a795d2e by Stefan Krah in branch '3.8': [3.8] Revert bpo-39576: docs: set context for decimal arbitrary precision arithmetic (GH-20745) https://github.com/python/cpyt

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Stefan Krah added the comment: New changeset 9bd891920a5186b7d02281ea9966225efa0ceba1 by Stefan Krah in branch '3.7': [3.7] Revert bpo-39576: docs: set context for decimal arbitrary precision arithmetic (GH-20746) https://github.com/python/cpyt

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Change by Stefan Krah : -- pull_requests: +19952 pull_request: https://github.com/python/cpython/pull/20747 ___ Python tracker <https://bugs.python.org/issue39

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Change by Stefan Krah : -- pull_requests: +19953 pull_request: https://github.com/python/cpython/pull/20748 ___ Python tracker <https://bugs.python.org/issue39

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Stefan Krah added the comment: New changeset 22faf6ad3bcc0ae478a9a3e2d8e35888d88d6ce8 by Stefan Krah in branch '3.7': [3.7] Revert bpo-39576: Prevent memory error for overly optimistic precisions (GH-20748) https://github.com/python/cpython/commit/22faf6ad3bcc0ae478a9a3e2d8e358

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Stefan Krah added the comment: New changeset 0f5a28f834bdac2da8a04597dc0fc5b71e50da9d by Stefan Krah in branch '3.8': [3.8] Revert bpo-39576: Prevent memory error for overly optimistic precisions (GH-20747) https://github.com/python/cpython/commit/0f5a28f834bdac2da8a04597dc0fc5

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-06-08 Thread Stefan Krah
Stefan Krah added the comment: The 3.9 change (see #40874) works successfully on all buildbots, except for the 32-bit xlc bot which should use c99_r. Additionally, it has been tested with the latest gcc/clang/icc/cl.exe, static analyzers and clang-tidy. It survives brute force allocation

[issue40923] Thread safety : disable intel’s compiler autopar where it’s being relevant.

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: s/icc/Python compiled with icc/ -- ___ Python tracker <https://bugs.python.org/issue40923> ___ ___ Python-bugs-list mailin

[issue40923] Thread safety : disable intel’s compiler autopar where it’s being relevant.

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: It would be easier to understand this issue if you provide the exact command line. icc also segfaults without -fwrapv, see #40223, so that may be the cause here, too. -- nosy: +skrah ___ Python tracker <ht

[issue40923] Thread safety : disable intel’s compiler autopar where it’s being relevant.

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: Yes, the generated Python crashes (as the link I gave shows). I'm using the command line, so I can't be of any assistance with Parallel Studio XE. -- ___ Python tracker <https://bugs.python.o

[issue40923] Thread safety : disable intel’s compiler autopar where it’s being relevant.

2020-06-09 Thread Stefan Krah
Change by Stefan Krah : -- nosy: -skrah ___ Python tracker <https://bugs.python.org/issue40923> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: The annoying "error" looks the same as #5614, which was closed as "won't fix". Is this the only place in the test suite now? If it is, I'm okay with squashing the remark. -- nosy

[issue40223] Add -fwrapv for new icc versions

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: I'm aware of what -fwrapv does, it is a long standing issue in Python. I didn't try to find the exact location of overflow, since we also use -fwrapv for gcc. It is also possible that giving -fwrapv to icc disables another optimization that is

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: "squashing the remark" means suppressing the message from malloc(). I would really like it if the test could be executed by default though. Looking at: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: Thanks for checking, it's a pity that os.putenv() does not work. There's a global variable malloc_logger that is set from the environment on startup: https://opensource.apple.com/source/libmalloc/libmalloc-53.1.1/src/malloc.c It seems to be always c

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: I have two observations: First, I think that the default DEBUG_WRITE_ALWAYS, which is the cause of this issue, is not C standard conforming -- The standard does not permit implementation defined diagnostics (global side effects!) on a completely normal

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: > What about overriding the default to DEBUG_WRITE_ON_CRASH if > MallocDebugReport is not set? That sounds like a very good compromise! -- ___ Python tracker <https://bugs.python.org/i

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: I would probably put all that code in a separate function like init_darwin_libc(), and call init_darwin_libc() in pymain_init(). The real fun will start when we figure out which OS X versions support this feature. I hope we have a buildbot for each

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: Changing the title to get more input from others. -- title: test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS -> OS X: malloc(): set default diagnostics to DE

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: No, it does not cause real issues. Adding this feature would just suppress chatty diagnostics like this one, which are a bit unfriendly: >>> [0] * 1 python3(36633,0x110c08dc0) malloc: can't allocate region :*** ma

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: But if malloc_print_configure() is not a public API, it should probably not be used. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: And indeed, with the new decimal MAX_PREC feature, you should see the misguided diagnostic as well on OS X: >>> from decimal import * >>> >>> c = getcontext() >>> c.prec = MAX_PREC >>> Decimal(4).sqrt() Decimal(

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-06-10 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset ec88e1bca81a167e6d5c0ac635e22f84298cb1df by Serhiy Storchaka in branch 'master': bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree module." (GH-20117) https://github.com/p

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-06-10 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 3b97d1becbe08cf56c58d9c740a4622cbf6285fd by Miss Islington (bot) in branch '3.9': bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree module." (GH-20117) (GH-20780) https://github.com/p

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-06-10 Thread Stefan Behnel
Stefan Behnel added the comment: The xml.etree.cElementTree module is restored. We'll see about what to do with it later. It hurts less to keep it around than to delete it. I think this ticket can be closed. -- resolution: -> fixed stage: patch review -> resolved s

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: > The first warning line in the initial message of this bug report tries to > allocate 872 petabyte. Yes, that's for systems like Linux where you never know what overallocation is going to permit and subsequently freeze the system. Special ca

[issue40703] PyType_FromSpec*() overwrites the type's "__module__"

2020-06-10 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 24b8bad6d30ae4fb37ee686a073adfa5308659f9 by scoder in branch 'master': bpo-40703: Let PyType_FromSpec() set "type.__module__" only if it is not set yet. (GH-20273) https://github.com/p

[issue40703] PyType_FromSpec*() overwrites the type's "__module__"

2020-06-10 Thread Stefan Behnel
Change by Stefan Behnel : -- stage: patch review -> test needed ___ Python tracker <https://bugs.python.org/issue40703> ___ ___ Python-bugs-list mai

[issue40703] PyType_FromSpec*() overwrites the type's "__module__"

2020-06-10 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 9419158a3e67ba2eadf33215568003ed723b0a98 by Miss Islington (bot) in branch '3.9': bpo-40703: Let PyType_FromSpec() set "type.__module__" only if it is not set yet. (GH-20273) (GH-20782) https://github.com/p

[issue40878] Use c99 on the aixtools bot

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: Thanks for this information. The buildbot, however, fails to compile C99 extern inline functions. Example: ld: 0711-317 ERROR: Undefined symbol: .mpd_issnan I understand the C99 extern inline feature like in this explanation: https://www.greenend.org.uk/rjk

[issue40878] Use c99 on the aixtools bot

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: So it would still be interesting to see what happens if you compile libmpdec with c99_r (emphasis mine): """ This command supports all ISO C99 language features, but does not support IBM language extensions. Use this invocation for *strict* con

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2020-06-15 Thread Stefan Krah
Stefan Krah added the comment: Can't we just use #ifndef __cplusplus instead of changing the function? I don't think anyone compiles the affected files with a C++ compiler. There are many areas in Include/* that fail with C++, e.g. isnan() with -std=c++11. -- no

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2020-06-15 Thread Stefan Krah
Stefan Krah added the comment: I've tested the MSVC _snprintf extremely extensively in _decimal and never had a problem. -- ___ Python tracker <https://bugs.python.org/is

[issue40878] Use c99 on the aixtools bot

2020-06-15 Thread Stefan Krah
Stefan Krah added the comment: Thanks! Ha, it turns out that c99_r has excellent C99 compliance. :) > Variable arguments macro RAISE_SYNTAX_ERROR was invoked with an empty > variable argument list. Totally legit, we should use xlc (at least the front end) more often. So maybe ou

[issue40989] [C API] Remove _Py_NewReference() and _Py_ForgetReference() from the public C API

2020-06-16 Thread Stefan Behnel
Stefan Behnel added the comment: To add to the list, Cython also calls _Py_NewReference() in its async generator code, which uses a free-list. That code was mostly copied from the CPython-internal implementation. Other freelist implementations in Cython call PyObject_INIT() instead, so I

[issue40989] [C API] Remove _Py_NewReference() and _Py_ForgetReference() from the public C API

2020-06-17 Thread Stefan Behnel
Stefan Behnel added the comment: I looked into the freelists a bit more and (as always) it's not quite that simple. Calling _Py_NewReference() allows keeping the "ob_type" pointer in place, whereas PyObject_INIT() requires a blank object in order to set the type and properly

[issue40704] PyIter_Check fails when compiling in the Limited API

2020-06-19 Thread Stefan Behnel
Stefan Behnel added the comment: It should be replaced with an actual function, which can be inline in the non-limited case. -- nosy: +scoder stage: -> needs patch type: -> compile error versions: +Python 3.10, Python 3.9 -Python 3.6, Pyth

[issue40704] PyIter_Check fails when compiling in the Limited API

2020-06-19 Thread Stefan Behnel
Stefan Behnel added the comment: You can see it from the tags on the commit, it was fixed in Py3.8. Duplicate of issue 33738. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.6, P

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-06-20 Thread Stefan Behnel
Stefan Behnel added the comment: I ran into this, too. I agree that the "hackcheck" loop on heap types is probably wrong. https://github.com/python/cpython/blob/04fc4f2a46b2fd083639deb872c3a3037fdb47d6/Objects/typeobject.c#L5947-L5977 It was written at a time (Py2.3?) when (p

[issue35975] Put back the ability to parse files where async/await aren't keywords

2020-06-20 Thread Stefan Behnel
Stefan Behnel added the comment: I was made aware [1] that the addition of the "cf_feature_version" field broke the backwards compatibility of the "PyRun_StringFlags()" function [2]. Unlike what the docs of "PyCompilerFlags" [3] suggest, the new field is not

[issue35975] Put back the ability to parse files where async/await aren't keywords

2020-06-20 Thread Stefan Behnel
Stefan Behnel added the comment: I wasn't sure which is better – solve it or leave it. But it seems a) easy to adapt to on user side, and b) solvable in CPython in a way that allows code that wants to adapt to work across 3.8.x versions. Only code that does not get adapted would risk fa

[issue35975] Put back the ability to parse files where async/await aren't keywords

2020-06-20 Thread Stefan Behnel
Stefan Behnel added the comment: PRs look good to me. Here is a test that fails for me with the master branch and works with your fixes. It has a slightly odd place in the subinterpreter tests, but I would argue that it's not entirely misplaced there. You would want to know

[issue35975] Put back the ability to parse files where async/await aren't keywords

2020-06-21 Thread Stefan Behnel
Stefan Behnel added the comment: Feel free to use the patch in any way you like. -- ___ Python tracker <https://bugs.python.org/issue35975> ___ ___ Python-bug

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-06-21 Thread Stefan Behnel
Stefan Behnel added the comment: This SO answer by Martijn Pieters explains the background: https://stackoverflow.com/a/44854477 and links to the original python-dev discussion: https://mail.python.org/pipermail/python-dev/2003-April/034535.html The current implementation checks that the

[issue41078] [C API] Convert PyTuple_GET_ITEM() macro to a static inline function

2020-06-22 Thread Stefan Behnel
Stefan Behnel added the comment: > Giving a direct access to an array or PyObject* (PyObject**) is causing > issues with other Python implementations, like PyPy, which don't use PyObject > internally. I'm wondering – if the intention is to help other implementations, then

[issue41078] [C API] Convert PyTuple_GET_ITEM() macro to a static inline function

2020-06-22 Thread Stefan Behnel
Stefan Behnel added the comment: > Also, later, these structures may change to be more efficient. Tuples? Really? Ok, quoting PEP-620: > Members of … PyTupleObject structures have not changed since the "Initial > revision" commit (1990) I honestly think the reason for t

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-06-23 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: +patch pull_requests: +20258 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21092 ___ Python tracker <https://bugs.python.org/issu

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-06-23 Thread Stefan Behnel
Stefan Behnel added the comment: I chose to go through the MRO, which takes multiple inheritance into account. -- stage: patch review -> ___ Python tracker <https://bugs.python.org/issu

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-06-23 Thread Stefan Behnel
Change by Stefan Behnel : -- stage: -> patch review ___ Python tracker <https://bugs.python.org/issue39960> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-06-24 Thread Stefan Krah
Stefan Krah added the comment: """ * Doc/c-api/buffer.rst: the table with ".. c:macro:: PyBUF_INDIRECT" is wrong. Sphinx fails because PyBUF_SIMPLE is declared twice. => use ":c:macro:`PyBUF_INDIRECT`" instead """ Hmm, grep shows: c-ap

[issue39277] _PyTime_FromDouble() fails to detect an integer overflow when converting a C double to a C int64_t

2020-06-24 Thread Stefan Krah
Stefan Krah added the comment: Is it a bug in float.__trunc__()? It seems to me that the detailed comment accounts for case of rounding up. That's why < is used instead of <=. -- nosy: +skrah, tim.peters ___ Python trac

[issue39277] _PyTime_FromDouble() fails to detect an integer overflow when converting a C double to a C int64_t

2020-06-25 Thread Stefan Krah
Stefan Krah added the comment: C99, 6.3.1.4 Real floating and integer: """ When a value of integer type is converted to a real floating type, if the value being converted can be represented exactly in the new type, it is unchanged. If the value being converted is in the range

[issue40874] Update to libmpdec-2.5.0

2020-06-28 Thread Stefan Krah
Change by Stefan Krah : -- pull_requests: +20355 pull_request: https://github.com/python/cpython/pull/21202 ___ Python tracker <https://bugs.python.org/issue40

[issue40874] Update to libmpdec-2.5.0

2020-06-28 Thread Stefan Krah
Stefan Krah added the comment: New changeset 8bea91b5e9ea07ca93958e131b436024f0b1b1cf by Stefan Krah in branch 'master': bpo-40874 Update the required libmpdec version for the decimal module (GH-21202) https://github.com/python/cpython/commit/8bea91b5e9ea07ca93958e131b4360

[issue40874] Update to libmpdec-2.5.0

2020-06-28 Thread Stefan Krah
Stefan Krah added the comment: New changeset 119de0eba839993cf6a909dba5d60202ad5566d6 by Miss Islington (bot) in branch '3.9': bpo-40874 Update the required libmpdec version for the decimal module (GH-21202) https://github.com/python/cpython/commit/119de0eba839993cf6a909dba5d602

[issue40874] Update to libmpdec-2.5.0

2020-06-28 Thread Stefan Krah
Stefan Krah added the comment: A very brief guide for all users of --with-system-libmpdec: Python 3.7 and Python 3.8 both require the release with this sha256sum: 83c628b90f009470981cf084c5418329c88b19835d8af3691b930afccb7d79c7 mpdecimal-2.4.2.tar.gz Python 3.9 requires the release

[issue39701] Azure Pipelines PR broken

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: This appears to be fixed now. -- status: open -> closed ___ Python tracker <https://bugs.python.org/issue39701> ___ ___ Python-

[issue40223] Add -fwrapv for new icc versions

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: icc does not like the label reordering from: ddd1949fea59f256e51191540a4446f75ed608fa This is one step further, but not much. Possibilities are still: 1) The reordering exposes an overflow. 2) The new ordering is not supported by icc, it introduces

[issue40223] Add -fwrapv for new icc versions

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: cc Benjamin, in case he has any ideas: icc does not like the label reordering in ceval.c, but that can be anything from an icc issue to an actual overflow in ceval.c. -- nosy: +benjamin.peterson ___ Python tracker

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: Ubuntu is my main system, and it does not break the build. If you use --with-system-libmpdec, you need to keep in sync with the external libmpdec. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: Please name a buildbot that does not pass. -- ___ Python tracker <https://bugs.python.org/issue40874> ___ ___ Python-bugs-list m

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: Or is this CoC bait again? -- ___ Python tracker <https://bugs.python.org/issue40874> ___ ___ Python-bugs-list mailing list Unsub

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: If Python is packaged with **system** libmpdec, you can only use the official Ubuntu Python/libmpdec version combination. Which are packaged by Matthias Klose, who is on the CC list here. Otherwise, why use the system libmpdec at all and not the version

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: You are talking to the author of libmpdec *and* the _decimal module. Perhaps this problem has occurred to me, too: $ diff -ur mpdecimal-2.5.0/libmpdec cpython-commit/Modules/_decimal/libmpdec/ Only in mpdecimal-2.5.0/libmpdec: .objs Only in mpdecimal-2.5.0

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: This is no release blocker. Version 2.5.0 has been in 3.9 for a long time, and people should use the correct version. -- priority: release blocker -> normal ___ Python tracker <https://bugs.python.org/issu

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: --with-system-libmpdec is a **long term** tool for distributions. Pinning the version number ensures that they use the correct version. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: > Anthony noted a new failure related to your unreviewed and under-documented > commit. He claimed a failure in Ubuntu (in a manner that I took as petulant), which isn't the case. It is a failure in a custom Ubuntu distro that uses --with-system-lib

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: > unreviewed and under-documented commit. libmpdec has been one of the few zero fault areas of Python. Please stop spreading FUD. -- ___ Python tracker <https://bugs.python.org/issu

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: > This has nothing to do with your excellent fault rate (lack of any issues). I sounds like that though for random people who read this issue and think that Łukasz is the grand release manager who puts a person in his place. That was incredibly inappropri

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: > I have opened bpo-41161 to address the issue. Thanks, that is a more considerate approach, I'll add the note! -- ___ Python tracker <https://bugs.python.org

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: Also note that people did not react at all to the fact that coroutine storage was not thread safe across several releases. No one asked for News entry. But "breaking" a fringe distro seems to be a majo

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: > The bot did ask you to add a news entry. And I deliberately did not, out of politeness. Two release managers were added and they did not ask. > Other core developer go through great length to keep backwards compatibility > for older or less comm

[issue40874] Update to libmpdec-2.5.0

2020-06-29 Thread Stefan Krah
Stefan Krah added the comment: Major correction: Victor *did* ask for a news entry, but otherwise I would not have added one. -- ___ Python tracker <https://bugs.python.org/issue40

<    6   7   8   9   10   11   12   13   14   15   >