[issue42458] Pathlib resolve() on Mac Catalina prepends secret path

2020-11-25 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I'm not sure if I understand what you're trying to do.

Is host_path_str a path on the local machine, or a path on the FTP server?

For the latter you probably want to use "PurePosixpath" instead of "Path", the 
latter is intended to be used for local paths and can access the filesystem.

--

___
Python tracker 
<https://bugs.python.org/issue42458>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42440] MACBOOK Python launcher

2020-11-23 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Your message has not enough information to determine what's going on.

- How was Python installed?
- What version of macOS?
- Are you using an M1 system?
- Is the problem reproducible with a script that you can share?
- ...

--

___
Python tracker 
<https://bugs.python.org/issue42440>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41100] Support macOS 11 and Apple Silicon Macs

2020-11-22 Thread Ronald Oussoren


Ronald Oussoren  added the comment:


New changeset e8b1c038b14b5fc8120aab62c9bf5fb840274cb6 by Ronald Oussoren in 
branch '3.9':
[3.9] bpo-41100: Support macOS 11 and Apple Silicon (GH-22855) (GH-23295)
https://github.com/python/cpython/commit/e8b1c038b14b5fc8120aab62c9bf5fb840274cb6


--

___
Python tracker 
<https://bugs.python.org/issue41100>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41100] Support macOS 11 and Apple Silicon Macs

2020-11-21 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
pull_requests: +22349
pull_request: https://github.com/python/cpython/pull/23293

___
Python tracker 
<https://bugs.python.org/issue41100>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42232] mmap module add Darwin specific madvise options

2020-11-21 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Thanks for the PR.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue42232>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17695] _sysconfigdata broken with universal builds on OSX

2020-11-21 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This only affects universal builds where the CPU architectures are sufficiently 
different. In particular binaries with both 32-bit and 64-bit alternatives.

The current installers and the upcoming Universal2 installers only contain 
64-bit code. That's likely to be the case going forward.


I'm closing this as "won't fix", this is a low priority issue that I'll never 
work on.

--
resolution:  -> wont fix
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue17695>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-20 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Please check with the requests project as well, I'm not sure how much of the 
stdlib HTTP client is used by requests.

This issue can stay open because the issue is reproducible using the stdlib.

--

___
Python tracker 
<https://bugs.python.org/issue42417>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-20 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Are you using the requests library (https://requests.readthedocs.io/en/master/)?

--
nosy: +ronaldoussoren

___
Python tracker 
<https://bugs.python.org/issue42417>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42245] concurrent.futures.ProcessPoolExecutor freezes depending on complexity

2020-11-19 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Could someone that runs into this issue with python 3.7 please test if the 
issue is still present in 3.8 or 3.9?

BTW. I'm not convinced this is a macOS specific problem, see issue40379 which 
claims that fork-without-exec strategy is inherently broken.

--

___
Python tracker 
<https://bugs.python.org/issue42245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42401] Plislit does not handle date timezone correctly

2020-11-19 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
components: +macOS

___
Python tracker 
<https://bugs.python.org/issue42401>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42386] Update icons for macOS 11

2020-11-17 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
versions:  -Python 3.6, Python 3.7

___
Python tracker 
<https://bugs.python.org/issue42386>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42386] Update icons for macOS 11

2020-11-17 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I agree that the icons need a refresh, but: I'd also like to have icons in an 
editable from. 

The current icons were created by someone that donated the icons themselves and 
not their sources. This has made it impossible to update them (this redesign, 
but also for higher resolution) without completely recreating them.

--

___
Python tracker 
<https://bugs.python.org/issue42386>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39584] multiprocessing.shared_memory: MacOS crashes by running attached Python code

2020-11-17 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I’ve filed an issue with Apple about this: FB8903019

--

___
Python tracker 
<https://bugs.python.org/issue39584>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39584] multiprocessing.shared_memory: MacOS crashes by running attached Python code

2020-11-17 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Having thought about this a little more: I agree, we shouldn’t hard code a 
limit.  I’m not against working around misfeatures, but in this case that’s 
hard to do: Even if we’d limit the size of a single shared memory segment the 
user can create a number of them to once again use enough memory to crash the 
machine.

IMHO We should document that this can happen on macOS (preferable with some 
indication of how much shared memory can safely be used). I’ve therefore added 
the “Documentation” component.

--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python

___
Python tracker 
<https://bugs.python.org/issue39584>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-16 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
components: +macOS
nosy: +ned.deily

