[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: The output from the print statement in the finally block is before the traceback, you need to scroll back in the output buffer in VS Code. -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.

[issue44718] Incorrect arguments in function select() cause segfault

2021-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: The problem is related to recursion, the code basically ends up with an unlimited number of iterations of select.select and test_select_mutated on the call stack and this doesn't trigger the stack depth checker. The following definition of class F triggers

[issue44689] MacOS: Python binaries not portable between Catalina and Big Sur

2021-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: The disadvantage of using dlopen is that this function has side effects, and those can affect program behaviour. Because of this I'm against switching to using dlopen to probe for libraries. -- ___ Python

[issue44689] MacOS: Python binaries not portable between Catalina and Big Sur

2021-07-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: Anyways, the solution for "build on older macOS version, deploy to Big Sur" is to dynamically look for the relevant API (``_dyld_shared_cache_contains_path``) and use it when available. But only in that scenario, the current code path using exp

[issue44689] MacOS: Python binaries not portable between Catalina and Big Sur

2021-07-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: The problem with moving from Catalina to Big Sur is a known issue, AFAIK there's an open issue for this. The problem is that Big Sur moved system libraries into a big blob (which Apple calls the shared library cache). Ctypes uses an API that's new in macOS

[issue44597] Poll returns POLLOUT on Pipe read endpoint on MacOS 10.14

2021-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: Without having looked at this issue in detail... This looks like an issue with macOS and not Python. In general API's providing access to system calls are just thin wrappers around those system calls. If this is a bug in macOS there's nothing we can do

[issue44583] Failure to build on OSF1.

2021-07-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: IMHO the most important question to answer first is: Why is adding OSF1 support a good idea? The PR, which IMHO in its current state is not mergeable, adds some complexity to the build and ongoing maintenance of CPython itself. This tends

[issue44583] Failure to build on OSF1.

2021-07-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: As mentioned on the PR: Support for OSF1 was removed in Python 3.3 (see https://www.python.org/dev/peps/pep-0011/#unsupporting-platforms). I expect that there will be little interest amongst the core developers for reintroducing support because OSF1

[issue42514] Relocatable framework for macOS

2021-07-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: I guess Ned and I are the only core devs that would be vaguely interested in working on this. I have no active plans to work on this. Having a relocatable framework would be nice, but doing this in a way that maintains all functionality, esp. w.r.t

[issue44392] Py_GenericAlias is not documented

2021-06-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Why should this be deprecated at all? The API is a convenient way to add ``__class_getitem__`` in a way that is consistent with the implementation for builtin types and the stdlib. I noticed the lack of documentation when I worked on implementing

[issue44392] Py_GenericAlias is not documented

2021-06-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not working on this. Feel free to work on a PR. -- ___ Python tracker <https://bugs.python.org/issue44392> ___ ___ Pytho

[issue44392] Py_GenericAlias is not documented

2021-06-11 Thread Ronald Oussoren
New submission from Ronald Oussoren : Py_GenericAlias seems to be a public API given its name and is mention in the stable ABI list for 3.10 (https://docs.python.org/3.10/c-api/stable.html?highlight=py_genericalias), but the API is not documented. Likewise for Py_GenericAliasType

[issue44234] Debugging with LLDB doesn't work for universal2 installer on macOS Big Sur

2021-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Should we add documentation about this? The truly annoying bit about that discussion is that its probably easier to just install gdb and use that to debug extensions. -- ___ Python tracker <ht

[issue44214] PyArg_Parse* for vectorcall?

2021-05-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: Annoyingly the keywords variant is the most interesting to expose :-) due to the complexity of correctly interpreting keyword arguments. I agree that we should be careful in exposing the APIs using _PyArg_Parser, although it should be easer to expose

[issue44234] Debugging with LLDB doesn't work for universal2 installer on macOS Big Sur

2021-05-25 Thread Ronald Oussoren
New submission from Ronald Oussoren : I've installed python 3.9.5 using the universal2 installer on my M1 MacBook. Debugging this python using lldb doesn't work because the debugger cannot attach to the (newly launched) binary. This appears to be due to a missing entitlement in the signed

[issue44214] PyArg_Parse* for vectorcall?

2021-05-23 Thread Ronald Oussoren
Change by Ronald Oussoren : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue44214> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44214] PyArg_Parse* for vectorcall?

2021-05-23 Thread Ronald Oussoren
New submission from Ronald Oussoren : I'm currently converting some extensions of my own to vectorcall and an annoying change between the old call protocol and vectorcall is that the latter has no public equivalent to the PyArg_Parse family of functions. There is "_PyArg_Parse

[issue43807] JSONDecodeError: Extra Data Raised on Long Valid JSON

2021-04-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: There is a block of NUL bytes at the end of the JSON data structure The output of "od -c pico-hard.json" ends with: 0046340s e c t i o n N o t e s " : [ ] 0046360, " t y p e O f S e

[issue43664] Long computations in pdb.run() lead to segfault

2021-04-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: ```pdb.run(...)``` is ends up in ```bdb.Bdb.run```, which uses compile and exec to run the code. And indeed: >>> compile("1+2" * 100, "-", "exec") zsh: segmentation fault python3.9 -- components:

[issue43638] MacOS os.statvfs() has rollover for >4TB disks at each 4TB (32bit counter overflow?)

2021-03-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: As you note in the title this is a 32-bit overflow in the statvfs system API, the struct it uses contains 32-bit values. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: One thing to look into: there appears to be a tk 8.6.11.1 release, I have no idea what changed in this micro release. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: If this is a Tk issue we should report it in their bug tracker. I'm definitely against switching to an older version of Tk, the most recent release fixes a lot of problems with Tk on macOS. Correctness before performance. How bad is the performance

[issue40720] accessing mmap of file that is overwritten causes bus error

2021-03-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: What happens here is that the file is truncated, which (more or less) truncates the memory mapping. Accessing a memory mapping beyond the length of the file results in a SIGBUS signal. I'm not sure if there is much Python can do about this other than

[issue43054] What does the existence of a struct in a header file imply about the C-API

2021-02-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sorry about the slow response. I misread your initial message, the distinction between (1) and (2) in your list is clear. to (3): New fields can be added while maintaining API (but not ABI) compatibility as long as the default value is the default value

[issue43326] About Zipfile

2021-02-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure what you are asking here. Looking at the screenshot I'd say that the zipfile you are trying to extract contains files with a newline in their name. That's a perfectly valid (although annoying) name on unix-y platforms. The zipfile module

[issue43263] threading module unable to run

2021-02-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Please add more information about what you're doing. Your report does not contain enough information to try to reproduce the problem. This is supposed to work just fine, and does work for me. -- nosy: +ronaldoussoren

[issue30799] Improved test coverage Lib/_osx_support.py 99%

2021-02-12 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +macOS ___ Python tracker <https://bugs.python.org/issue30799> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43205] Python Turtle Colour

2021-02-12 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: +gregorlingl, willingc ___ Python tracker <https://bugs.python.org/issue43205> ___ ___ Python-bugs-list mailing list Unsub

[issue43054] What does the existence of a struct in a header file imply about the C-API

2021-02-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: To channel Victor: Another thing to look into is to introduce accessors for struct fields in category 1 and 2 so that the struct can be made private in the future. The difference between category 1 and 2 is sadly not very clear cut. Anything defined

[issue31751] Support for C++ 11 and/or C++ 14 in python.org installer

2021-02-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: Can this be closed as out of date? 1. universal2 installers are build using Xcode 12 2. the regular installers are build on macOS 10.9 and the system compilers on that system should support C++ 11 and 14

[issue41100] Support macOS 11 and Apple Silicon Macs

2021-02-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: There is no ETA. I'm spending more time away from the computer and on other projects when I'm not at work. I also have no personal need for 3.8 support. If anyone else is up to the job: the back port to 3.9 should be a good starting point, but I don't

[issue40168] import pandas error[python 3.8.]

2021-02-08 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40361] Darwin systems using win settings for webbrowser.py

