[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Please open a new issue for "surrogates not allowed".

--

___
Python tracker 

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

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

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



[issue40624] add support for != (not-equals) in ElementTree XPath

2020-11-08 Thread Stefan Behnel


Change by Stefan Behnel :


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

___
Python tracker 

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



[issue40624] add support for != (not-equals) in ElementTree XPath

2020-11-08 Thread Stefan Behnel


Stefan Behnel  added the comment:


New changeset 97e8b1eaeaf3aa325c84ff2e13417c30414d0269 by Ammar Askar in branch 
'master':
bpo-40624: Add support for the XPath != operator in xml.etree (GH-22147)
https://github.com/python/cpython/commit/97e8b1eaeaf3aa325c84ff2e13417c30414d0269


--

___
Python tracker 

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



[issue42233] GenericAlias does not support union type expressions

2020-11-08 Thread Ken Jin


Change by Ken Jin :


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

___
Python tracker 

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



[issue42233] GenericAlias does not support union type expressions

2020-11-08 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 4eb41d055e8307b8206f680287e492a6db068acd by kj in branch 'master':
bpo-42233: Add union type expression support for GenericAlias and fix 
de-duplicating of GenericAlias (GH-23077)
https://github.com/python/cpython/commit/4eb41d055e8307b8206f680287e492a6db068acd


--

___
Python tracker 

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



[issue36388] pdb: do_debug installs sys.settrace handler when used inside post_mortem

2020-11-08 Thread daniel hahler


Change by daniel hahler :


--
pull_requests: +22102
pull_request: https://github.com/python/cpython/pull/23202

___
Python tracker 

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



[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-11-08 Thread Inada Naoki

Inada Naoki  added the comment:

>> 1. Such understanding of a tutorial is debatable. Tutorial is just a 
>> material for learning written with some system in mind, which is more 
>> interesting to read than dry reference material. A tutorial, generally 
>> dpeaking, may be both for beginners and for professionals.
>
> OK, I will send this topic to python-dev first.

For the record, there is a long thread in python-dev about this issue:

* main thread: 
https://mail.python.org/archives/list/python-...@python.org/thread/MXMEFFYB6JXAKSS36SZ7DX4ASP6APWFP/
* another thread: 
https://mail.python.org/archives/list/python-...@python.org/thread/WNHVZLEO3ZVDOFP2FHRBUQR4GY24RIJJ/

## High level discussion: focus on new user vs write more and more details.

More detail:
* Abdur-Rahmaan Janhangeer

Focus on new user:
* Paul Moore 
* Brett Cannon
* Guido van Rossum
* Kyle Stanley
* Carol Willing
* Serhiy Storchaka

## About this specific case. (Adding __context__ and __suppress_context vs 
removing __cause__)

Add __context__:
(no one)

Remove __cause__:
* Kyle Stanley
* Éric Araujo (in GH-23160)

Riccardo Polignieri asked that to be very careful about removing something, but 
he did not vote for adding __context__ and __supress_context__.

--

I merged PR-23162 for keep focus on new users and consistent for now.

But I have not closed this issue yet because documentation WG may revisit the 
issue. (see 
https://mail.python.org/archives/list/python-...@python.org/message/IWW2YBLJK4T3OWSKDUDVDVXPWDGIFWTC/
 ).

--

___
Python tracker 

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



[issue42289] Found a secret/private key in code.

2020-11-08 Thread Zachary Ware


Zachary Ware  added the comment:

That commit does not appear to be part of any branch of the main repository, 
and also appears to contain non-changes to every file in the repository.

There are known private keys somewhere in Lib/test for use in tests.  If you're 
referring to something else, please point it out a bit more clearly, preferably 
with a link directly to the file :)

If you're talking about accidentally committing your own private key to your 
personal fork of the repo, your best course is probably to delete your fork and 
re-fork, though I don't know if that will actually make that commit go away 
forever; you'd need to talk to GitHub about that.

--
nosy: +zach.ware

___
Python tracker 

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



[issue42293] Installation of pyinstaller in Windows fails with utf8 error

2020-11-08 Thread Eryk Sun


Eryk Sun  added the comment:

This looks to be a bug in the constructor of pip's BuildEnvironment class:

