[issue38849] test_timestamp_naive fails on android

2019-11-19 Thread Xavier de Gaye
New submission from Xavier de Gaye : test_timestamp_naive of test_datetime fails on android API 24: generic_x86_64:/data/local/tmp/python $ python -m test -v test_datetime -m test_timestamp_naive == CPython 3.9.0a0 (heads/abifa-dirty:cf805c25e6, Nov 18 2019, 16:40:26) [Clang 8.0.2 (https

[issue38850] test_largefile fails on android

2019-11-19 Thread Xavier de Gaye
New submission from Xavier de Gaye : The failure on andoid API 24: generic_x86_64:/data/local/tmp/python $ python -m test -v test_largefile -m test_it == CPython 3.9.0a0 (heads/abifa-dirty:cf805c25e6, Nov 18 2019, 16:40:26) [Clang 8.0.2 (https://andro id.googlesource.com/toolchain/clang

[issue38841] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2019-11-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: No, it is the SELinux configuration on android devices that forbids binds to named UNIX sockets. Changing from a named UNIX socket to an unnamed UNIX socket would fix the problem. I don't know if all platforms support unnamed UNIX sockets. The fix in

[issue38851] UDPLITE tests fail on android

2019-11-19 Thread Xavier de Gaye
New submission from Xavier de Gaye : Attached test_socket.txt is the output of running 'python -m test -v test_socket' on android API 24. The 108 tests in error are UDPLITE tests introduced in issue #37345. -- components: Tests files: test_socket.txt messages: 356985 nosy

[issue38852] test_recursion_limit in test_threading crashes with SIGSEGV on android

2019-11-19 Thread Xavier de Gaye
New submission from Xavier de Gaye : Actually it is the script that is spawned by test_recursion_limit that crashes with SIGSEGV on android API 24. Lowering the recursion limit in the script from 1000 to 100 with sys.setrecursionlimit() fixes the problem. Here is the error: generic_x86_64

[issue38841] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2019-11-20 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +16787 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17294 ___ Python tracker <https://bugs.python.org/issu

[issue38840] incorrect __all__ list in multiprocessing.managers module

2019-11-20 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +16788 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17296 ___ Python tracker <https://bugs.python.org/issu

[issue38848] compileall fails when the platform lacks a functional sem_open()

2019-11-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: Changing the title to "compileall fails when the platform lacks a functional sem_open()" as the problem lies in the compileall module itself. Nosying Antoine as the author of issue #36786. compileall fails on android API 24: generic_x86_64:/data

[issue38841] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2019-11-20 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker <https://bugs.python.or

[issue38848] compileall fails when the platform lacks a functional sem_open()

2019-11-20 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +16792 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17300 ___ Python tracker <https://bugs.python.org/issu

[issue38852] test_recursion_limit in test_threading crashes with SIGSEGV on android

2019-11-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: The crash occurs only on debug builds. See the FreeBSD related issue #37906. -- ___ Python tracker <https://bugs.python.org/issue38

[issue37906] FreeBSD: test_threading: test_recursion_limit() crash with SIGSEGV and create a coredump

2019-11-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: See the android related issue #38852. -- nosy: +xdegaye ___ Python tracker <https://bugs.python.org/issue37906> ___ ___ Pytho

[issue38852] test_recursion_limit in test_threading crashes with SIGSEGV on android

2019-11-22 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +16821 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17337 ___ Python tracker <https://bugs.python.org/issu

[issue38852] test_recursion_limit in test_threading crashes with SIGSEGV on android

2019-11-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: Using test and try with _thread.stack_size(new_size), the pthread stack sizes must be set to the following minimums to prevent stack overflow and get a RecursionError: * debug builds:7 Mb * no-debug builds: 1 Mb The default stack size for the main

[issue28833] cross compilation of third-party extension modules

2019-11-30 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +16901 pull_request: https://github.com/python/cpython/pull/17420 ___ Python tracker <https://bugs.python.org/issue28

[issue28833] cross compilation of third-party extension modules

2019-11-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: PR 17420 fixes cross-compilation of third-party extension modules. The PYTHON_PROJECT_BASE environment variable is the path to the directory where Python has been cross-compiled. It is used by the native python interpreter to find the target sysconfigdata

[issue38949] incorrect prefix, exec_prefix in distutils.command.install

2019-12-01 Thread Xavier de Gaye
New submission from Xavier de Gaye : In function finalize_options() of Lib/distutils/command/install.py at https://github.com/python/cpython/blob/575d0b46d122292ca6e0576a91265d7abf7cbc3d/Lib/distutils/command/install.py#L284 (prefix, exec_prefix) is set using get_config_vars(). This may be

[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-07 Thread Xavier de Gaye
New submission from Xavier de Gaye : Title: testFsum failure caused by constant folding of a float expression Description: Python (Python 3.9.0a1+ heads/master-dirty:ea9835c5d1) is built on a Linux x86_64. This native interpreter is used to cross-compile Python (using the same

[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-07 Thread Xavier de Gaye
Change by Xavier de Gaye : Added file: https://bugs.python.org/file48763/foo.arm64 ___ Python tracker <https://bugs.python.org/issue38992> ___ ___ Python-bugs-list mailin

[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Yes PR GH-17513 does fix the problem. Thanks Mark. -- ___ Python tracker <https://bugs.python.org/issue38992> ___ ___ Pytho

[issue38949] incorrect prefix, exec_prefix in distutils.command.install

2019-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: get_config_vars() defined in distutils.sysconfig sets 'prefix' and 'exec_prefix' using sys.prefix (resp. sys.exec_prefix) on non nt platforms so there is no problem. Closing the issue as not a bug. -- resolution: -> not a

[issue38852] test_recursion_limit in test_threading crashes with SIGSEGV on android

2019-12-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue38852> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38840] incorrect __all__ list in multiprocessing.managers module

2019-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Not interested anymore in android stuff. -- ___ Python tracker <https://bugs.python.org/issue38840> ___ ___ Python-bugs-list m

[issue38848] compileall fails when the platform lacks a functional sem_open()

2019-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Not interested anymore in android stuff. -- ___ Python tracker <https://bugs.python.org/issue38848> ___ ___ Python-bugs-list m

[issue38851] UDPLITE tests fail on android

2019-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Not interested anymore in android stuff. -- ___ Python tracker <https://bugs.python.org/issue38851> ___ ___ Python-bugs-list m

[issue38850] test_largefile fails on android

2019-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Not interested anymore in android stuff. -- ___ Python tracker <https://bugs.python.org/issue38850> ___ ___ Python-bugs-list m

[issue38849] test_timestamp_naive fails on android

2019-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Not interested anymore in android stuff. -- stage: needs patch -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue25172] Unix-only crypt should not be present on Windows.

2019-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Not interested anymore in android stuff. -- ___ Python tracker <https://bugs.python.org/issue25172> ___ ___ Python-bugs-list m

[issue36414] Multiple test failures in GCC and Clang optional builds on Travis CI

2019-12-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue36414> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36758] configured libdir not correctly passed to Python executable

2019-12-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue36758> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35813] shared memory construct to avoid need for serialization between processes

2019-12-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue35813> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38840] incorrect __all__ list in multiprocessing.managers module

2019-12-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue38840> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38848] compileall fails when the platform lacks a functional sem_open()

2019-12-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue38848> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38851] UDPLITE tests fail on android

2019-12-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue38851> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38850] test_largefile fails on android