2021-02-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a duplicate of #41754. -- nosy: +ronaldoussoren resolution: -> duplicate stage: patch review -> resolved superseder: -> Webbrowser Module Cannot Find xdg-settings on OSX ___ Python tracke

[issue32824] Docs: Using Python on a Macintosh has bad info per Apple site

2021-02-08 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +macOS nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue32824> ___ ___ Python-bugs-list mailin

[issue43122] Python Launcher doesn't open a terminal window

2021-02-08 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker <https://bugs.python.org/issue43122> ___ ___ Python-bug

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've created a PR for this. Open question: Is this a bug fix (with back ports to 3.9 and 3.8) or a feature (no back ports)? -- ___ Python tracker <https://bugs.python.org/issue43

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-08 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +23272 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24480 ___ Python tracker <https://bugs.python.org/issu

[issue41552] uuid.uuid1() on certain Macs does not generate unique IDs

2021-02-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: @terrygreeniaus: Are you running macOS 11 on your MacBook Pro? If so, could you verify the hardware address of the iBridge interface? I've checked to libc sources on opensource.apple.com and those don't seem to contain code to treat the iBridge interface

[issue43135] Can't input Japanese on idle (MacOS).

2021-02-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: As the issue is gone with the 3.10 universal2 installer it should also be gone with the 3.9.1 universal installer. I'd expect that the difference is in the use of a newer version of Tcl/Tk. We haven't used the newer versions of Tcl/Tk with the regular 3.9

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: The same code is present in trunk. I'm in favour of disabling usage of X11 browsers of macOS, that's almost certainly not what users want. I no longer have XQuartz installed on my machine, but when I did I only used it for running X11 GUIs on remote