https://github.com/pypa/pip/blob/a4f4bfbf8ba7fd1e60884a439907e3f2a32e117a/src/pip/_internal/build_env.py#L82

Python 3 source files are UTF-8 by default, but text files default to the 
platform's preferred encoding, unless overridden by Python's UTF-8 mode. It is 
thus a mistake to create "sitecustomize.py" without explicitly specifying UTF-8 
as the encoding. 

The preferred encoding in Windows is the process active code page, which is the 
system code page, unless, in Windows 10 only, it's overridden to use UTF-8 by 
the application manifest's "activeCodePage" setting. The system code page is 
usually a legacy code page, such as 1252, unless, in Windows 10 only, it's set 
to UTF-8 or the system language is Unicode only (e.g. Hindi).

--
nosy: +eryksun

___
Python tracker 

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



[issue8508] 2to3 fixer for gettext's .ugettext

2020-11-08 Thread Irit Katriel


Irit Katriel  added the comment:

Should we close this as won't fix?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue8730] Spurious test failure in distutils

2020-11-08 Thread Irit Katriel


Irit Katriel  added the comment:

The skip has been added:

@unittest.skipUnless(find_executable('compress'),
 'The compress program is required')
def test_compress_deprecated(self):

https://github.com/python/cpython/blob/23831a7a90956e38b7d70304bb6afe30d37936de/Lib/distutils/tests/test_archive_util.py#L204

--
nosy: +iritkatriel
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue16879] distutils.command.config uses fragile constant temporary file name

2020-11-08 Thread Éric Araujo

Change by Éric Araujo :


--
assignee: eric.araujo -> 
stage:  -> needs patch

___
Python tracker 

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



[issue16879] distutils.command.config uses fragile constant temporary file name

2020-11-08 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy

___
Python tracker 

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



[issue16879] distutils.command.config uses fragile constant temporary file name

2020-11-08 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6, Python 2.7, Python 
3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue15099] [doc] exec of function doesn't call __getitem__ or __missing__ on undefined global

2020-11-08 Thread Irit Katriel


Change by Irit Katriel :


--
title: exec of function doesn't call __getitem__ or __missing__ on undefined 
global -> [doc] exec of function doesn't call __getitem__ or __missing__ on 
undefined global
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

___
___
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 Terry J. Reedy

Terry J. Reedy  added the comment:

Serhiy, does Ronald's report above re 8.6.10 on macOS suggest what might be 
needed to make print("") work on Mac?  As I remember, your year-old _tkinter 
patch to make print() work on Linux and Windows converts Python strings 
differently on the two systems.  But you did not know for sure what to do for 
macOS because nothing would work.

--

___
Python tracker 

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



[issue42293] Installation of pyinstaller in Windows fails with utf8 error

2020-11-08 Thread giomach

New submission from giomach :

Python 3.9 freshly installed in Windows 10 to C:\Program Files\Python39, 
everything done as administrator, installed for all users, added to PATH.

Installation of pyinstaller fails with message "SyntaxError: (unicode error) 
'utf-8' codec can't decode byte 0xe1 in position 0: unexpected end of data 
(sitecustomize.py, line 21)" (attachment)

This may be due to the character á in my Windows username (0xe1 in ANSI, which 
is my default 8-bit codepage) being misinterpreted as being in utf8 instead of 
ANSI.

There is no sitecustomize.py in my file system.

--
components: Installation
files: pyinstaller.txt
messages: 380564
nosy: giomach
priority: normal
severity: normal
status: open
title: Installation of pyinstaller in Windows fails with utf8 error
type: crash
versions: Python 3.9
Added file: https://bugs.python.org/file49582/pyinstaller.txt

___
Python tracker 

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



[issue39892] Enable DeprecationWarnings by default when not explicit in unittest.main()

2020-11-08 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

my bad :)

--
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue1397474] [doc] timeit execution enviroment

2020-11-08 Thread Irit Katriel


Change by Irit Katriel :


--
title: timeit execution enviroment -> [doc] timeit execution enviroment
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2020-11-08 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6, Python 2.7, Python 
3.2, Python 3.3

___
Python tracker 

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



[issue42288] typing.get_type_hints() returns Optional[Any] if the default value of the argument is None

