[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

[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

[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> ___ ___

[issue44392] Py_GenericAlias is not documented

2021-06-14 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 this for

[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. the

[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 is an

[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 to be

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

2021-07-12 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

[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 ne

[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-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. -- ___ P

[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 tri

[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.

[issue18255] CPython setup.py problems

2021-08-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is no longer relevant now that distutils is deprecated. -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue40899] Document exceptions raised by importlib.import

2021-08-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that importlib.import_module, and the import statement itself, can raise an arbitrary exception when that exception is raised while executing the module body. This is easily observed by creating a module that just raises an error in its body: # t.py

[issue44869] MacOS Monterrey malloc issue

2021-08-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm afraid we cannot do a lot with the information you provided. I've just ran a full test run for a copy of 3.10rc1 installed using the universal2 installer and that doesn't have problem. One way to find more information about what'

[issue40899] Document exceptions raised by importlib.import

2021-08-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: Good question. Hopefully one of the documentation or importlib experts can chime in about that. I may also have uncovered a new issue in importlib ;-) Personally I'd say that documenting raising ImportError is still useful because that's

[issue44869] MacOS Monterrey malloc issue

2021-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: There is a 3th possibility: This could be a bug in the OS, Monterey is still in beta at this point and beta's tend to contain more bugs than release versions. -- ___ Python tracker <https://bugs.py

[issue44933] python3.9-intel64 hardened runtime not enabled

2021-08-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure what your question is. But to enable the hardened runtime you need to sign the binaries using ``--options runtime`` as one of the options. -- ___ Python tracker <https://bugs.python.org/is

[issue44933] python3.9-intel64 hardened runtime not enabled

2021-08-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't know what creates "python3.9-intel64", but this is not created by the regular Python build process. It might be created by one of the build scripts you use. -- ___ Python

[issue40772] module 'resource' has no attribute 'RLIMIT_VMEM'

2021-08-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: According to https://man7.org/linux/man-pages/man2/getrlimit.2.html there is no RLIMIT_VMEM on linux, RLIMIT_AS is the closest equivalent. -- nosy: +ronaldoussoren resolution: -> not a bug stage: -> resolved status: open -&g

[issue45016] Multiprocessing freeze support unclear

2021-08-26 Thread Ronald Oussoren
New submission from Ronald Oussoren : The requirements on a freezing tool to work with the freeze support in the multiprocessing library are unclear. In particular, I'm trying to support multiprocessing in py2app and cannot rely on the documentation to implement that support. The parti

[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that sqlite3_enable_load_extension was unavailable way before macOS 11.5.1, the symbol is not present on 10.15 (I used 'nm /usr/lib/libsqlite3.dylib' to check for symbol availability). Just checking for MACOS and a system include directory

[issue44933] python3.9-intel64 hardened runtime not enabled

2021-08-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: @ned: the "reliable way to run under rosetta" is using "arch -x86_64 python3". I don't particularly like having another executable to accomplish the same goal. -- ___ Python tracker

[issue45020] Freeze all modules imported during startup.

2021-08-26 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue45020> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45067] Failed to build _curses on CentOS 7

2021-09-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: You stripped too much output from the build, in particular you removed the part where _curses failed to build. The output you show only says that _cursus_panel failed verification because _cursus could not be imported. Could you add the build failure for

[issue45100] Teach help about typing.overload()

2021-09-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree that this would be nice to have, but wonder how help() could access that information. The two @overload definitions will be overwritten by the non-overload one at runtime, and hence will ever been seen by help(). -- nosy: +ronaldoussoren

[issue45067] Failed to build _curses on CentOS 7

2021-09-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: According to https://invisible-island.net/ncurses/NEWS.html#index-t20170401 the function extended_color_content was introduced in 2017, maybe the detection of support for this function doesn't work properly for some reason (although the preprocessor

[issue45161] _Py_DecodeUTF8_surrogateescape not exported from 3.10 framework build

2021-09-10 Thread Ronald Oussoren
New submission from Ronald Oussoren : The symbol _Py_DecodeUTF8_surrogateescape is not exported from Python.framework on macOS in Python 3.10. The symbol was exported in earlier versions of 3.x. I'm not sure if this was intentional, so far I haven't been able to find when this w

[issue45161] _Py_DecodeUTF8_surrogateescape not exported from 3.10 framework build

2021-09-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've switched py2app to Py_DecodeLocale, which is a public API introduced in 3.5 to accomplish the same task. I'm leaving the issue open in case hiding the symbol is unintentional. -- ___ Python track

[issue45105] Incorrect handling of unicode character \U00010900

2021-09-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: @Steven: the difference between indexing and the repr of list() is also explained by Eryk's explanation. s = ... # (value from msg401078) for x in repr(list(s)): print(x) The output shows characters in the expected order. --

[issue45183] Unexpected exception with zip importer

2021-09-13 Thread Ronald Oussoren
New submission from Ronald Oussoren : The attached file demonstrates the problem: If importlib.invalidate_caches() is called while the zipfile used by the zip importer is not available the import system breaks entirely. I found this in a testsuite that accedently did this (it should have

[issue45183] Unexpected exception with zip importer

2021-09-13 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: +pablogsal, twouters ___ Python tracker <https://bugs.python.org/issue45183> ___ ___ Python-bugs-list mailing list Unsub

[issue45183] Unexpected exception with zip importer

2021-09-13 Thread Ronald Oussoren
Change by Ronald Oussoren : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue45183> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue45183] Unexpected exception with zip importer

2021-09-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: I just noticed that I'm unnecessarily obtuse in my description of a possible fix, the diff (without test update): % git diff Lib/zipimport.py (main)cpython diff --

[issue45241] python REPL leaks local variables when an exception is thrown

2021-09-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd expect that there'd be at least one instance of X alive due to sys.last_value and in particular sys.last_traceback (which has a reference to the stack frame which contains references to local variables). Btw. I cannot reproduce this with Py

[issue44841] ZipInfo crashes on filemode

2021-09-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure what the issue is here. ZipInfo does not have a filemode attribute, that's why it is not in ZipInfo.__slots__. That said, it might be interesting to add a property to ZipInfo that extracts the file mode from ZipInfo.ext

[issue45251] signal.SIGCLD alias is not available on OSX

2021-09-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: The documentation for the SIG* constants also mentions: SIG* All the signal numbers are defined symbolically. For example, the hangup signal is defined as signal.SIGHUP; the variable names are identical to the names used in C programs, as found in

[issue45267] New install Python 3.9.7 install of Sphinx Document Generator fails

2021-09-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: The error in the attached file says that one of the dependencies could not be found, in particular the "packaging" library. This doesn't look like a bug in CPython or pip, but more a general support question. I kindly ask you to visit on

[issue44841] filemode in repr of ZipInfo, but is not a ZipInfo attribute

2021-09-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: The repr() output of a ZipInfo contains filemode, but it is not an attribute of those objects, see <https://docs.python.org/3/library/zipfile.html#zipinfo-objects> for a list of attributes and methods. Adding an @property for mode that extracts th

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-10-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: Marc, thanks for the update. Will there be a Tcl/Tk release soonish that includes this fix? Alternatively, is there patch that we can apply to the latest release when building the copy of Tk included with the installers

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: The most straightforward change for macOS is to add “pyi” to the list of extensions in “Mac/IDLE/IDLE.app/Contents/Info.plist”. That way IDLE will be seen as a valid editor for .pyi files. -- nosy: +ronaldoussoren

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: Are you using macOS 12 (Monterey)? I get an error as well using that version of the OS (see open-error). The error happens within a second or two after opening the open dialog, without interacting with the dialog in any way. This is on an M1 laptop running

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: > Heads up! A strange Apple quirk has been identified which could affect the > file dialog behavior if the Tk library is compiled on macOS 10.XX and used on > macOS 11 or 12. (I am not sure if this applies here.) I'm pretty sure that&

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: > Where do you think that "feature" is documented? I'd have to check, but I didn't learn this from Twitter, although it wouldn't surprise me if I learned this from a WWDC talk. The beta for Big Sur never identified itself as 1

[issue45743] Cleanup and simplify setup.py

2021-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: 1) __APPLE_USE_RFC_3542 should have been in socketmodule.c from the start, not sure why it was added in setup.py. 2) as you and Ned noticed -search_paths_first has been the default for a long while, we can just drop it and anyone building on ancient

[issue45747] Detect dbm and gdbm dependencies in configure.ac

2021-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: dbm_open is in libc on macOS. likely due to being in SUSv2. The implementation in libc appears to be suboptimal (for example: issue33074), although I wouldn't teach configure.ac to ignore the system version of the library. -- nosy: +ronaldous

[issue45779] multiprocessing initializer error with CPython 3.9.6 on Apple Silicon

2021-11-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: Please include reproducer code in the issue itself, not on some external side. That said, the error you're getting is related to the start method used by multiprocessing. On Linux the start method is fork, on macOS (and Windows) the start method is

[issue45793] execute shell command ./configure with python subprocess.popen, os.system ... checking build system type... is wrong

2021-11-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm assuming you run on a M1* system. What's the architecture for the python binary (run "file $(which python3)" in a shell to get this information, excluding the quotes)? If the binary supports only x86_64 you might run into

[issue45793] execute shell command ./configure with python subprocess.popen, os.system ... checking build system type... is wrong

2021-11-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: The problem will go away when you install and use an arm64 or universal2 variant of Python. This is behaviour of macOS and cannot be changed in CPython. -- resolution: -> third party stage: -> resolved status: open -&g

[issue45758] Crash on Py_DecRef'ing builtin object from previous run

2021-11-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: IMHO your code is buggy, as Hai Shi also indicates. After Py_Finalize all objects in all (sub-)interpreters are deallocated unless there are bugs in the interpreter. Because of this "..., item should still be alive" in your sample code is inco

[issue45839] python3 executable is able to install pandas

2021-11-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Could you check with "curl -k https://pypi.org/ >/dev/null" what certificate is used by PyPI? On my system I get (amongst other output): ... * SSL connection using TLSv1.2 / ECDHE-RSA-CHACHA20-POLY1305 * ALPN, server accepted to use h2 * Serve

[issue45889] pathlib: Path.match does not work on paths

2021-11-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: This would definitely be a new feature and not something that can be back ported. That said, I don't understand why it is desirable to use a Path as the match argument. That argument is a glob pattern (such as "*.py") and not a file name .

[issue45889] pathlib: Path.match does not work on paths

2021-11-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: Match doesn't match paths, but basically does a regular expression match on the textual representation (using glob syntax instead of normal regular expression syntax). Because of this I don't agree with your idea that anything that can match a

[issue45889] pathlib: Path.match does not work on paths

2021-11-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure what your code tries to accomplish, does it check that ``f.parent`` refers to the same location as ``ref_file``? A clearer solution for that would be ``f.parent.resolve() == ref_file.resolve()``. The argument to match, glob and

[issue45889] pathlib: Path.match does not work on paths

2021-11-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think our opinions about this will converge, I'm therefore leaving this discussion. >> would ``Path("dir/some.py").match(Path("*.py"))`` return? > > str(Path("*.py")) == "*.py" > >

[issue45939] PyErr_SetObject documentation lacks mention of reference counting

2021-11-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: The default behaviour of functions is to not steal references, in general only exceptions to this are documented. Likewise with return values: by default the result is a strong reference, and borrowed references are documented as such. -- nosy

[issue24725] test_socket testFDPassEmpty fails on OS X 10.11+ with "Cannot allocate memory"

2021-11-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: The reproducer script and .c file I added earlier do not fail with "Cannot allocate memory" on macOS 12.0.1. I haven't checked yet if this is enough to avoid test failures in the (now skipped)

[issue45933] Illegal Instrution (Core Dumped)

2021-12-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: Is arch corei7-avx compatible with your CPU? One way to test is to leave out -mtune=... and -march=... when building python. -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue45

[issue45983] PyType_Spec.name must remain valid after PyType_FromSpec

2021-12-04 Thread Ronald Oussoren
New submission from Ronald Oussoren : The documentation for PyType_Spec and the related functions is not clear about the required lifetime of fields of PyType_Spec. In particular, PyType_Spec.name must remain valid for the entire lifetime of types created with PyType_FromSpec*. The

[issue45983] PyType_Spec.name must remain valid after PyType_FromSpec

2021-12-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: I just noticed this duplicates #45315, sorry about the noise. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> `PyType_FromSpec` does not copy the name ___ Py

[issue45998] Document best practice for including and linking python framework

2021-12-06 Thread Ronald Oussoren
New submission from Ronald Oussoren : There are two ways to develop against a Python.framework on MacOS: 1. Use the regular Unix pattern with "#include "Python.h", using compiler flags to select the right headers and libraries. 2. Using the native framework pattern with

[issue38777] plist handling of real data type

2019-11-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think this is a bug. The value's in the plutil output are correct, and marked up with the correct type in both cases. The difference between 0.1 and 0.10001 is the usual problem with floating point representation (see the

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: As you noted /dev/log doesn't exist on macOS (the correct path is /var/run/syslog). I guess the change that would be most in spirit of the comment is to set self.socket to None when the socket cannot be opened and test for that before closing the s

[issue38609] Trashcan mechanism segfault during interpreter finalization in Python 3.7.5

2019-11-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: You only have to check, using a public API, if you have no control over when C++ objects are destructed. I'd personally try to structure code to make sure that C++ objects owning references to Python objects get destructed before the interpret

[issue38906] copy2 doesn't copy metadata on Windows and MacOS

2019-12-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: The relevant API on macOS is [f]copyfile(3) which is at the POSIX layer. The copyFile API linked to in msg357395 is a higher-level ObjC/Swift API. Using the copyfile(3) API has another advantage beyond this issue: This API can perform a clone action on

[issue39026] pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2019-12-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: In what way does it not work when using a framework build? Is this when you add the python framework to an (Xcode) project and include the main python header using "#include "? -- ___ Python track

[issue39067] EOFError in tarfile.open

2019-12-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: Looks like expected behaviour, the attached file is an incomplete compressed file that does not seem to contain data (according to gzcat) gzcat: crash-f4032ed3c7c2ae59a8f4424e0e73ce8b11ad3ef90155b008968f5b1b08499bc4: unexpected end of file gzcat: crash

[issue39067] EOFError in tarfile.open

2019-12-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: The stdlib documentation does in general not contain exhaustive documentation on exceptions that might be raised. -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python trac

[issue38295] test_relative_path of test_py_compile fails on macOS 10.15 Catalina

2019-12-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: You don't even need a C program to reproduce: $ cd /private/tmp $ touch ../../foo.txt touch: ../../tmp/foo.txt: No such file or directory And the "cd" is optional, I get the same error from my home directory (/Users/ronald). All of this o

[issue39397] Mac : fail to launch Python 3.8

2020-01-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: An additional question: what version of macOS are you using? -- ___ Python tracker <https://bugs.python.org/issue39

[issue39397] Mac : fail to launch Python 3.8

2020-01-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: The other locale related settings are off as well, the default system locale ends with ".UTF-8". -- ___ Python tracker <https://bugs.python.o

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree with deprecating binhex. -- ___ Python tracker <https://bugs.python.org/issue39353> ___ ___ Python-bugs-list mailin

[issue39597] sorting the String

2020-02-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: >From the screenshot: >>> b = ['sss', 'ase', 'klm', 'qwe'] >>> print sorted(b) ['ase', 'klm', 'qwe', 'sss'] This is the correct result, the output li

[issue39690] Compiler warnings in unicodeobject.c

2020-02-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: issue39684 has a PR for this. -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue39690> ___ ___ Pytho

[issue36516] Python Launcher can not recognize pyw file as Python GUI Script file type correctly.

2020-02-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm fairly sure support for .pyw, or rather a separate python executable, was introduced in the MacOSX port. In particular, we started out with two different executables "python" and "pythonw" where the first was the regular pyth

[issue39927] IDLE.app fails on macOS 10.15 if denied access to Documents

2020-03-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that IDLE.app sets the current working directory to ~/Documents to have a sane working directory (and hence sane behavior in file dialogs), by default app bundles on macOS are launched with the root directory as the current working directory. For

[issue39961] warning: this use of "defined" may not be portable (Mac OS)

2020-03-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: What version of macOS are you on? And which compiler do you use? -- ___ Python tracker <https://bugs.python.org/issue39

[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that the implementation of np_bool in _struct.c [1] is incorrect because this is supposed to access a boolean of a standard size, but uses _Bool. The size of _Bool is not prescribed, and IIRC sizeof(_Bool) was 4 with the compilers used for macOS/PPC

[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sigh... never mind, I misread the code. Please ignore msg364472 -- ___ Python tracker <https://bugs.python.org/issue39

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-04-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: AFAIK the macOS builds are still build on the oldest macOS release supported by the installer (that is, a macOS 10.9 system). This means the build won't use macOS APIs introduced in macOS 10.10 or later. It would be nice to build the installer

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-04-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't like that workaround. I'm also not sure if the value of these constants is the same on macOS and iOS (I do know that some constants higher up in the stack are not the same). This issue is a duplicate of an earlier bug about missing functi

[issue40224] delete_me

2020-04-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is expected behavior, the call to "C.sm()" happens before "C" is created. -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior __

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-04-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: The incompatibility mentioned in msg366473 is probably fixable by treating the PyObject header the same as the GC head structure. With some care this could mostly maintain binary compatibility by inserting some unused fields in PyObject_HEAD instead of the

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-04-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Something else that probably needs attention with the TypeSpec API is subclassing type in an extension when that subclass adds fields to the type object. I use this in PyObjC to (dynamically) create types that have some additional data. I could probably

[issue40381] plistlib doesn't handle poorly-formatted plists

2020-04-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: IMHO this is a bug and plistlib should behave the same as Apple’s libraries here. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40381] plistlib doesn't handle poorly-formatted plists

2020-04-28 Thread Ronald Oussoren
Change by Ronald Oussoren : -- stage: -> needs patch type: -> behavior ___ Python tracker <https://bugs.python.org/issue40381> ___ ___ Python-bugs-list

[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: AFAIK Windows 10 in Bootcamp is just the regular Windows 10. Bootcamp (or technically "Bootcamp Assistent") creates a partition for the installation of W10 and adds some drivers for Apple hardware. See als: https://support.apple.com/en-u

[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: How did you install Python? Does "python" work as a command (should give you an interactive shell)? Does "python -m test" work? This runs the testsuite. -- ___ Python tracker <

[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: Do you get an error message when you start a command shell and type "python"? -- ___ Python tracker <https://bugs.python.o

[issue40508] IDLE won't open

2020-05-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: What version of macOS do you use? -- ___ Python tracker <https://bugs.python.org/issue40508> ___ ___ Python-bugs-list mailin

[issue15751] [subinterpreters] Make the PyGILState API compatible with subinterpreters

2020-05-16 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue15751> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: The macOS test checks if the binary targets macOS 10.4 or earlier. Those versions of macOS have been out of support for a very long time, and we haven't had installers targeting those versions of macOS for a long time as well. 2.7 and 3.5 had insta

[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: Technically this would be a functional change, I'd drop this code in 3.9 and trunk (although it is awfully close to the expected date for 3.9b1). Older versions would keep this code and the bug, that way the older python versions can still be us

[issue30388] ndbm can't iterate through values on OS X

2020-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've attached a C program that demonstrates the problem, and have filed an issue with Apple about this: FB8919203 It is not clear to me what we can do about this, other than not building the ndbm binding on macOS. The manpages for the ndbm APIs d

[issue39961] warning: this use of "defined" may not be portable (Mac OS)

2020-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is incompatibility between upstream clang and Apple's headers. The same warning is not present when using Xcode's compiler. As a workaround this warning can be disabled when including pthread.h, something like: ``` #ifdef __clang__ #pr

[issue24893] Tk occasionally mispositions Text() insert cursor on mouse click.

2020-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: Is this still reproducible? A question to those that can reproduce this: does this happen with the built-in screen (assuming a laptop or iMac) or an external interface? If the latter, is that a retina display? And does this happen more when moving IDLE

[issue30053] Problems building with --enable-profiling on macOS using homebrew GCC

2020-11-27 Thread Ronald Oussoren
Change by Ronald Oussoren : -- title: Problems building with --enable-profiling on macOS -> Problems building with --enable-profiling on macOS using homebrew GCC ___ Python tracker <https://bugs.python.org/issu

[issue41015] warning: 'sqlite3_enable_shared_cache' is deprecated

2020-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a duplicate of #24464 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> "sqlite3_enable_shared_cache" deprecation warning when compiling wit

[issue38768] [feature request] Add lldb equivalent to Tools/gdb

2020-11-27 Thread Ronald Oussoren
Change by Ronald Oussoren : -- title: Support lldb enhancement in MacOS -> [feature request] Add lldb equivalent to Tools/gdb versions: +Python 3.10 -Python 3.9 ___ Python tracker <https://bugs.python.org/issu

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