___
Python tracker 
<https://bugs.python.org/issue40928>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12594] Docs for "Using Python on a Macintosh" needs to be updated

2020-11-16 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
components: +macOS
nosy: +ronaldoussoren

___
Python tracker 
<https://bugs.python.org/issue12594>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21521] Tkinter + OSX + Spaces : Multiple file dialogues created

2020-11-16 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
components: +macOS
nosy: +ronaldoussoren

___
Python tracker 
<https://bugs.python.org/issue21521>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38261] Tkinter CheckButton default label white in macOS dark mode

2020-11-16 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

The same behaviour can be observed with Tk 8.6.10 build on macOS 11.

IMHO the problem is not so much that the default text color changes, but that 
the background color of the window does not change, it stays the same light 
color as in light mode. 

According to the Tk wiki 
<https://wiki.tcl-lang.org/page/Tk+differences+on+Mac+OS+X> the background 
color should adjust itself automatically.  I don't know if Tkinter does 
something that affects this.

--

___
Python tracker 
<https://bugs.python.org/issue38261>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41116] build on macOS 11 (beta) does not find system-supplied third-party libraries

2020-11-15 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +22192
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23301

___
Python tracker 
<https://bugs.python.org/issue41116>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42362] Switch to clang as default compiler in build-installer.py

2020-11-15 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +22189
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23298

___
Python tracker 
<https://bugs.python.org/issue42362>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42362] Switch to clang as default compiler in build-installer.py

2020-11-15 Thread Ronald Oussoren


New submission from Ronald Oussoren :

build-installer.py still defaults to gcc as the default compiler, even though 
clang has been the system compiler for ages (and gcc is an alias in anything 
remotely recent).

PR is forthcoming

--
assignee: ronaldoussoren
components: macOS
messages: 381015
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: Switch to clang as default compiler in build-installer.py
type: behavior

___
Python tracker 
<https://bugs.python.org/issue42362>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41100] Build failure on macOS 11 (beta)

2020-11-15 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
pull_requests: +22186
pull_request: https://github.com/python/cpython/pull/23295

___
Python tracker 
<https://bugs.python.org/issue41100>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42361] Use Tcl/Tk 8.6.10 in build-installer.py when building on recent macOS

2020-11-15 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +22184
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23293

___
Python tracker 
<https://bugs.python.org/issue42361>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42361] Use Tcl/Tk 8.6.10 in build-installer.py when building on recent macOS

2020-11-15 Thread Ronald Oussoren


New submission from Ronald Oussoren :

As discussed before we want to switch to Tcl/Tk 8.6.10 when building the 
installer on a recent version of macOS. The build on macOS 10.9 should continue 
to use 8.6.8 due to build issues.

PR is forthcoming (currently running tests)

--
assignee: ronaldoussoren
components: Tkinter, macOS
messages: 381014
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: Use Tcl/Tk 8.6.10 in build-installer.py when building on recent macOS
type: behavior

___
Python tracker 
<https://bugs.python.org/issue42361>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29076] Mac installer shell updater script silently fails if default shell is fish

2020-11-15 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

@Erland: The attached patch looks fine to me. Could you convert it to a PR?

--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.6, Python 
3.7

___
Python tracker 
<https://bugs.python.org/issue29076>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Thanks for testing!

--
resolution:  -> fixed
stage: patch review -> resolved

___
Python tracker 
<https://bugs.python.org/issue42351>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:


New changeset 7a27c7ed4b2b45bb9ea27d3f5c4f423495d6e939 by Ronald Oussoren in 
branch 'master':
bpo-42351: Avoid error when opening header with non-UTF8 encoding (GH-23279)
https://github.com/python/cpython/commit/7a27c7ed4b2b45bb9ea27d3f5c4f423495d6e939


--

___
Python tracker 
<https://bugs.python.org/issue42351>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41100] Build failure on macOS 11 (beta)

2020-11-14 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
pull_requests: +22174
pull_request: https://github.com/python/cpython/pull/23280

___
Python tracker 
<https://bugs.python.org/issue41100>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I've created PR. Could you please check if that fixes the problem?

--

___
Python tracker 
<https://bugs.python.org/issue42351>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-14 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +22173
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23279

___
Python tracker 
<https://bugs.python.org/issue42351>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

That's annoying. A quick workaround is to patch setup.py:get_headers_for and 
add "encoding='latin1'" to the arguments of open.

I'll look into a better fix later this weekend.

--