[issue43120] Some OSX syslog facilities are missing from syslog module

2021-02-03 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +23242 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24432 ___ Python tracker <https://bugs.python.org/issu

[issue43120] Some OSX syslog facilities are missing from syslog module

2021-02-03 Thread Ronald Oussoren
New submission from Ronald Oussoren : The following syslog facility constants on macOS are missing from the syslog module: * LOG_FTP * LOG_NETINFO * LOG_REMOTEAUTH * LOG_INSTALL * LOG_RAS * LOG_LAUNCHD I'm working on a PR -- components: Extension Modules, macOS messages: 386456 nosy

[issue41552] uuid.uuid1() on certain Macs does not generate unique IDs

2021-02-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: I got feedback on FB889: Apple says they have fixed the issue (they don't mention in what version, but I expect 11.2). I haven't checked this yet. -- ___ Python tracker <https://bugs.python.org/issue41

[issue43106] Some macOS open flags are missing from posixmodule.c

2021-02-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: Likewise for O_POPUP and O_ALERT, although I don't understand what these are supposed to do. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43106] Some macOS open flags are missing from posixmodule.c

2021-02-02 Thread Ronald Oussoren
New submission from Ronald Oussoren : The following O_* flags are present in the macOS 11 SDK, but aren't provided by posixmodule.c: O_FSYNC (alias for O_SYNC) O_EVTONLY O_SYMLINK O_NOFOLLOW_ANY -- components: Extension Modules, macOS keywords: easy (C) messages: 386159 nosy

[issue42971] Some errnos for BSD/OSX are missing from errno module

2021-02-02 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +23234 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24419 ___ Python tracker <https://bugs.python.org/issu

[issue42971] Some errnos for BSD/OSX are missing from errno module

2021-02-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: I was too quick, EQFULL appears to be missing: #define EQFULL 106 /* Interface output queue is full */ If the script I'm using to check for this is correct this is the only missing errno with the macOS 11 SDK. -- resolution

[issue42971] Some errnos for BSD/OSX are missing from errno module

2021-02-02 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> not a bug stage: -> resolved status: open -> pending ___ Python tracker <https://bugs.python.or

[issue42971] Some errnos for BSD/OSX are missing from errno module

2021-02-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've checked all three and all of them are present in errnomodule.c, and all of them are defined in the errno module (macOS 11, Python 3.9.1 "universal2" build). On first glance all errno values in the macOS 11 SDK are present in err

[issue43069] Python fails to read a script whose path is `/dev/fd/X`

2021-01-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: I can reproduce the issue on macOS 11.1. As you write: - running /dev/fd/X as a script fails silently if it refers to an smallish file - reading /dev/fd/X referring to the same smallish files works fine (the ``open('/dev/fd/9').read()`` scenario. If I

[issue42504] Failure to build with MACOSX_DEPLOYMENT_TARGET=11 on Big Sur

2021-01-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: see PR 24341. -- ___ Python tracker <https://bugs.python.org/issue42504> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42504] Failure to build with MACOSX_DEPLOYMENT_TARGET=11 on Big Sur

2021-01-26 Thread Ronald Oussoren
Change by Ronald Oussoren : -- pull_requests: +23160 pull_request: https://github.com/python/cpython/pull/24341 ___ Python tracker <https://bugs.python.org/issue42

[issue42504] Failure to build with MACOSX_DEPLOYMENT_TARGET=11 on Big Sur

2021-01-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: I will create a PR later today, I've already committed the work in a branch of my clone of cpython. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42970] File path with blank causes open error in 3.8, not in 3.7

2021-01-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: This might be a security feature in Big Sur, access to some locations is restricted by default. I'm not sure if that includes ~/Library, it definitely affects access to ~/Documents. I'd expect to see a security pop-up from the system though. I cannot

[issue42970] File path with blank causes open error in 3.8, not in 3.7

2021-01-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: What kind of error do you get? -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue42970> ___ ___ Pytho

[issue42955] Add sys.module_names: list of stdlib module names (Python and extension modules)

2021-01-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. A list of stdlib module names is not sufficient to determine if a module is in the stdlib, thanks to .pth files it is possible to have entries on sys.path before the stdlib. -- ___ Python tracker <ht

[issue42955] Add sys.module_names: list of stdlib module names (Python and extension modules)

2021-01-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: > On 19 Jan 2021, at 12:30, STINNER Victor wrote: > > Ronald: >> You wouldn't necessarily have to import a module to test, this is something >> that could be added to importlib. One (poorly thought out) option is to add

[issue42955] Add sys.module_names: list of stdlib module names (Python and extension modules)

2021-01-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: >> Wouldn't it be sufficient to somehow mark the stdlib entries on sys.path? >> Although that might give misleading answers with tools like >> pyinstaller/py2exe/py2app that package an application and its dependencies >> into a s

[issue42955] Add sys.module_names: list of stdlib module names (Python and extension modules)

2021-01-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: A list of stdlib modules/extensions is IMHO problematic for maintenance, esp. if you consider that not all modules/extensions are installed on all systems (both because dependencies aren't present and because packagers have decided to unbundle parts

[issue42887] 100000 assignments of .__sizeof__ cause a segfault on del

2021-01-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that there is a way to avoid this crash using the trashcan API (see the use of Py_TRASHCAN_BEGIN in various implementation). This API is generally only used for recursive data structures and because it has a performance cost (based on what I've read

[issue42880] ctypes: variadic function call still doesn't work on Apple Silicon

2021-01-12 Thread Ronald Oussoren
Change by Ronald Oussoren : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker <https://bugs.python.org/issu

[issue42880] ctypes: variadic function call still doesn't work on Apple Silicon

2021-01-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree that this should be mentioned in the documentation for ctypes. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42880] ctypes: variadic function call still doesn't work on Apple Silicon

2021-01-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: AFAIK you should specify the types of the fixed arguments for variadic functions. The ABI for the M1 has a different calling convention of the variadic arguments, the ctypes implementation counts how many variadic arguments there are based on the specified

[issue42887] Multiple assignments of attribute "__sizeof__" will cause a segfault

2021-01-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a recursion problem, "mystr" will be equivalent to 'hello123'.__sizeof__.__sizeof__. ...(100K repetition)... .__sizeof__. The dealloc of "mystr" will cause recursive calls to tp_dealloc along the entire chain and that can

[issue42619] python 3.9.1 failed to create .so files as universal2 (arm64, x86_64) on Mac

2021-01-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: > Another change that might be needed: ensure that sysconfig.get_platform() > does not return "universal2" as the binary architecture when the compiler > does not support arm64. Hmmm... _osx_support.get_platform_osx() contains th

[issue42619] python 3.9.1 failed to create .so files as universal2 (arm64, x86_64) on Mac

2021-01-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've added a (draft) PR for this. The PR is a this time not tested on a 10.15 system. Another change that might be needed: ensure that sysconfig.get_platform() does not return "universal2" as the binary architecture when the compiler does no

[issue42619] python 3.9.1 failed to create .so files as universal2 (arm64, x86_64) on Mac

2021-01-10 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +23015 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24187 ___ Python tracker <https://bugs.python.org/issu

[issue42853] `OverflowError: signed integer is greater than maximum` in ssl.py for files larger than 2GB

2021-01-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: The API documentation already implies that write might not write the entire buffer because it returns the number of bytes actually written (just like os.write). A possible workaround on the SSL layer is hence to clamp the amount of bytes to write

[issue42541] Tkinter colours wrong on MacOS universal2

2021-01-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. building on 10.9: until very recently (trunk and 3.9.1) Python didn’t check for symbol availability at runtime. Building on 10.9 is basically a workaround for that. The, for now experimental, “universal2” installer for 3.9.1 is build on Big Sur

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2021-01-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: As another datapoint: This works for me on macOS 11.1 with the universal2 installer for Python 3.9.1 (which includes Tk 8.6.10). -- ___ Python tracker <https://bugs.python.org/issue38

[issue42690] Aiohttp fails when using intel ax200 wireless card

2020-12-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: What's the script used, is it the script in the reddit thread? The reddit thread mentions a change to the script that might help: return [await r.json() for r in responses] To: return await asyncio.gather(*(r.json() for r in responses)) Does

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-22 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42652] recursive in finally clause cause Python interpreter crash.

2020-12-22 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> crash with unbounded recursion in except statement ___ Python tracker <https://bugs.python

[issue42651] Recursive traceback crashes Python Interpreter

2020-12-22 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> crash with unbounded recursion in except statement ___ Python tracker <https://bugs.python

[issue42704] [macOS] [python3.7] : platform.machine() returns x86_64 on ARM machine

2020-12-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: That installer contains intel (x86_64) binaries. The behaviour of platform.machine() and platform.processor() is expected, due to Rosetta the binary runs as if it is running on an Intel Mac. There is a "universal2" installer for Python 3.9.1 whic

[issue42704] [macOS] [python3.7] : platform.machine() returns x86_64 on ARM machine

2020-12-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: How did you install python3.7? Platform.machine() will return "x86_64" when running in Rosetta 3. That is, when python itself is an x86_64 binary. -- ___ Python tracker <https://bugs.python.o

[issue42688] ctypes memory error on Apple Silicon with external libffi

2020-12-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: Could you please sign the CLA? (See the PR for details on that) The PR looks sane. Out of interest: why do you use an external version of libffi? AFAIK the system copy of libffi contains some magic sauce to work nicer with signed binaries

[issue42688] ctypes memory error on Apple Silicon with external libffi

2020-12-20 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker <https://bugs.python.org/issue42688> ___ ___ Python-bug

[issue42652] recursive in finally clause cause Python interpreter crash.

2020-12-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: This might be related to #42500 -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue42652> ___ ___ Pytho

[issue42651] Recursive traceback crashes Python Interpreter

2020-12-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: This might be related to #42500 -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue42651> ___ ___ Pytho

[issue42614] Pathlib does not support a Cyrillic character 'й'

2020-12-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm closing this as "not a bug" because this is likely caused by different unicode normalisations for strings. -- resolution: -> not a bug stage: -> resolved status: open -> closed type

[issue38137] hashopenssl fails to compile on MacOS

2020-12-12 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +macOS nosy: +ned.deily ___ Python tracker <https://bugs.python.org/issue38137> ___ ___ Python-bugs-list mailin

[issue38137] hashopenssl fails to compile on MacOS

2020-12-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: can this issue be closed? -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue38137> ___ ___ Python-bug

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: Linking extensions to libpython with a static build of python will cause problems (as you described in your initial message). The not very satisfactory response is "don't do that then". Note that distutils won't link against libpython by defaul

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've removed two spammy comments and adjusted the categories (the latter explains Larry's annoyance, someone selected all categories which automatically added him to the nosy list). -- ___ Python tracker <ht

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-12 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +Distutils -2to3 (2.x to 3.x conversion tool), Argument Clinic, C API, Cross-Build, asyncio, ctypes nosy: +dstufft, eric.araujo, froody, ned.deily -Alex.Willmer, asvetlov, yselivanov, zhtw1234 versions: -Python 3.6, Python 3.7

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-12 Thread Ronald Oussoren
Change by Ronald Oussoren : -- Removed message: https://bugs.python.org/msg382879 ___ Python tracker <https://bugs.python.org/issue42616> ___ ___ Python-bug

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-12 Thread Ronald Oussoren
Change by Ronald Oussoren : -- Removed message: https://bugs.python.org/msg382880 ___ Python tracker <https://bugs.python.org/issue42616> ___ ___ Python-bug

[issue42614] Pathlib does not support a Cyrillic character 'й'

2020-12-12 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +macOS nosy: +ned.deily ___ Python tracker <https://bugs.python.org/issue42614> ___ ___ Python-bugs-list mailin

[issue42614] Pathlib does not support a Cyrillic character 'й'

2020-12-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: What filesystem is used on macOS? If it is HFS+ you're likely running into unicode normalisation in the filesystem. That is, 'й' can be represented as a single unicode codepoint (and likely is in your script), but in the NFD normalisation used by HFS

[issue15898] OSX TTY bug

2020-12-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: Closing this issue, because this is a platform bug. The reproducer in msg170147 works reliably for me on macOS 10.15 with Python 3.9, the system bug may have been fixed in the meantime. -- components: +macOS resolution: not a bug -> third pa

[issue42619] python 3.9.1 failed to create .so files as universal2 (arm64, x86_64) on Mac

2020-12-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: Currently macOS 11 is needed to build a universal2 framework. That because we haven't spent time yet on detecting if the current compiler can compile for arm64. An easy workaround: Patch _osx_support.py, in particular the function "_supports_arm64_b

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: Does this affect unix-style builds with --enable-shared or framework builds? For the latter the python executable is linked to the framework, and lib python.dylib is an alias for the framework. A related known problem is that linking an extension

[issue42614] Pathlib does not support a Cyrillic character 'й'

2020-12-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: What platform are you using? -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue42614> ___ ___ Pytho

[issue38309] Avoid creating duplicate PATH entries with the macOS installer

2020-12-06 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +macOS nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue38309> ___ ___ Python-bugs-list mailin

[issue38660] Checking if two regexes are equal should test if they are functionally equivalent

2020-12-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: https://math.stackexchange.com/questions/46975/how-to-prove-two-regular-expressions-are-identical-in-mathematical-way contains some references to proofs that checking if two regular expressions are equivalent is PSPACE-complete. Another answer

[issue42573] Installation of Python 3.9 failing with message "User cancelled installation"

2020-12-05 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue42

[issue42573] Installation of Python 3.9 failing with message "User cancelled installation"

2020-12-05 Thread Ronald Oussoren
New submission from Ronald Oussoren : Which OS and version are you trying to install on? -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue42

[issue42554] distutils.util.get_platform() depends on minor version for macOS 11

2020-12-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: > Now, the next minor releases will be 11.0.1 (that has shipped already), > 11.1.0 (will ship soon), then either 11.1.1 or 11.2.0 (we don't know). The > next major version will of course be 12.0.0. > > The question is: for 11.1.x or 11.2.x,

[issue42554] distutils.util.get_platform() depends on minor version for macOS 11

2020-12-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: IMHO sysconfig.get_platform() and distutilis.util.get_platform() should always return a version with a major and minor number on macOS. Could you add more information on the system where you get a version number that includes the micro version

  1   2   3   4   5   6   7   8   9   10   >