2020-11-08 Thread Guido van Rossum


Guido van Rossum  added the comment:

There is actually a difference between Any and Optional[Any]. Try the following 
using e.g. mypy:

def f(a: Optional[Any]):
a+1

def g(a: Any):
a+1

You'll get an error in f but not in g.

So this behavior is not a bug.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue10548] document (lack of) interaction between @expectedFailure on a test_method and setUp

2020-11-08 Thread Irit Katriel


Change by Irit Katriel :


--
title: document (lack of) interaction between @expectedException on a 
test_method and setUp -> document (lack of) interaction between 
@expectedFailure on a test_method and setUp
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2

___
Python tracker 

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



[issue10548] document (lack of) interaction between @expectedException on a test_method and setUp

2020-11-08 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +patch
nosy: +iritkatriel
nosy_count: 5.0 -> 6.0
pull_requests: +22101
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23201

___
Python tracker 

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



[issue9023] distutils relative path errors

2020-11-08 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python 
3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue23276] hackcheck is broken in association with __setattr__

2020-11-08 Thread Irit Katriel


Irit Katriel  added the comment:

I tried to look up what pyqtWrapperType is and found that it has been removed 
from QtCore.

Is this issue still relevant?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue1570255] redirected cookies

2020-11-08 Thread Irit Katriel


Irit Katriel  added the comment:

Paul's script (with urllib.request instead of urllib2) works for me. 

Is this issue still relevant?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue18148] Make of Python 3.2.2 fails on Solaris SPARC

2020-11-08 Thread Irit Katriel


Irit Katriel  added the comment:

Python 3.2 is no longer maintained. If this issue existing in more recent 
versions please open a new issue for it.

--
nosy: +iritkatriel
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue42292] C API: Allocating Objects on the Heap. Misleading documentation.

2020-11-08 Thread igo95862


Change by igo95862 :


--
type:  -> enhancement

___
Python tracker 

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



[issue42292] C API: Allocating Objects on the Heap. Misleading documentation.

2020-11-08 Thread igo95862


New submission from igo95862 :

The issue is that the function names are too similar to other function that do 
completely different things.


`PyObject_Init` this function does not use `__init__` at all.
What it does is sets the already allocated object pointer to the specific type 
and increments its reference.


`PyObject_New` this function has nothing to do with `__new__`. It mallocs the 
new object and when calls `PyObject_Init` to set its type and increment 
reference.


Most importantly neither function actually calls `__init__`. You need to do it 
manually otherwise you might get garbage in your object data from residual 
memory.


I think there should be a small example showing how to allocate objects on heap 
and initialize them. This is what I do (ignore the names):


```
SdBusMessageObject *message_object = PyObject_NEW(SdBusMessageObject, 
);
SdBusMessageType.tp_init((PyObject *)message_object, NULL, NULL);
```

--
assignee: docs@python
components: Documentation
messages: 380558
nosy: docs@python, igo95862
priority: normal
severity: normal
status: open
title: C API: Allocating Objects on the Heap. Misleading documentation.
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue13508] ctypes' find_library breaks with ARM ABIs

2020-11-08 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue25858] Structure field size/ofs __str__ wrong with large size fields

2020-11-08 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue25006] List pybind11 binding generator

2020-11-08 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue6860] Inconsistent naming of custom command in setup.py help output

2020-11-08 Thread Irit Katriel


Irit Katriel  added the comment:

As per Camilla's comment, this is no longer an issue.

--
nosy: +iritkatriel
resolution: accepted -> wont fix
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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

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



[issue42142] test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-08 Thread E. Paine


E. Paine  added the comment:

This is starting to get *very* annoying. Today's failure was a new one (but 
still `wait_visibility`):

test_variable_change (tkinter.test.test_ttk.test_extensions.LabeledScaleTest) 
... Timeout (0:20:00)!
Thread 0x7f31dade1080 (most recent call first):
  File "/home/runner/work/cpython/cpython/Lib/tkinter/__init__.py", line 696 in 
wait_visibility
  File 
"/home/runner/work/cpython/cpython/Lib/tkinter/test/test_ttk/test_extensions.py",
 line 147 in test_variable_change