___
Python tracker 
<https://bugs.python.org/issue42351>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33074] dbm corrupts index on macOS (_dbm module)

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This is a duplicate of #30388

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> ndbm can't iterate through values on OS X

___
Python tracker 
<https://bugs.python.org/issue33074>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

See also #33074

--

___
Python tracker 
<https://bugs.python.org/issue30388>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

the most recent UUID implementation on opensource.apple.com: 
https://opensource.apple.com/source/Libc/Libc-1353.100.2/uuid/uuidsrc/gen_uuid.c.auto.html

The implementation of get_node_id() doesn't ignore the iBridge interface, which 
means uuid_generate_time(3) could run into this issue (and because of that, 
Python's uuid module)

I've filed an issue with Apple about this: FB889

Note that switching to libuuid from util-linux wouldn't help here, that also 
doesn't ignore the iBridge interface.

I'm tempted to close this issue as "3th-party" because this is bug in the 
system implementation of uuid_generate_time.

--

___
Python tracker 
<https://bugs.python.org/issue41552>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37737] mmap module track anonymous page on macOS

2020-11-13 Thread Ronald Oussoren


New submission from Ronald Oussoren :

I've closed the PR because I don't think this is a useful feature.

--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue37737>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2020-11-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

It looks like the lack of completions in msg375769 is a problem with Tk 8.6.8 
as used by the python.org installers.

I have a build of master with Tk 8.6.10 on my DTK system and with that 
Edit->Show completions works in a shell window.

However: Ctrl+s does not show the completion pop-up, even though the "Edit" 
button in the application menu flashes (which indicates that Ctrl+s is 
recognised as a keyboard shortcut).  Just using Tab for completion works fine 
though (shows the completion pop-up).

---

I did get a similar traceback to the one in msg375764 once, this is without 
using multiprocessing. I haven't been able to reproduce this yet.

python3.10 -m idlelib  
Exception in Tkinter callback
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/__init__.py",
 line 1884, in __call__
return self.func(*args)
  File 
"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/idlelib/autocomplete_w.py",
 line 248, in winconfig_event
acw_width, acw_height = acw.winfo_width(), acw.winfo_height()
  File 
"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/__init__.py",
 line 1290, in winfo_width
self.tk.call('winfo', 'width', self._w))
_tkinter.TclError: bad window path name 
".!listedtoplevel.!frame.text.!toplevel8"

--

___
Python tracker 
<https://bugs.python.org/issue41611>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

> And yet one question. What do you see if you print '\udcf0\udc9f\udc98\udc80' 
> in IDLE?

This prints a smiley emoji, likewise for printing chr(128516)

--

___
Python tracker 
<https://bugs.python.org/issue42318>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

When I assign root.clipboard_get() to "v" I get:

>>> print(ascii(v))
'\udced\udca0\udcbd\udced\udcb8\udc84'
>>> print(v)
??

This is with Tk 8.6.10.

--

___
Python tracker 
<https://bugs.python.org/issue42318>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

BTW. The unicodeFromTclStringAndSize() basically undoes the special treatment 
of \0 in Modified UTF-8 [1]. That page says that all known implementation of 
MUTF-8 treat surrogate pairs the same as CESU-8 [2], which is UTF-8 with 
characters outside of the BMP encoded as surrogate pairs which are then 
converted to UTF-8.

Neither encoding is currently supported by Python.

[1] https://en.wikipedia.org/wiki/UTF-8#Modified_UTF-8
[2] https://en.wikipedia.org/wiki/CESU-8

--

___
Python tracker 
<https://bugs.python.org/issue42318>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

@Pixmew: I get this error with Tk 8.6.10 on macOS 11. With Tk 8.6.8 on macOS 
10.15 (from the python.org installer) I get the behaviour described in 
msg380906.

8.6.10 is the version of Tk we'd like to switch to for the "universal2", it is 
the latest release in the 8.6.x branch and contains numerous bug fixes.

The "Intel" installers (the ones currently on Python.org) we'll continue to use 
Tk 8.6.8 due to build issues on macOS 10.9 with newer Tk versions.

--

___
Python tracker 
<https://bugs.python.org/issue42318>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

With 8.6.10:

>>> print(ascii("")) raises the SyntaxError mentioned earlier
>>> print(ascii(input())) works and prints:
'\udced\udca0\udcbd\udced\udcb8\udc84'

In an editor window I don't get spurious text, but syntax colouring is a bit 
off: The text after the closing quote is coloured as if it is inside the string 
literal. That continues for the characters on the next line