2019-12-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue38850> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38849] test_timestamp_naive fails on android

2019-12-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- stage: resolved -> ___ Python tracker <https://bugs.python.org/issue38849> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue25172] Unix-only crypt should not be present on Windows.

2019-12-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue25172> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28833] cross compilation of third-party extension modules

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue28833> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue28190> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36361] generate correct pyconfig.h when cross-compiling

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue36361> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36351] the ipv6type variable in configure.ac may be set incorrectly when cross-compiling

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue36351> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36214] AC_RUN_IFELSE macros not used as arguments of AC_CACHE_VAL et al

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue36214> ___ ___ Pyth

[issue36125] Cannot cross-compile to more featureful but same tune

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue36125> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27640] add the '--disable-test-suite' option to configure

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue27640> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue36141> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36145] android arm cross compilation fails, config issue

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue36145> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue35997> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31046] ensurepip does not honour the value of $(prefix)

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue31046> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26852] add the '--enable-sourceless-distribution' option to configure

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue26852> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35953] crosscompilation fails with clang on android

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue35953> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13886] readline-related test_builtin failure

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue13886> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26855] android: add platform.android_ver()

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue26855> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32203] [ctypes] test_struct_by_value fails on android-24-arm64

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue32203> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32202] [ctypes] all long double tests fail on android-24-x86_64

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue32202> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32461] the first build after a change to Makefile.pre.in uses the old Makefile

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue29267] Cannot override some flags in CFLAGS from the command-line

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue29267> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28542] document cross compilation

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue28542> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20211] setup.py: do not add system header locations when cross compiling

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue20211> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28207] Use pkg-config to find dependencies

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue28207> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28125] identify cross builds by a more generic environment setting.

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue28125> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22724] byte-compile fails for cross-builds

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue22724> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue26971> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26859] unittest fails with "Start directory is not importable" when trying to run sourceless tests

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue26859> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30386] Add a build infrastructure for Android

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> works for me stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue31114] 'make install' fails when the configure 'prefix' is '/' and DESTDIR is used

