[issue40977] asyncio.trsock.TransportSocket says some APIs will be prohibited in 3.9

2020-06-14 Thread Ronald Oussoren
New submission from Ronald Oussoren : The implementation for asyncio.trsock.TransportSocket says that a number of methods will be prohibited in 3.9 (https://github.com/python/cpython/blob/8f04a84755babe516ebb5304904ea7c15b865c80/Lib/asyncio/trsock.py#L19), but merely warns in both 3.9

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

2020-06-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've filed a report with Apple about this (FB7731971), even though I expect that this behaviour will not change. That's something we should have done years ago. BTW. The link to malloc_print_configure that Victor shared seems to indicate that the default

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

2020-06-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure if it is worthwhile to tweak CPython to work around this misfeature of libc on macOS (and likely iOS). Is this something that causes issues in real code, or just in the test suite? Looking at this particular test is seems to use a context

[issue40790] Python should enable computed gotos on Mac by default

2020-06-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: Looking at the source code at <https://github.com/python/cpython/blob/a871f692b4a2e6c7d45579693e787edc0af1a02c/Python/ceval.c#L1024>: computed gotos are enabled automatically when they are ava

[issue40790] Python should enable computed gotos on Mac by default

2020-05-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: The result of auto detection of computed gotos can be seen using the HAVE_COMPUTED_GOTOS macro, not the USE_... one. Computed gotos should work on macOS, and does on my machine. -- ___ Python tracker <ht

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

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

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

[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

[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

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

[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

[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

[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

[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

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

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

2020-04-07 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 functions that I

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

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

2020-03-18 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

[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

[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

[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

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

[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

[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 list is alphabetically sorted. -- nosy: +ronaldoussoren resolution: ->

[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

[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

[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

[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 on mac

[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

[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

[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

[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

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

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

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

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

2019-11-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached code creates a static (global) C++ object that owns a reference to a Python object, and releases that reference in its destructor. That destructor runs at program termination, which is after interpreter shutdown (that is after Py_FinalizeEx

[issue38680] PyGILState_Release does not release gil correctly, resulting in deadlock

2019-11-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm afraid it will be close to impossible to determine what's going on without a reproducer. There's not enough context in the issue to understand the report, in particular what the main thread is doing and how that's releasing the GIL. BTW. The code

[issue38680] PyGILState_Release does not release gil correctly, resulting in deadlock

2019-11-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think this is a bug: - PyGILState_Ensure() acquires the GIL when it is not already acquired (and can be called without checking). It cannot acquire the GIL when some other thread has already taken the GIL, but wait until the GIL is released

[issue38680] PyGILState_Release does not release gil correctly, resulting in deadlock

2019-11-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: What's the value of PyGILState_Check() before the call to PyGILState_Ensure()? PyGILState_Ensure() and PyGILState_Release() should bracket code where you're not sure about the current GIL state, but need the GIL. The Release function only undoes

[issue38429] Failed to compile with --enable-framework on macOS on master

2019-10-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. the deprecated APIs in getpath.c: Issue15498 That issue contains an ancient patch to switch to non-deprecated APIs, but we haven't had time yet to fully test these. The issue also mentions that Apple's install of Python already switched away from

[issue37677] Seg Fault on OSX when multiprocessing

2019-10-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: Looking at the stack trace this is a similar issue as the "no_proxy" one, but in some sense worse because it happens when just calling a regular unix API (not an Apple framework API). The first few lines of the stack trace are for code in th

[issue38331] Exec not recognizing global variables inside function

2019-10-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think this is a bug. def func(): print(var) This captures the globals at the time of definition, that is "global" references are resolved using the func.__globals__ attribute which is the globals dictionary at the time the function

[issue38053] Update plistlib documentation

2019-09-09 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue38053> ___ ___

[issue38053] Update plistlib documentation

2019-09-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: New changeset 24b11b8c95e96cf9c93fb7fc253e6e96506f2d77 by Ronald Oussoren (Jon Janzen) in branch 'master': bpo-38053 Update documentation for plistlib (GH-15727) https://github.com/python/cpython/commit/24b11b8c95e96cf9c93fb7fc253e6e96506f2d77

[issue18049] Re-enable threading test on macOS

2019-09-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: I think it is unlikely that the timeouts on Azure CI are related to this change. -- ___ Python tracker <https://bugs.python.org/issue18

[issue36409] plistlib old API should be removed

2019-09-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: New changeset ce81a925ef2d466b0d801deaba9af44a0dfc2aa1 by Ronald Oussoren (Jon Janzen) in branch 'master': bpo-36409: Remove old plistlib API deprecated in 3.4 (GH-15615) https://github.com/python/cpython/commit/ce81a925ef2d466b0d801deaba9af44a0dfc2aa1

[issue38027] Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda

2019-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: Ana, The error in "piperroroutput.txt" points to the issue Mark mentioned in msg351131: the current release of Numpy is not compatible with Python 3.8, but the tip of the tree on GitHub is. I can install Numpy from the repository: $ python

[issue38027] Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda

2019-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: Thanks for the update. What's the error message you get when using pip to install? -- ___ Python tracker <https://bugs.python.org/issue38

[issue38027] Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda

2019-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: What issues to you see? What operating system and version are you on? How did you install Python? Note that Python 3.8 is still in beta and therefore a lot of 3th party libraries do no yet have binary wheels available. You therefore likely need

[issue36205] Python 3.7 and 3.8 process_time is not reported correctly when built on older macOS versions

2019-08-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: @raymond, as to your question in msg350586: The release installers are generally build on the oldest release of the OS targeted by the installer. That's to ensure that the binaries actually work there. It should be possible to build on newer releases

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

2019-08-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd increase the default stack size for FreeBSD as well. AFAIK FreeBSD uses clang as the default compiler like macOS, and it is therefore likely that the two platforms have similar stack usage for similar code. BTW. I can provide a PR for this but cannot

[issue37877] MacOS crash appJar 3.7.3

2019-08-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: Does this application use Tkinter? If so, this is a duplicate of #37833, and a bug in macOS triggered by (amongst others) anaconda but (AFAIK) not by the Python.org installer. The "logout" is a crash in the WindowServer proces, which is

[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: The py2app issue I mentioned is not relevant for this issue. A simple tkinter runs fine with Python 3.7 (64-bit, 3.7.4, Python.org installer), the same script causes a WindowServer crash (SEGV) when bundled with py2app. This is definitely a bug in macOS

[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: Interestingly enough both users in the py2app issue I mentioned use the python.org installer to install Python. One of them mentions this only happens when py2app is used, and that the script works fine outside of an app. I'll look into this tonight

[issue31601] Availability of utimensat, futimens not checked correctly on macOS

2019-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd prefer a solution that uses symbols where the are available (weak linking). That way users on newer systems can use all functionality available there, without having multiple binaries. I've done this in the past for older macOS versions, but don't

[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: A followup question: How can I determine the exact version of Tk? -- ___ Python tracker <https://bugs.python.org/issue37

[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I had a similar problem during EuroPython, but that was when I had anaconda on my machine. I've since removed it because generally don't use it but had it installed for a training session. I haven't tried to reproduce, but also don't run 10.14.6 yet

[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is almost certainly a bug in macOS. I wonder if it is possible to work around it in Python. -- ___ Python tracker <https://bugs.python.org/issue37

[issue18049] Re-enable threading test on macOS

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

[issue18049] Re-enable threading test on macOS

2019-08-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: New changeset 9670ce76b83bde950020f8d89c4d27168aaaf912 by Ronald Oussoren (Michael Felt) in branch 'master': bpo-18049: Define THREAD_STACK_SIZE for AIX to pass default recursion limit test (GH-15081) https://github.com/python/cpython/commit

[issue18049] Re-enable threading test on macOS

2019-08-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: That code is only called if THREAD_STACK_SIZE is defined. The block I mention defines it for macOS and FreeBSD, but not for other platforms. I therefore expect that this code is not used on AIX (which would be easy enough to verify by adding an #error

[issue18049] Re-enable threading test on macOS

2019-08-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: @Michael: The relevant code is in Python/thread_pthread.h: https://github.com/python/cpython/blob/bf8162c8c45338470bbe487c8769bba20bde66c2/Python/thread_pthread.h#L34 There are already blocks for macOS and FreeBSD, adding a block for AIX should be easy

[issue18049] Re-enable threading test on macOS

2019-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: PR 15075 should fix this issue. As mentioned in that PR I do have a question w.r.t. the exact shape of that patch: I currently reintroduce a "skipUnless" decorator that only runs this test on macOS, I could also introduce one that just disable

[issue18049] Re-enable threading test on macOS

2019-08-01 Thread Ronald Oussoren
Change by Ronald Oussoren : -- pull_requests: +14822 pull_request: https://github.com/python/cpython/pull/15075 ___ Python tracker <https://bugs.python.org/issue18

[issue18049] Re-enable threading test on macOS

2019-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch to fix this should be: diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 1466d25e94..658bc1c7a0 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -1057,6 +1057,7 @@ class ThreadingExceptionTests

[issue18049] Re-enable threading test on macOS

2019-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: That is related, my patch removes a guard that should enable this test only on macOS. This fragment is the issue: - @unittest.skipUnless(sys.platform == 'darwin' and test.support.python_is_optimized(), -'test macosx problem

[issue18049] Re-enable threading test on macOS

2019-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: New changeset 1a057bab0f18d6ad843ce321d1d77a4819497ae4 by Ronald Oussoren in branch 'master': bpo-18049: Sync thread stack size to main thread size on macOS (GH-14748) https://github.com/python/cpython/commit/1a057bab0f18d6ad843ce321d1d77a4819497ae4

[issue37681] warning: ‘no_sanitize_thread’

2019-07-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: A GCC export should be able to tell more, but the warning should be harmless. Objects/obmalloc.c says that the thread sanitizer is available from GCC 4.8, but for some reason it isn't on your system. This seems to be a bug in obmalloc.c: The GCC 4.8.5

[issue37681] warning: ‘no_sanitize_thread’

2019-07-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: - Which python version do you try to build? - What platform are you on? - Which compiler and compiler version do you use? -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue37

[issue37653] make install fails

2019-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: A trick w.r.t. comments in command-lines is to use the ":" command, that's a no-op shell command that ignores its arguments (although you do need to take care with shell special characters as it is just a command like

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: You can always strip the file yourself :-) Ignoring leading whitespace for XML would be fairly invasive due to the way the code is set up. I'm not set against it, but I'm not in favour of complicating the implementation for an edge case like

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: @shaneg, could you elaborate on why you created this issue? I don't know of tooling that would generate such files, and it is highly unlikely that Apple's system tooling/libraries would do so. -- ___ Python

[issue33450] unexpected EPROTOTYPE returned by sendto on MAC OSX

2019-07-14 Thread Ronald Oussoren
Change by Ronald Oussoren : -- assignee: -> ronaldoussoren ___ Python tracker <https://bugs.python.org/issue33450> ___ ___ Python-bugs-list mailing list Un

[issue15898] OSX TTY bug

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is IMHO not a bug in Python, the problem can been seen when you rewrite the code in msg170261 in C, see the code below. An observation with the C code below: Both moving ``close(slave)`` to above the sleep or removing that close entirely fixes

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't agree with calling lstrip() before checking which format is used because leading whitespace is invalid for binary plist files (and plutil agrees with me on that). -- ___ Python tracker <ht

[issue34105] test_socket.test_host_resolution_bad_address fails on Mac OS X 10.13.6

2019-07-14 Thread Ronald Oussoren
Change by Ronald Oussoren : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue34105> ___ ___ Python-bugs-

[issue15730] Silence unused value warnings under Mac OS X 10.8/clang

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm closing this as out of date. -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue30757] pyinstaller can be added to docs, py2exe ref can be updated

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: Please also add a reference to py2app (at least of the programming FAQ as py2app is macOS-only). -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue30

[issue18049] Re-enable threading test on macOS

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. PyOS_CheckStack: I had that idea last year as well, and someone contributed a pull request, see issue33955. -- ___ Python tracker <https://bugs.python.org/issue18

[issue18049] Re-enable threading test on macOS

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've done some more testing, and the thread stack size could be smaller than 16MB, but definitely not as small as the value that's currently in thread_pthread.h. I prefer to have a slightly too large value here because IIRC the relation between

[issue28440] ensurepip and pip install failures on macOS Sierra with non-system Python 2.7.x

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: In response to msg282272: That day has come, the beta for 10.15 contains Python 3.7.3. -- ___ Python tracker <https://bugs.python.org/issue28

[issue18049] Re-enable threading test on macOS

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've converted the patch to a pull request (and closed to other issue because that has a patch that is less complete). I'm not sure if it is acceptable to backport this patch to 3.8 at this time. -- title: Re-enable threading test on OSX ->

[issue18049] Re-enable threading test on OSX

2019-07-13 Thread Ronald Oussoren
Change by Ronald Oussoren : -- pull_requests: +14543 pull_request: https://github.com/python/cpython/pull/14748 ___ Python tracker <https://bugs.python.org/issue18

[issue34264] Inconsistency between stack size in main thread and secondary threads on macOS

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a duplicate of 18049, which has a more complete patch. -- resolution: -> duplicate stage: patch review -> resolved superseder: -> Re-enable threading test on OSX ___ Python tracke

[issue34264] Inconsistency between stack size in main thread and secondary threads on macOS

2019-07-13 Thread Ronald Oussoren
Change by Ronald Oussoren : -- status: open -> closed ___ Python tracker <https://bugs.python.org/issue34264> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue37586] macOS: posix_spawn(..., setsid=True)

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is not a bug in Xcode 11. Xcode 11 includes definitions for new flags that get picked up by Python's build, but only work on a new version of macOS. I guess this could be seen as a bug in macOS 10.14 (and earlier) because it ignores an unknown flag

[issue37586] macOS: posix_spawn(..., setsid=True)

2019-07-13 Thread Ronald Oussoren
New submission from Ronald Oussoren : The Xcode 11 beta introduced a definition for POSIX_SPAWN_SETSID, but that flag is only supported on macOS 10.15 (also beta), not on earlier versions. Because of this the testsuite will have failures when you build using Xcode 11 on macOS 10.14. I'm

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: As promised there is now a pull request. I'd love a review (and a change to approve the pull request when reviewers are happy, I'm trying to get back into actively contributing). --- I now understand why locale.getdefaultlocale() fails even when LC_CTYPE

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-07-13 Thread Ronald Oussoren
Change by Ronald Oussoren : -- pull_requests: +14530 pull_request: https://github.com/python/cpython/pull/14736 ___ Python tracker <https://bugs.python.org/issue18

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: LC_CTYPE=UTF-8 is a valid configuration on macOS, and is in the default environment when you install a fresh system. This includes the beta's for macOS 10.15 and is therefore unlikely to change anytime soon. Interestingly enough I get this error even when

[issue37067] os.execl doesn't allow for empty string in mac

2019-05-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: Which exact python version did you test? The current codebase raises this exception on all platforms, not just macOS (see os_execv_impl in Modules/posixmodule.c) The behaviour of raising an exception was introduced in issue 28732 for Windows, not sure

[issue36890] python-3.7.3-macosx10.6.pkg verification error on macOS 10.6 Snow Leopard

2019-05-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: We generally don't drop support for OS versions in patch releases for Python. The 3.8 installer will require macOS 10.9, as does the default x86-64 installer for 3.7. -- ___ Python tracker <ht

[issue36773] Race condition during pickle.load()

2019-05-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: This could be a duplicate of Issue34572 -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue36

[issue36767] Segmentation fault when running c extension on macOS

2019-05-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The program you include in your report will crash because the interpreter is never initialised. See the embedding documentation for more information: https://docs.python.org/3/extending/embedding.html -- resolution: -> not a bug status: o

[issue36652] Non-embedded zip distribution

2019-04-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a duplicate of issue36010, which contains an explanation of why there is no installation method with a zipfile. -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue36

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: This might cause a MemoryError when the __length_hint__ of the source returns a too large value, even when the actual size of the comprehension is smaller, e.g.: [x**2 for x in range(LARGE_VALUE) if is_prime(x)] See also issue28940 -- nosy

[issue36514] -m switch revisited

2019-04-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: Given a python script in a file named foo.py in the current directory: * python -m foo Should, and does, work. * python -m foo.py Raises an error, because the command tries to run the submodule "py" of module "foo" as

[issue36514] -m switch revisited

2019-04-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is not a bug: * "python -m NAME" runs module (or package) NAME as a script, NAME should therefore be a module name and not a filename (and hence not have a .py suffix) * "python NAME" runs a script in file NAME and should therefore

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