--

___
Python tracker 
<https://bugs.python.org/issue42318>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

With 8.6.8 both "hang", in that the Shell window no longer accepts input. I've 
checked that ``print(input())`` works when I don't use an emoji. 

Interestingly enough, pasting ``print(ascii(""))`` into an edit window does 
work, I can continue editing, but the display is messed up. It looks like:

   print(ascii(""))print(ascii("

But with the first two identifiers coloured and the two other identifiers 
black. Saving the file results in the expected file contents.

--

___
Python tracker 
<https://bugs.python.org/issue42318>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-12 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

> In any case, do you think that there is a way to get the behavior I am 
> looking for (basically, invoke a Python interpreter that has sys.prefix set 
> to the venv but without a symbolic link)?

Not that I know.

Using the python binary in the virtual environment is part of the design of 
this feature. That you can "fake" this on a lot of unix platforms by using a 
different interpreter with argv[0] set to a different path is a happy 
coincidence. 

I'm also not convinced that your trick actually accomplishes what you hope, the 
virtual environment still has a dependency on the Python installation in the 
original location. That location is mentioned in pyvenv.cfg at the root of the 
environment, and AFAIK that configuration is used to set up sys.path.

--

___
Python tracker 
<https://bugs.python.org/issue42312>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42245] concurrent.futures.ProcessPoolExecutor freezes depending on complexity

2020-11-11 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

The script as-is doesn't work with 3.8 because it uses the "spawn" strategy. I 
haven't tried to tweak the script to get it to work on 3.8 because the scripts 
works fine for me with 3.7.

The smaller script in msg380225 works for me on both python 3.7.4 and 3.8.3

Pip list says:

Package Version
--- ---
joblib  0.17.0 
numpy   1.19.4 
pandas  1.1.4  
pip 19.0.3 
python-dateutil 2.8.1  
pytz2020.4 
scikit-learn0.23.2 
scipy   1.5.4  
setuptools  40.8.0 
six 1.15.0 
sklearn 0.0
threadpoolctl   2.1.0  
xgboost 1.2.1

--

___
Python tracker 
<https://bugs.python.org/issue42245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-11 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I've thought about this some more and haven't changed my opinion: the current 
behaviour is intentional and won't change.

I'm therefore closing this issue.

--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue42312>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42232] mmap module add Darwin specific madvise options

2020-11-10 Thread Ronald Oussoren


New submission from Ronald Oussoren :

Thanks for the PR. The reason I haven't reviewed the PR yet is that I need to 
check the SDK headers to see if the patch is complete.

--
versions: +Python 3.10

___
Python tracker 
<https://bugs.python.org/issue42232>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-10 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I've filed Issue42318 about the surrogate pairs error I mention in msg380552.

--

___
Python tracker 
<https://bugs.python.org/issue42225>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-10 Thread Ronald Oussoren

New submission from Ronald Oussoren :

As mentioned in msg380552: I get an SyntaxError with message "utf-8' codec 
can't encode characters in position 7-12: surrogates not allowed." when I paste 
a smiley emoji in an IDLE interactive shell and try to execute that line, for 
example using:

>>> print("")

The error is likely due to a surrogate pair being present in the UTF-8 
representation of a Tcl/Tk string.

It should be possible to work around this in 
_tkinter.c:unicodeFromTclStringAndSize by merging surrogate pairs. 

This is with:
- Python 3.10
- macOS 11 (arm64)
- Tk 8.6.10

With Tk 8.6.8 (as included in the macOS installers on python.org) printing 
won't work at all, as mentioned in bpo-42225.

--
components: Tkinter, macOS
messages: 380715
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a 
text widget
type: behavior

___
Python tracker 
<https://bugs.python.org/issue42318>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-10 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

The way sys.prefix is calculated on macOS ensures that the correct sys.prefix 
is calculated even if you copy the binary to a different location. That's 
functionality I don't want to drop.

--

___
Python tracker 
<https://bugs.python.org/issue42312>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-10 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Note that the same is true for python3 outside of a venv, it does not use 
argv[0] to locate says.prefix (for framework builds).  That’s intentional.

--

___
Python tracker 
<https://bugs.python.org/issue42312>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-10 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

The difference in behaviour is because the executable does not look at argv[0] 
to find its location on macOS. Your trick therefore doesn't work.

I prefer the current behaviour.

What I don't understand is *why* you want to do this. If I read your report 
correctly you're trying to run an Python 3 executable outside of the virtual 
environment as if it is in the virtual environment. Why not just use the binary 
inside the virtual environment?

--

___
Python tracker 
<https://bugs.python.org/issue42312>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-11-09 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Can this issue be closed?  Multiprocessing seems to work as designed. There is 
a behaviour change between 3.7 and 3.8, but that's documented in What's New.

--

___
Python tracker 
<https://bugs.python.org/issue39931>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

PyTuple_SetItem() does clear the previous item, it uses Py_XSETREF. The macro 
version (PyTuple_SET_ITEM) does not clear the previous item.

--
nosy: +ronaldoussoren

___
Python tracker 
<https://bugs.python.org/issue42294>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13829] exception error in _scproxy.so when called after fork

2020-11-09 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I propose closing this as 3th-party or out-of-date:

1) The crash in _scproxy is due to limitations in Apple's libraries, in 
particular they don't work in child processes created with os.fork() without 
calling execv*()