Again, this was on the Github Ubuntu test 
(https://github.com/python/cpython/pull/23200/checks?check_run_id=1370499785#step:10:912).
 I will update my PR to skip *all* tests that use `wait_visbility` on Ubuntu 
and ask that this would be committed sooner rather than later.

--

___
Python tracker 

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



[issue16830] Add skip_host and skip_accept_encoding to HTTPConnection.request()

2020-11-08 Thread Bryan Bishop


Bryan Bishop  added the comment:

I'll go ahead and close this. The putrequest/putheader/endheaders suggestion is 
probably sufficient. Although I do wonder if a docs update is warranted, 
explaining the default behavior..

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

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2020-11-08 Thread E. Paine


Change by E. Paine :


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

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2020-11-08 Thread E. Paine


E. Paine  added the comment:

> Most of them are in tests. There is no security issue there
TBH, I don't know enough about the exploit to comment, but it seems that the 
tempfile tests take this seriously (Lib/test/test_tempfile.py:782 "For safety, 
all use of mktemp must occur in a private directory.")

> distutils and msilib are dropped
Is this wise? As you noted, PEP 594 and PEP 632 have yet to be approved (in 
which case, should we not still be looking at these modules, particularly as 
PEP 594 has been around for a while).

> if someone wants to fix pydoc

I am currently drafting a PR which will replace it with `NamedTemporaryFile` 
(and while we're at it, replace the `os.system` call with `subprocess.run`)

--

___
Python tracker 

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

___
___
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 Ian Strawbridge


Ian Strawbridge  added the comment:

On Ubuntu, Tk version is showing as 8.6.10
On Windows 10, Tk version is showing as 8.6.9

--

___
Python tracker 

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

___
___
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 Ian Strawbridge


Ian Strawbridge  added the comment:

Further to the information I posted on Stack Overflow (referred to above) 
relating to reproducing emoticon characters from Idle under Ubuntu, I have done 
more testing.  Based on some of the code/comments above, I tried modifications 
which I hoped might identify errors before Idle crashed.
At a simple level I can generate some error information in a Ubuntu terminal 
from the following.
usr/bin$ idle-python3.8
Entering chr(0x1f624) gives the following error message in terminal.
X Error of failed request:  BadLength (poly request too large or internal Xlib 
length error)
  Major opcode of failed request:  139 (RENDER)
  Minor opcode of failed request:  20 (RenderAddGlyphs)
  Serial number of failed request:  4484
  Current serial number in output stream:  4484

Another test used this code.
--
def FileSave(sav_file_name,outputstring):
with open(sav_file_name, "a", encoding="utf8",newline='') as myfile:
myfile.write(outputstring)

def FileSave1(sav_file_name,eoutputstring):
with open(sav_file_name, "a", encoding="utf8",newline='') as myfile:
myfile.write(eoutputstring)

tk = True
if tk:
from tkinter import Tk
from tkinter.scrolledtext import ScrolledText
root = Tk()
text = ScrolledText(root, width=80, height=40)
text.pack()
def print1(txt):
text.insert('insert', txt+'\n')

errors = []
outputstring = "Characters:"+ "\n"+"\n"
eoutputstring = "Errors:"+ "\n"+"\n"

#for i in range(0x1f600, 0x1f660):   #crashes at 0x1f624
for i in range(0x1f623, 0x1f624):  # 1f624, 1f625 then try 1f652  
chars = chr(i)
decimal = str(int(hex(i)[2:],16))
try:
outputstring = str(hex(i))+" "+decimal+" "+chars+ "\n"
FileSave("Charsfile.txt", outputstring)
print1(f"{hex(i)} {decimal} {chars}")
print(f"{hex(i)} {decimal} {chars}")
except Exception as e:
print(str(hex(i)))
eoutputstring = str(hex(i))+ "\n"
FileSave1("Errorfile.txt", eoutputstring)
errors.append(f"{hex(i)} {e}")

print("ERRORS:")

for line in errors:
print(line)

--
With the range starting at 0x1f623 and changing the end point, in Ubuntu, with 
end point 0x1f624, this prints ok, but if higher numbers are used the Idle 
windows all closed. However on some occasions, if I began with end point at 
0x1f624 and run, then without closing the editor window I increased the end 
point to 0x1f625, save and run, the Text window would close, but the console 
window would remain open.  I could then increase the upper range further and 
repeat and more characters would print to the console.
I have attached screenshots of the console output with the 
fonts-noto-color-emoji fonts package installed(with font), then with this 
package uninstalled (no font) and finally the same when run under Windows 10.  
For the console output produced while the font package is installed, if I 
select in the character column where there is a blank space, "something" can be 
selected.  If I save the console as a text file or select all the rows, copy 
and paste to a text file, the missing characters are revealed. When the font 
package is uninstalled, the missing characters are truely missing.  It is the 
apparently missing characters (such as 0x1f624, 0x1f62c, 0x1f641, 0x1f642, 
0x1f644-0x1f64f) which appear to be causing the Idle crashes.  Presumably such 
as 0x1f650 and 0x1f651 are unallocated codes so show up as rectangular 
outlines. 

In none of the tests with the more complex code above did I manage to generate 
any error output.

My set up is as follows.
Ubuntu 20.04.1 LTS
x86_64
GNOME version: 3.36.3
Python 3.8.6 (default, Sep 25 2020, 21:22:01) 
Tk version: 8.6.10
[GCC 7.5.0] on linux

Hopefully, the above might give some pointers to handling these characters.

--
nosy: +IanSt1
versions: +Python 3.8 -Python 3.10
Added file: https://bugs.python.org/file49581/Screenshots_128547-128593.pdf

___
Python tracker 

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

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

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

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

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

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



[issue32682] test_zlib improve version parsing

2020-11-08 Thread pmp-p


Change by pmp-p :


--
status: closed -> pending

___
Python tracker 

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



[issue8041] No documentation for Py_TPFLAGS_HAVE_STACKLESS_EXTENSION or Py_TPFLAGS_HAVE_VERSION_TAG.

2020-11-08 Thread pmp-p


Change by pmp-p :


--
nosy: +pmpp

___
Python tracker 

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



[issue42291] Incorrect signature of CodeType.replace()

2020-11-08 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue42291] Incorrect signature of CodeType.replace()

2020-11-08 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

Currently the signature of types.CodeType.replace() is

replace(self, /, *, co_argcount=-1, co_posonlyargcount=-1, 
co_kwonlyargcount=-1, co_nlocals=-1, co_stacksize=-1, co_flags=-1, 
co_firstlineno=-1, co_code=None, co_consts=None, co_names=None, 
co_varnames=None, co_freevars=None, co_cellvars=None, co_filename=None, 
co_name=None, co_lnotab=None)

But -1 and None are incorrect values for many parameters, and even if they 
would be correct, they are not default values. By default, if you do not 
specify some argument, the value of the corresponding attribute would not be 
changed.

Argument Clinic and the inspect module do not support this case.

--
components: Argument Clinic, Library (Lib)
messages: 380545
nosy: larry, serhiy.storchaka, vstinner, yselivanov
priority: normal
severity: normal
status: open
title: Incorrect signature of CodeType.replace()
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

___
___
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 miss-islington


miss-islington  added the comment:


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


--

___
Python tracker 

___
___
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 miss-islington


Change by miss-islington :


--
pull_requests: +22098
pull_request: https://github.com/python/cpython/pull/23198

___
Python tracker 

___
___
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 miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +22097
pull_request: https://github.com/python/cpython/pull/23197

___
Python tracker 

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

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

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

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

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

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2020-11-08 Thread Steve Dower


Steve Dower  added the comment:

Yeah, once tests are excluded and the (deprecated or nearly deprecated) 
distutils and msilib are dropped, the problems are pydoc (which looks 
non-exploitable) and anywhere we need to generate a named pipe.

Both cases where named pipes are being created are as safe as the OS allows, so 
it's really just pydoc that might deserve a fix. (For reference, it's in the 
variation of help() that writes the docstring to a file and triggers the 
equivalent of "type  | more" or "cat  | less", which is already 
only useful in an interactive shell.)

So I'd suggest it's already as low as possible, but if someone wants to fix 
pydoc (and encourage the SC to approve PEP 594 and PEP 632 so we don't have to 
worry about msilib or distutils) then they can feel free.

--

___
Python tracker 

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