[issue46673] Py_BuildValue tuple creation segfaults in python3.9..3.11

2022-02-07 Thread Olli Lupton
Olli Lupton added the comment: With apologies for the noise, I realise that the posted example does not handle the GIL correctly. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue46673] Py_BuildValue tuple creation segfaults in python3.9..3.11

2022-02-07 Thread Olli Lupton
New submission from Olli Lupton : The following function, compiled and linked into a shared library, segfaults when called from Python: ``` #define PY_SSIZE_T_CLEAN #include extern "C" PyObject* my_func() { return Py_BuildValue("(O)", Py_None); } ``` called using cty

[issue43903] round() produces incorrect results with certain values

2021-04-21 Thread Olli
Olli added the comment: Just because incorrect results are documented, that doesn't mean the current implementation could not be improved. More over, Python 2.7.16 on the same machine produces expected results: Python 2.7.16 (default, Dec 21 2020, 23:00:36) [GCC Apple LLVM 12.0.0 (clang

[issue43903] round() produces incorrect results with certain values

2021-04-21 Thread Olli
New submission from Olli : When rounding numbers with round(), middle values at with even base number are rounded in wrong direction. Python 3.9.1 (default, Feb 3 2021, 07:38:02) [Clang 12.0.0 (clang-1200.0.32.29)] on darwin MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports) macOS 11.2.3

[issue32587] Make REG_MULTI_SZ support PendingFileRenameOperations

2018-01-18 Thread Seppo Yli-Olli
Seppo Yli-Olli <seppo.yli-o...@iki.fi> added the comment: I don't personally know enough of CPython (I barely know enough C) to do the patches but I'd just comment that as this might increase complexity of implementation and wide char API's are used, it might be prudent to make sure t

[issue32587] Make REG_MULTI_SZ support PendingFileRenameOperations

2018-01-17 Thread Seppo Yli-Olli
New submission from Seppo Yli-Olli <seppo.yli-o...@iki.fi>: MSDN documents that REG_MULTI_SZ is not supposed to have \0\0 anywhere else than in the end. The comment in https://github.com/python/cpython/blob/a5293b4ff2c1b5446947b4986f98ecf5d52432d4/PC/winreg.c#L504 clearly shows that

[issue12641] Remove -mno-cygwin from distutils

2013-05-25 Thread Seppo Yli-Olli
Seppo Yli-Olli added the comment: Since Renata's ERRATA was unclear to whether or not this was *actually* removed (please point to a changeset if the option was removed): If the option is no longer required by Pidgin and that was the original reason to have it in the first, there's really

[issue12641] Remove -mno-cygwin from distutils

2013-05-25 Thread Seppo Yli-Olli
Seppo Yli-Olli added the comment: ERRATA Misunderstood the meaning of ERRATA, please ignore my last post. Roumen Petrov wrote: Where is written that compiler is gcc ? Yes this is current distutils code but please review my set of patches I kinda like the using --target-help for finding out

[issue12641] Remove -mno-cygwin from distutils

2011-10-25 Thread Seppo Yli-Olli
Seppo Yli-Olli seppo.ylio...@gmail.com added the comment: Would it be practical to have a trivial compilation test to see if we are capable of using GCC with -mno-cygwin and if so, use it, otherwise drop off? I think GNU autotools uses a similar strategy for detecting compiler capabilities

[issue12430] Pip fails to fetch from mirror if PyPi checksum times out

2011-06-28 Thread Seppo Yli-Olli
New submission from Seppo Yli-Olli seppo.ylio...@gmail.com: Checksums need to be mirrored as well, otherwise having mirrors is a waste of money because PyPi main server being slow ends up with whole download failing. If this is the wrong bug tracker, please advice me to the right one so

[issue12430] Pip fails to fetch from mirror if PyPi checksum times out

2011-06-28 Thread Seppo Yli-Olli
Changes by Seppo Yli-Olli seppo.ylio...@gmail.com: -- type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12430 ___ ___ Python