2) The primary way to run into this is by the use of the multiprocessing 
library. The default spawn strategy for multiprocessing was changes to "spawn" 
instead of "fork" in 3.8 (for macOS) because of problems like this.

--
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> pending

___
Python tracker 
<https://bugs.python.org/issue13829>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

W.r.t. the SyntaxError I got (msg380552): It looks like it will be possible to 
work around that problem in _tkinter.c:unicodeFromTclStringAndSize by merging 
surrogate pairs.

--

___
Python tracker 
<https://bugs.python.org/issue42225>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Note that the main installers for Python 3.8 and 3.9 will continue to use Tk 
8.6.8 due to problems when building later Tk version on macOS 10.9.  

The current plan is to add an installer variant to (amongst others) uses Tk 
8.6.10 (and .11 when that's released).

--

___
Python tracker 
<https://bugs.python.org/issue42225>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41116] build on macOS 11 (beta) does not find system-supplied third-party libraries

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

So close...

the problem we're running into is that "-isysroot" is only added for universal 
builds, not for regular builds. Furthermore unixccompiler doesn't know that is 
should always look in the SDK and not in the regular location (for system 
locations). 

I guess we should switch to:
- Never add -isysroot to CFLAGS (change to configure)
- Teach _osx_support about locating the default sdk root, both for Xcode and 
"command line tools" (_osx_support.default_sdk_root())
- Use that new function in setup.py and unixccompiler.

The first item might affect older systems where Xcode shipped with 2 SDKs 
(current and previous OS version). 

Is that something we can back port to 3.8 and 3.9? 

A less clean, but smaller, change is to teach the configure script to always 
add -isysroot on macOS, not just when doing a universal build.

--

___
Python tracker 
<https://bugs.python.org/issue41116>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

The crash I had on macOS with tk 8.6.8 appears to be gone when using tk 8.6.10.

What I got back was a SyntaxError when pasting a smiley emoji in an IDLE shell 
window when trying to type execute print("").  The SyntaxError message says: 
'utf-8' codec can't encode characters in position 7-12: surrogates not allowed. 
 That's likely to to how Tk represents this character in its text widget, and 
is something we could work around when converting Tcl/Tk strings to Python 
strings.

Printing the emoji using 'print(chr(128516))' works fine.

The scriptlet in msg380173 also works.

--

___
Python tracker 
<https://bugs.python.org/issue42225>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I've filed a Tk issue about this: 
https://core.tcl-lang.org/tk/tktview/f9fa92d8e06972b5f0583b07a3c98eaac0a0

What versions of Tk are used? 
- On macOS I've tested with the  Python.org installer, which uses Tk 8.6.8.

--

___
Python tracker 
<https://bugs.python.org/issue42225>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:


New changeset db087f6d9ef9a7c873cd883ee120126fc0ca0c72 by Miss Islington (bot) 
in branch '3.8':
bpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (GH-23075) 
(GH-23198)
https://github.com/python/cpython/commit/db087f6d9ef9a7c873cd883ee120126fc0ca0c72


--

___
Python tracker 
<https://bugs.python.org/issue41754>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28491] Remove bundled libffi for OSX

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This was implemented in bpo-41100

--
dependencies:  -Build failure on macOS 11 (beta)
resolution:  -> fixed
stage: test needed -> resolved
status: open -> closed
superseder:  -> Build failure on macOS 11 (beta)

___
Python tracker 
<https://bugs.python.org/issue28491>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-08 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue41754>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Fixed in bpo-41100.

--
dependencies:  -Build failure on macOS 11 (beta)
resolution:  -> fixed
stage: needs patch -> resolved
superseder:  -> Build failure on macOS 11 (beta)

___
Python tracker 
<https://bugs.python.org/issue37586>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-08 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue37586>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:


New changeset 23831a7a90956e38b7d70304bb6afe30d37936de by Ronald Oussoren in 
branch 'master':
bpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (GH-23075)
https://github.com/python/cpython/commit/23831a7a90956e38b7d70304bb6afe30d37936de


--

___
Python tracker 
<https://bugs.python.org/issue41754>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42283] test_idle is interactive on macOS 11

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I was using a Tk 8.6.8 build on macOS 11. Looking at this more closely there 
are clearly other problems with that build: All windows that were created by 
the test were completely black except for the window chrome. 

@terry.reedy: I got those crash reporter pop-ups as well, they seem to be 
related to tests where the interpreter is made to crash as part of the test 
(for example in the concurrent.futures tests).  I hope we can find a way to 
suppress those pop-ups.

--

___
Python tracker 
<https://bugs.python.org/issue42283>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31359] `configure` script incorrectly detects symbols as available on Mac w/ Xcode 8+

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This is fixed in bpo-41100

--
dependencies:  -Build failure on macOS 11 (beta)
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
superseder:  -> Build failure on macOS 11 (beta)

___
Python tracker 
<https://bugs.python.org/issue31359>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34597] Python needs to check existence of functions at runtime for targeting older macOS platforms

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This is fixed in bpo-41100

--
dependencies:  -Build failure on macOS 11 (beta)
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
superseder:  -> Build failure on macOS 11 (beta)
type: crash -> behavior

___
Python tracker 
<https://bugs.python.org/issue34597>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41100] Build failure on macOS 11 (beta)

2020-11-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:


New changeset 41761933c1c30bb6003b65eef1ba23a83db4eae4 by Ronald Oussoren in 
branch 'master':
bpo-41100: Support macOS 11 and Apple Silicon (GH-22855)
https://github.com/python/cpython/commit/41761933c1c30bb6003b65eef1ba23a83db4eae4


--

___
Python tracker 
<https://bugs.python.org/issue41100>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41126] Running test suite gives me - python.exe(14198, 0x114352dc0) malloc: can't allocate region

2020-11-07 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue41126>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42283] test_idle is interactive