2019-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: -xdegaye ___ Python tracker <https://bugs.python.org/issue31114> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11245] Implementation of IMAP IDLE in imaplib?

2019-12-19 Thread Josh de Kock
Josh de Kock added the comment: Hi, I'm new to python but I had a go at implementing this for imaplib(1) using a different approach. It works but it has a couple issues (see patch), I would appreciate any thoughts/improvements. -- nosy: +jdek versions: +Python 3.9 -Python 3.6

[issue39052] import error when in python -m pdb debug mode

2019-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: As a workaround insert the following hard-coded breakpoint before the import statement and run your script with python, i.e. 'python myhome.py' instead of 'python -m pdb myhome.p'. from pdb import Pdb; Pdb(skip=['importlib*']

[issue39115] Clarify Python MIME type

2019-12-21 Thread Josh de Kock
New submission from Josh de Kock : I'd like to add Python's MIME types to a database so that they can be properly used by other services. However, apart from the source code[1][2], I can't find any documentation from Python which highlights this. Is the source code correct h

[issue39115] Clarify Python MIME type

2019-12-23 Thread Josh de Kock
Josh de Kock added the comment: An IANA media type assignment would be even better than a '*/x-*' MIME, of course, but my original intention was just to clarify that the MIMEs in the cpython source can be used as documentation for 'which MIME should you use when sendin

[issue39115] Clarify Python MIME type

2019-12-23 Thread Josh de Kock
Josh de Kock added the comment: I just wanted the intended MIME type for sending python over various mediums to be written down somewhere other than the source code, but I'm not sure where it should go. Though if you don't think it is necessary then that is fine too, I mostly ju

[issue39168] Generic type subscription is a huge toll on Python performance

2020-01-13 Thread Wouter De Borger
Change by Wouter De Borger : -- nosy: +Wouter De Borger ___ Python tracker <https://bugs.python.org/issue39168> ___ ___ Python-bugs-list mailing list Unsub

[issue22724] byte-compile fails for cross-builds

2020-01-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: PYTHON_FOR_BUILD does not use PYTHONPATH in the implementation of (closed) PR 17420 and should fix the current issue as a side effect. FWIW, PR 17420 fixes cross-compilation of third-party extension modules by replacing the complex PYTHON_FOR_BUILD command

[issue39430] tarfile.open(mode="r") race condition when importing lzma

2020-01-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: In msg360620 Serhiy wrote: > When the interpreter encounters "import foo" in bar.py, the import machinery > takes the module foo from sys.modules. > So you break an infinite cycle and can import modules with cyclic > dependencies. The

[issue39430] tarfile.open(mode="r") race condition when importing lzma

2020-01-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: This fixed the bug. To reproduce the bug, substitute the "from _lzma import *" statement with "raise ImportError" in Lib/lzma.py to simulate that the _lzma module is missing and run the test.py script written an

[issue39963] Subclassing slice objects

2020-03-13 Thread Mario de OOurtzborun
New submission from Mario de OOurtzborun : Is there any reason why slice objects aren't subclassable? I want a mutable slice object, but there is no way to create one that will work with lists or tuples. And __index__ method requires to return int. I want to prepare a git merge request

[issue22699] Module source files not found when cross-compiling

2020-03-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: Steve wrote: > In my build, I've set PYTHON_FOR_BUILD=python3.8 This will not work, PYTHON_FOR_BUILD when cross-compiling is set by configure as: PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_

[issue22699] Module source files not found when cross-compiling

2020-03-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Is that epic line automatically generated? When cross compiling it is generated by the configure script and configure replaces the right hand side of "PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@" of Makefile.pre.in with the generated value into Mak

[issue40403] pdb does not drop into debugger upon SyntaxError caused by ast.literal_eval

2020-06-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: In Kerrick's example ast.literal_eval('') could be ast.literal_eval(some_code) instead where some_code is a string containing dynamically generated Python code. pdb post-mortem debugging must allow finding the syntax error in this code. The

[issue40403] pdb does not drop into debugger upon SyntaxError caused by ast.literal_eval

2020-06-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Perhaps we should should test whether the exception happened there and not > drop in the debugger in that case? The same kind of problem occurs for any post-mortem debugging raised by an uncaught exception in the user code: the backtrace displayed

[issue41285] memoryview does not support subclassing

2020-07-12 Thread Michiel de Hoon
New submission from Michiel de Hoon : Currently memoryview does not support subclassing: >>> class B(memoryview): pass ... Traceback (most recent call last): File "", line 1, in TypeError: type 'memoryview' is not an acceptable base type Subclassing memoryvi

[issue41285] memoryview does not support subclassing

2020-07-14 Thread Michiel de Hoon
Michiel de Hoon added the comment: Thank you, I have posted an explanation in the "Ideas" category of discuss.python.org. -- ___ Python tracker <https://bugs.python.o

[issue41285] memoryview does not support subclassing

2020-07-15 Thread Michiel de Hoon
Michiel de Hoon added the comment: You are correct, this is indeed a duplicate of #13797. My apologies for not finding this issue before opening a new one. If there are no objections, I will close this issue as a duplicate. -- ___ Python tracker

[issue41759] ElementTree.parse gives error message about missing1 required positional argument: 'source' but it is there

2020-09-11 Thread Freek de Kruijf
New submission from Freek de Kruijf : In a function definition I have the following piece of code: try: with open(requests,'rt') as f: tree = ElementTree.parse(f) On execution I got: Traceback (most recent call last): File "/srv/www/bin/web.py

[issue41759] ElementTree.parse gives error message about missing1 required positional argument: 'source' but it is there

2020-09-11 Thread Freek de Kruijf
Freek de Kruijf added the comment: Op vrijdag 11 september 2020 11:31:29 CEST schreef u: > Serhiy Storchaka added the comment: > > parse() is an instance method. It should be called as tree.parse(f) (where > tree is an instance of ElementTree), not ElementTree.parse(f). >

[issue41759] ElementTree.parse gives error message about missing1 required positional argument: 'source' but it is there

2020-09-11 Thread Freek de Kruijf
Freek de Kruijf added the comment: Op vrijdag 11 september 2020 17:06:43 CEST schreef u: > Serhiy Storchaka added the comment: > > It was not clear what you do without code and full traceback. > > The example uses *function* parse() from *module* ElementTree. Your code >

[issue42056] Configure on Apple ARM: "Unexpected output of 'arch' on OSX"

2020-10-16 Thread Misty De Méo
New submission from Misty De Méo : Configure's `arch` check on Macs running with Apple Silicon CPUs will fail because the list of acceptable architectures is hardcoded to Intel and PowerPC: https://github.com/python/cpython/blob/master/configure.ac#L2486-L2496 This needs a clause that

[issue42056] Configure on Apple ARM: "Unexpected output of 'arch' on OSX"

2020-10-16 Thread Misty De Méo
Change by Misty De Méo : -- keywords: +patch pull_requests: +21696 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22732 ___ Python tracker <https://bugs.python.org/issu

[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-20 Thread Andrew de Quincey
New submission from Andrew de Quincey : We've been having some mysterious hangs in our threaded code. Debugging with GDB shows it ends up deadlocking during logging inside logging._acquireLock() I googled and found someone else with the same issue: https://stackoverflow.com/ques

[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-20 Thread Andrew de Quincey
Andrew de Quincey added the comment: Debugging a bit more shows our code is deadlocked at: File "/usr/lib/python3.7/logging/__init__.py", line 219, in _acquireLock _lock.acquire() File "/usr/lib/python3.7/logging/config.py", line 501, in configure logging._

[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-20 Thread Andrew de Quincey
Andrew de Quincey added the comment: My colleague reports it does happen on their Mac as well, but that it took about 50 tries for it to trigger. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-20 Thread Andrew de Quincey
Andrew de Quincey added the comment: Before anyone suggests it might be the logstash code we're calling in the comment, it ain't. The bug is easily replicated using entirely python built in code. See test.py attached. If you're having trouble triggering it (seems to v

[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-20 Thread Andrew de Quincey
Change by Andrew de Quincey : Removed file: https://bugs.python.org/file49531/test.py ___ Python tracker <https://bugs.python.org/issue42097> ___ ___ Python-bugs-list m

[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-26 Thread Andrew de Quincey
Andrew de Quincey added the comment: Hi, sorry, I was ill on Friday, apologies for the delayed reply. We're not using os.fork() directly, and I'm afraid the multiprocessing thing I mentioned was a bit of a red herring. We're using a capped pool of threads to spawn subp

[issue41100] Build failure on macOS 11 (beta)

2020-10-27 Thread Misty De Méo
Change by Misty De Méo : -- nosy: +mistydemeo nosy_count: 11.0 -> 12.0 pull_requests: +21922 pull_request: https://github.com/python/cpython/pull/22732 ___ Python tracker <https://bugs.python.org/issu

[issue42424] add constructor that support multiple context managers to contextlib.ExitStack and contextlib.AsyncExitStack

2020-11-21 Thread Vito De Tullio
New submission from Vito De Tullio : The enhancement is to add a __init__ method to both contextlib.ExitStack and contextlib.AsyncExitStack, so that you can pass (async)context managers directly in the costructor. additionally, a new "context_managers" / "async_context_man

[issue13183] pdb skips frames after hitting a breakpoint and running step

2012-03-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: This message is just a reminder that this 4 months old issue raises the point that the step command in pdb is broken. A patch and test case have been proposed. No comment so far. As the author of pyclewn, a Vim front end to pdb and gdb, I would be grateful for

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2019-05-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: What do you mean ? What is "this" ? -- ___ Python tracker <https://bugs.python.org/issue28971> ___ ___ Python-bugs-l

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-05-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: FWIW I checked the Android build after those last changes. -- ___ Python tracker <https://bugs.python.org/issue21536> ___ ___

[issue36954] test_recursive_repr breaks tracing in test_xml_etree

2019-05-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: @gphemsley Can you please provide the output of running test_xml_etree with tracing. -- nosy: +xdegaye ___ Python tracker <https://bugs.python.org/issue36

[issue37011] pdb: restore original tracing function instead of sys.settrace(None)

2019-05-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: > While typically pdb is not used in tests, it is just good practice, given > that there can only be a single trace function. IMO invoking "good practice" is not sufficient to motivate such a change. The proposed change is not backward comp

<    1   2   3   4   5   6   7   8   9   10   >