2020-11-07 Thread Ronald Oussoren


New submission from Ronald Oussoren :

I noticed this on a macOS 11.0.1 box: When I run "python -m test.regrtest 
-uall" the IDLE testsuite is run ('test_idle'), and those tests pop up windows 
and won't make progress until I close those windows.

--
assignee: terry.reedy
components: IDLE
messages: 380501
nosy: ronaldoussoren, terry.reedy
priority: normal
severity: normal
status: open
title: test_idle is interactive
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue42283>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42122] macOS complains about how fonts are accessed

2020-11-07 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I'm getting a similar warning on a macOS 11 box:

0:06:29 load avg: 1.58 [184/424/1] test_idle
2020-11-07 10:43:37.878 Python[97785:3275468] CoreText note: Client requested 
name ".applesystemuifontmonospaced", it will get Times-Roman rather than the 
intended font. All system UI font access should be through proper APIs such as 
CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-11-07 10:43:37.878 Python[97785:3275468] CoreText note: Set a breakpoint 
on CTFontLogSystemFontNameRequest to debug.
2020-11-07 10:43:37.881 Python[97785:3275468] CoreText note: Client requested 
name ".applesystemuifontmonospaced", it will get Times-Roman rather than the 
intended font. All system UI font access should be through proper APIs such as 
CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].


I'm leaving this issue as closed because the font name is not used in CPython's 
source code. This is an issue with Tcl/Tk.

--

___
Python tracker 
<https://bugs.python.org/issue42122>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42281] Inconsistent ProcessPoolExecutor behaviour on macOS between 3.7 and 3.8/9

2020-11-07 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

In 3.8 the spawn method for multiprocessing changed from "fork" to "spawn" (see 
https://docs.python.org/3/whatsnew/3.8.html#multiprocessing).

A side effect of this is that the module gets executed again in the child 
processes (the same as on Windows).

The reason for this change is that multiple higher level APIs, some of which 
used by the Python implementation, are are not safe to use with the "fork" 
spawning strategy (as in: causing crashing when using the fork strategy).

--
resolution:  -> wont fix
stage:  -> resolved
status: open -> pending

___
Python tracker 
<https://bugs.python.org/issue42281>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42276] Bug in adfuller test and a suggested fix

2020-11-06 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Statsmodel is not part of the Python standard library. 

The issue tracker for this packages seems to be at: 
https://github.com/statsmodels/statsmodels/issues

--
nosy: +ronaldoussoren
resolution:  -> third party
stage:  -> resolved
status: open -> closed
type: enhancement -> behavior

___
Python tracker 
<https://bugs.python.org/issue42276>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42263] Removing thread reference in thread results in leaked reference

2020-11-04 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Could this be a race condition?  The thread that's created in the test is not 
waited on (join), it may or may not have exited by the time the test function 
returns.

--
nosy: +ronaldoussoren

___
Python tracker 
<https://bugs.python.org/issue42263>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42254] inspect.getmembers iterator version

2020-11-03 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I personally don't think it is worthwhile to add another API for this without a 
good use case.  The memory overhead of eagerly creating a list should be fairly 
small.

--

___
Python tracker 
<https://bugs.python.org/issue42254>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42255] webbrowser.MacOSX is unused, untested and undocumented

2020-11-03 Thread Ronald Oussoren


New submission from Ronald Oussoren :

class webbrower.MacOSX is untested and undocumented. It is also not used by 
webbrowser itself (webbrowser.MacOSXOSAScript is used to launch browsers).

It's probably safe to just remove the class, otherwise deprecate in 3.10 for 
removal in 3.11.

--
components: Library (Lib), macOS
messages: 380293
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: webbrowser.MacOSX is unused, untested and undocumented
type: enhancement
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue42255>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38647] Why only the MacOSXOSAScript in webbrowser does not have the name property?

2020-11-03 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I've created a PR for adding the attribute.

--

___
Python tracker 
<https://bugs.python.org/issue38647>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38647] Why only the MacOSXOSAScript in webbrowser does not have the name property?

2020-11-03 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +22048
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23134

___
Python tracker 
<https://bugs.python.org/issue38647>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42254] inspect.getmembers iterator version

2020-11-03 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

why?

--
nosy: +ronaldoussoren

___
Python tracker 
<https://bugs.python.org/issue42254>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

@Kevin Walzer: Is the problem were seeing a known issue with Tk?

--
nosy: +wordtech

___
Python tracker 
<https://bugs.python.org/issue42225>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2020-11-01 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +21998
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23079

___
Python tracker 
<https://bugs.python.org/issue42235>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2020-11-01 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I'm working on a PR. 

The current version of build-installer.py doesn't use LTO/PGO because 
installers are build on macOS 10.9 where the compiler doesn't reliably support 
this. Recent compilers should work a lot better.

The upcoming PR enables --enable-optimizations when building on macOS 10.15 or 
later (Xcode 11 or 12), mostly because that's what I'm testing with. 


I'm listing 41100 as a dependency because having that is the only way to make 
use of this PR at the moment: build-installer.py uses --enable-universalsdk and 
41100 introduces "universal2" as a set of architectures that can be build using 
Xcode 12. All other sets of architectures require Xcode 10 or older.

--
components: +macOS
dependencies: +Build failure on macOS 11 (beta)
nosy: +ned.deily

___
Python tracker 
<https://bugs.python.org/issue42235>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2020-11-01 Thread Ronald Oussoren


New submission from Ronald Oussoren :

With recent enough compilers it is possible to use --enable-optimzations when 
building the installer.

--
messages: 380152
nosy: ronaldoussoren
priority: normal
severity: normal
status: open
title: [macOS] Use --enable-optimizations in build-installer.py
type: enhancement

___
Python tracker 
<https://bugs.python.org/issue42235>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

The error on Linux could be related to this issue: 
https://bugzilla.redhat.com/show_bug.cgi?id=1498269

--

___
Python tracker 
<https://bugs.python.org/issue42225>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-01 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I've created a PR that ignores this exception.

--

___
Python tracker 
<https://bugs.python.org/issue41754>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-01 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +21995
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23075

___
Python tracker 
<https://bugs.python.org/issue41754>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30053] Problems building with --enable-profiling on macOS

2020-11-01 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

The system compiler on macOS 10.9 or later doesn't support "-pg" (profile 
generation) at all:

$ clang -o t -pg t.c
clang: error: the clang compiler does not support -pg option on versions of OS 
X 10.9 and later

This means that its unlikely I'll look into this issue.

--

___
Python tracker 
<https://bugs.python.org/issue30053>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24380] Got warning when compiling _scproxy.c on Mac

2020-11-01 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I'm closing this as out of date because the code the compiler warns about is no 
longer present in the master branch.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
type:  -> compile error

___
Python tracker 
<https://bugs.python.org/issue24380>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29566] binhex() creates files with mixed line endings

2020-11-01 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue29566>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-10-31 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

An option is to use the host UUID instead of libuuid (as used by the _uuid 
extension). This has two problems though: (1) the RFC prescribes that the node 
id is a IEEE 802 MAC address, and (2) the host UUID is a full UUID and would 
have to be post processed.   Because of this I don't think this is a usable 
alternative.

The relevant API is gethostuuid().

Related stackoverflow: 
https://stackoverflow.com/questions/933460/unique-hardware-id-in-mac-os-x

Related elastic issue (where I found gethostuuid): 
https://github.com/elastic/beats/issues/14439

--

___
Python tracker 
<https://bugs.python.org/issue41552>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-10-31 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I've verified that python 3.8 and 3.9 use the system uuid functions (part of 
libsystem). This means this issue might not be fixable without dropping the use 
of the _uuid extension.

@terrygreeniaus: Can you still reproduce this issue?  If so, does "import 
_uuid" work on your system?


I do have a system with an iBridge interface, but that interface is below the 
active network interface and is never used.   That system is headless, I cannot 
easily try to reproduce the issue by messing with its network interfaces.

I wonder how useful it is to try to fix this issue, I'd personally prefer to 
use uuid4() because that doesn't leak information about the host.

--

___
Python tracker 
<https://bugs.python.org/issue41552>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32937] Multiprocessing worker functions not terminating with a large number of processes and a manager

2020-10-31 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This issue can probably be closed as out of date:

Using: Python3.9, installer from python.org. On my laptop os.cpu_count() == 8.

"python -c 'import repro; repro.main()' works for me (it runs a while and 
exists when all workers have exited). The repro module contains the code below, 
this is the code from the original message with some changes because of changes 
to the multiprocessing launcher strategy on macOS.

# repro.py
import multiprocessing
from multiprocessing import Pool, Manager
import time
import random

def worker_function( index, messages ):

print( "%d: Entered" % index )
time.sleep( random.randint( 3, 15 ) )
messages.put( "From: %d" % index )
print( "%d: Exited" % index )


def main():
manager = Manager()
messages = manager.Queue()
with Pool( processes = None ) as pool:

for x in range( 30 ):
pool.apply_async( worker_function, [ x, messages ] )

pool.close()
pool.join()
# EOF

--
nosy: +ronaldoussoren
resolution:  -> out of date
stage:  -> resolved
status: open -> pending
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue32937>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29566] binhex() creates files with mixed line endings

2020-10-31 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I've added a PR that changes the line ending to "\r" in encoded data.

Not very useful now that binhex is deprecated, but this allows us to close this 
issue.

--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6, Python 
3.7

___
Python tracker 
<https://bugs.python.org/issue29566>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29566] binhex() creates files with mixed line endings

2020-10-31 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +21978
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23059

___
Python tracker 
<https://bugs.python.org/issue29566>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26377] Tkinter dialogs will not close if root window not packed.

2020-10-31 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Is this problem still present?

I've used the following script to test:

import tkinter
from tkinter import messagebox

root = tkinter.Tk()
box = messagebox.showinfo("Title", "A Message")

# -- EOF ---

With this script I can close the message box without problems (by clicking on 
the OK button). Both when running from the command-line and when running from 
IDLE.

Python 3.9, installer from python.org.

--

___
Python tracker 
<https://bugs.python.org/issue26377>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42165] closed (reopen with other issue)

2020-10-27 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue42165>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41100] Build failure on macOS 11 (beta)

2020-10-25 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
pull_requests: +21899
pull_request: https://github.com/python/cpython/pull/21115

___
Python tracker 
<https://bugs.python.org/issue41100>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7175] Define a standard location and API for configuration files

2020-10-25 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
nosy:  -ronaldoussoren

___
Python tracker 
<https://bugs.python.org/issue7175>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34597] Python needs to check existence of functions at runtime for targeting older macOS platforms

2020-10-25 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

The active PR in bpo-41100 will fix this issue as well.

--
dependencies: +Build failure on macOS 11 (beta)

___
Python tracker 
<https://bugs.python.org/issue34597>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   5   6   7   8   9   10   >