[issue43652] Upgrade Windows tcl/tk to 8.6.11

2021-03-29 Thread Terry J. Reedy


New submission from Terry J. Reedy :

#39017, PR 22405 was too late for 3.9, but the new Mac installer is already 
using 8.6.11.  Serhiy, do you know any reason not to upgrade the Windows 
installer to 8.6.11 also?

Steve, should a new PR with '10' replaced with '11, where '9' was replaced with 
'10' before, be sufficient?  I presumt the 'v14' for VC13 should be left alone. 
 To test, would 8.6.11 be built on my system, or is it fetched externally?

--
components: Tkinter, Windows
messages: 389662
nosy: paul.moore, serhiy.storchaka, steve.dower, terry.reedy, tim.golden, 
zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Upgrade Windows tcl/tk to 8.6.11
type: enhancement
versions: Python 3.10

___
Python tracker 

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



[issue39107] Upgrade Windows tcl/tk to 8.6.10

2021-03-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

#43652 is for 8.6.11.

--

___
Python tracker 

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



[issue43647] Sudden crash displaying certain characters in tk widget

2021-03-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Closing as a duplicate.  What's new here is that BMP chars can be affected also.

I opened #43652 to upgrade Windows installer to 8.6.11 (though not needed for 
this) but I guess Linux users have to bug their distributor or learn to upgrade 
themselves.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Tkinter hangs or crashes when displaying astral chars

___
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

2021-03-29 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I closed #43647 as a duplicate of this.  It reported that BMP chars can fail 
also.  For instance, with "Noto Sans Mono", but not 'Dejavu Mono', the 
following crash.
>>> '\u2705'
'✅'
>>> '\u270f'
'✏'

Unfortunately, as least on some *nix, the default tkFixedFont resolves to Noto 
Sans Mono.

--

___
Python tracker 

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



[issue43647] Sudden crash displaying certain characters in tk widget

2021-03-29 Thread Mikhail


Mikhail  added the comment:

Yes, this is exactly the same problem as `issue42225`. I suspected it was a 
Tkinter problem, and also thought that Python might be under the hood catching 
C method call errors. 

But since you know about this problem, and in more detail than I have written 
here, this issue can be closed.

P.S. By the way, while I was doing my little investigation with fonts, here's 
another little bug I found :) 
When I start to write any word in IDLE and press Tab, the autocomplete box is 
shown (or auto-complete if the only mapping). But if I was doing something in 
"Configure IDLE" and pressed "Ok" to close the configure window, then pressing 
Tab just causes tab to appear at the cursor instead of auto-complete.

You probably know about it, but You know, I'm something of a developer myself, 
so it's better to report a bug than not report it.

--

___
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

2021-03-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

At least it is not a regression caused by support of astral characters 
(issue13153).

--

___
Python tracker 

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



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

2021-03-29 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

As you note in the title this is a 32-bit overflow in the statvfs system API, 
the struct it uses contains 32-bit values.

--

___
Python tracker 

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



[issue43653] Typo in the random.shuffle docs

2021-03-29 Thread Matteo Bertucci


New submission from Matteo Bertucci :

Hello!

The current documentation for random.shuffle reads:
> The optional argument random is a 0-argument function returning a random 
> float in [0.0, 1.0); by default, this is the function random().

I believe the range here should use matching symbols, unless I am missing 
something.

--
assignee: docs@python
components: Documentation
messages: 389669
nosy: Akarys, docs@python
priority: normal
severity: normal
status: open
title: Typo in the random.shuffle docs
type: enhancement

___
Python tracker 

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



[issue43653] Typo in the random.shuffle docs

2021-03-29 Thread Inada Naoki


Inada Naoki  added the comment:

https://en.wikipedia.org/wiki/Interval_(mathematics)

See "Notations for intervals" section in the Wikipedia page.

--
nosy: +methane

___
Python tracker 

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



[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-03-29 Thread Zhipeng Xie


Zhipeng Xie <775350...@qq.com> added the comment:

ping

I also encountered this problem. Is there a fix now?

--
nosy: +Zhipeng Xie

___
Python tracker 

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



[issue43653] Typo in the random.shuffle docs

2021-03-29 Thread Matteo Bertucci


Change by Matteo Bertucci :


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



[issue43653] Typo in the random.shuffle docs

2021-03-29 Thread Matteo Bertucci


Matteo Bertucci  added the comment:

Oh I see, I was used to seeing open intervals using ]a, b[. All good then!

--

___
Python tracker 

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



[issue43654] IDLE: Applying settings disables tab completion

2021-03-29 Thread Terry J. Reedy


New submission from Terry J. Reedy :

(Original report by Mikhail on #43647, running 3.9 on Linux; verified and 
extended by me running 3.10 on Windows.)

Normally, "i" brings up a completion window with 'id', 'if', 'import', 
etc.  Opening a Settings windows with Options => Configure IDLE and closing 
with Apply and Cancel or OK (which also applies) disables tab completion.  
Other completions (forced with ^ or auto with '.' or '/' and waits seem 
not affected.  The only way to restore is to close and reopen each window.

Tab completions are enabled in editor.py with these two lines.
text.event_add('<>', '')
text.bind("<>", autocomplete.autocomplete_event) 
Attribute and path completions, not affected, are enabled with these.
text.event_add('<>', '',
   '', '
text.bind("<>",
  autocomplete.try_open_completions_event)
Similarly for some other things.

In configdialog, the relevant method is (179) def apply, who relevant calls are 
(219) deactivate_current_config and (230) activate_current_config.  The former 
removes key bindings and the latter rebinds and makes other changes.

What is different about Tab versus '.' is that is tab also used for indents and 
the indent space is reset by 'activate...'.  I will later add some debug prints 
to console based on the clues above.

--
assignee: terry.reedy
components: IDLE
messages: 389673
nosy: terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: IDLE: Applying settings disables tab completion
type: behavior
versions: Python 3.10

___
Python tracker 

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



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

2021-03-29 Thread Sander


Sander  added the comment:

OK. What would be a solution from/for Python to get the correct available space 
on a MacOS system?

In SABnzbd we implemented a workaround with a direct call to MacOS C lib's 
statfs(). See 
https://github.com/sabnzbd/sabnzbd/blob/develop/sabnzbd/filesystem.py#L948-L989

IMHO not a great solution for a python programmer. Could python's os.statvfs() 
use the correct (64bit) info from statfs()?

--

___
Python tracker 

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



[issue43647] Sudden crash displaying certain characters in tk widget

2021-03-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Thank you for reporting. While I may have had tab not work after the dialog, I 
had never connected the two.  Nor, AFAIK, was there an existing report. I 
verified, investigated more, and opened #43654.

--

___
Python tracker 

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



[issue43655] Tkinter: Not setting _NET_WM_WINDOW_TYPE on FileDialog

2021-03-29 Thread Patrick Melix


New submission from Patrick Melix :

While trying to fix window behaviour in a python project (ASE: 
https://wiki.fysik.dtu.dk/ase/), I came across this problem:

Tkinter does not set the _NET_WM_WINDOW_TYPE when using the FileDialog class or 
it's derivatives. I could not find a reason for this and it leads to my window 
manager (i3) not automatically recognising the window as a dialogue (and thus 
not enabling floating). I think the window types are there exactly for that 
purpose, so I don't see why not to set this as the default for the FileDialog 
class.

I was able to change this by adding the line
```self.top.wm_attributes('-type', 'dialog')```
to the initialization of the FileDialog class. See also MR on GitHub.

Since I am an absolute beginner at this please do forgive if I missed something.

--
components: Tkinter
messages: 389676
nosy: patrickmelix
priority: normal
severity: normal
status: open
title: Tkinter: Not setting _NET_WM_WINDOW_TYPE on FileDialog
type: enhancement
versions: Python 3.10, Python 3.6, Python 3.7, 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



[issue43655] Tkinter: Not setting _NET_WM_WINDOW_TYPE on FileDialog

2021-03-29 Thread Patrick Melix


Change by Patrick Melix :


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

___
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

2021-03-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

No, seems strictly a matter of complicated color, which is perhaps becoming 
more common.  Firefox colors the checkbox (white checkmark on green field in a 
largish black square) but not the (smaller) pencil.  I did not recognize either 
the FF or tk Windows pencil as a pencil without any color (so I searched), so I 
won't be surprised if FF upgrades its pencil too.

--

___
Python tracker 

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



[issue43654] IDLE: Applying settings disables tab completion

2021-03-29 Thread Mikhail


Change by Mikhail :


--
nosy: +tetelevm

___
Python tracker 

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



[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9

2021-03-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you for your reports OndrejPtak and frathgeber.

Indeed, the behavior change was unintended. PR 25057 tries to to restore the 
old behavior. Query and fragment are now preserved in the server URL.

But there are still minor differences. Empty query and fragment are stripped 
from the URL, so "http://example.org/RPC2?";, "http://example.org/RPC2#"; and 
"http://example.org/RPC2"; refer to the same connection point. I am not sure 
that it is important. It would be not easy to preserve the old behavior in 
these corner cases.

--

___
Python tracker 

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



[issue43656] StackSummary.format fails if str(value) fails

2021-03-29 Thread Martin


New submission from Martin :

With `capture_locals=True`, `StackSummary.format` prints the local variables 
for every frame:
https://github.com/python/cpython/blob/4827483f47906fecee6b5d9097df2a69a293a85c/Lib/traceback.py#L440

This will fail, however, if string conversion fails.

StackSummary.format should be robust towards such possibilities.


An easy fix would be a utility function:

```
def try_str(x):
  try:
return str(x)
  except:
return ""
```

--
messages: 389679
nosy: moi90
priority: normal
severity: normal
status: open
title: StackSummary.format fails if str(value) fails
type: enhancement
versions: Python 3.10, Python 3.6, Python 3.7, 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



[issue43656] StackSummary.format fails if str(value) fails

2021-03-29 Thread Martin


Martin  added the comment:

I have to correct myself: The conversion to string already happens during 
construction, in `FrameSummary.__init__`:

https://github.com/python/cpython/blob/4827483f47906fecee6b5d9097df2a69a293a85c/Lib/traceback.py#L273

The issue remains as severe and the fix remains as easy.

--

___
Python tracker 

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



[issue43655] Tkinter: Not setting _NET_WM_WINDOW_TYPE on FileDialog

2021-03-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you for your report and PR Patrick.

I agree, it would be better to to set the "type" attribute to "dialog" for the 
FileDialog window. Tk does it for its dialog windows. But it is more complex.

* It should be set not only for FileDialog, but for other dialog windows 
implemented in Python too (including dialog windows specific for IDLE). I am in 
process of working on making dialog windows implemented in Python looking and 
behaving closer to dialog windows implemented in Tk. The hardest part is 
writing tests for this.

* This code should be executed only on X Window. On macOS and Windows different 
code is needed. From Tk sources of ::tk::dialog::file::Create and 
::tk::dialog::color:: :

if {[tk windowingsystem] eq "x11"} {wm attributes $w -type dialog}

And in ::tk_dialog and ::tk::MessageBox :

if {$windowingsystem eq "aqua"} {
::tk::unsupported::MacWindowStyle style $w moveableModal {}
} elseif {$windowingsystem eq "x11"} {
wm attributes $w -type dialog
}

And ::tk::dialog::error::bgerror uses moveableAlert instead of moveableModal.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue43656] StackSummary.format fails if str(value) fails

2021-03-29 Thread Martin


Change by Martin :


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

___
Python tracker 

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



[issue40645] Use OpenSSL's HMAC API

2021-03-29 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:

Seems that commit 933dfd7504e521a27fd8b94d02b79f9ed08f4631 introduced some 
reference leaks:


commit 933dfd7504e521a27fd8b94d02b79f9ed08f4631
Author: Christian Heimes 
Date:   Sat Mar 27 14:55:03 2021 +0100

bpo-40645: use C implementation of HMAC (GH-24920)



𓋹 ./python.exe -m test test_hashlib -R 3:3
0:00:00 load avg: 5.67 Run tests sequentially
0:00:00 load avg: 5.67 [1/1] test_hashlib
beginning 6 repetitions
123456
..
test_hashlib leaked [1, 1, 1] references, sum=3
test_hashlib failed

== Tests result: FAILURE ==

1 test failed:
test_hashlib

Total duration: 8.7 sec
Tests result: FAILURE


- [x] fix tests
- [ ] add test scenarios for old/new code.

Signed-off-by: Christian Heimes 

 Lib/hashlib.py |   1 +
 Lib/hmac.py|  86 +++-
 Lib/test/test_hmac.py  | 114 +---
 .../2021-03-19-10-22-17.bpo-40645.5pXhb-.rst   |   2 +
 Modules/_hashopenssl.c | 150 +++--
 Modules/clinic/_hashopenssl.c.h|  38 +-
 6 files changed, 267 insertions(+), 124 deletions(-)
 create mode 100644 
Misc/NEWS.d/next/Library/2021-03-19-10-22-17.bpo-40645.5pXhb-.rst

--
nosy: +pablogsal

___
Python tracker 

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



[issue43655] Tkinter: Not setting _NET_WM_WINDOW_TYPE on FileDialog

2021-03-29 Thread Patrick Melix


Patrick Melix  added the comment:

Thank you for your feedback Serhiy!

I obviously totally forgot about compatibility issues with other OS... If you 
are already aware of this and working on a solution even better. Did I miss 
this during my search or is it not public anywhere yet?

For now one can easily avoid the issue by always setting the type manually, 
will have to see how to avoid the OS issue you mention then.

Perhaps you can point me to the place to watch for your progress on the matter 
so I can keep track of this?
Thanks again!

--

___
Python tracker 

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



[issue40645] Use OpenSSL's HMAC API

2021-03-29 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

See for instance: https://buildbot.python.org/all/#/builders/75/builds/224

--

___
Python tracker 

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



[issue40645] Use OpenSSL's HMAC API

2021-03-29 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +23813
pull_request: https://github.com/python/cpython/pull/25063

___
Python tracker 

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



[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-29 Thread STINNER Victor


STINNER Victor  added the comment:

Yeah! Congrats INADA-san for implementing your PEP!

--

___
Python tracker 

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



[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-03-29 Thread ggardet


ggardet  added the comment:

With PYTHONMALLOC=malloc, gdb is not crashing anymore. Thanks for the 
workaround.

pymalloc is not aware of MTE, so a SegFault occurs on any access to the memory 
since the check fails.

--

___
Python tracker 

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



[issue43624] Add underscore as a decimal separator for string formatting

2021-03-29 Thread STINNER Victor


STINNER Victor  added the comment:

> On the other hand, I suppose it would be possible to have a feature flag that 
> can be used to disable decimal underscores in 3.10 to prevent test failures. 
> Just spitballing...

I wrote PEP 606 -- Python Compatibility Version 
https://www.python.org/dev/peps/pep-0606/ and it was rejected.

--

___
Python tracker 

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



[issue43636] test_descr fails randomly when executed with -R :

2021-03-29 Thread STINNER Victor


STINNER Victor  added the comment:

Is _PyType_Lookup() still faster after the fix? The optimization is mentioned 
at:
https://docs.python.org/dev/whatsnew/3.10.html#optimizations

--

___
Python tracker 

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



[issue37773] ValueError: I/O operation on closed file. in ZipFile destructor

2021-03-29 Thread STINNER Victor


STINNER Victor  added the comment:

> Victor, were there any changes in the garbage collector or interpreter 
> shutdown code in 3.8?

I took some notes there: https://pythondev.readthedocs.io/finalization.html

I proposed bpo-42671 "Make the Python finalization more deterministic" but it 
will break some use cases, so I'm not comfortable with this idea yet :-(

--

___
Python tracker 

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



[issue37773] ValueError: I/O operation on closed file. in ZipFile destructor

2021-03-29 Thread STINNER Victor


STINNER Victor  added the comment:

IMO ZipFile destructor should emit a ResourceWarning if it's not closed 
explicitly.

Nothing in the Python specification gives you any warranty that destructors 
will be ever called... Depending on the Python implementation and depending on 
many things, you never know when a destructor is called.

Just call the close() method explicitly.

--

___
Python tracker 

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



[issue37773] ValueError: I/O operation on closed file. in ZipFile destructor

2021-03-29 Thread STINNER Victor


STINNER Victor  added the comment:

FYI TextIOWrapper has a similar issue: bpo-17852. There was an attempt to fix 
the issue in 2017, but it had to be reverted.

--

___
Python tracker 

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



[issue25643] Python tokenizer rewriting

2021-03-29 Thread STINNER Victor


STINNER Victor  added the comment:

Oh, 6 years to fix this bug. Better late than never ;-) Thanks for reporting 
and for fixing it!

--

___
Python tracker 

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



[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-03-29 Thread STINNER Victor


STINNER Victor  added the comment:

Can you please test if https://github.com/python/cpython/pull/14474 fix your 
issue?

--

___
Python tracker 

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



[issue37448] obmalloc: radix tree for tracking arena address ranges

2021-03-29 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-43593 "pymalloc is not aware of Memory Tagging Extension (MTE) and 
crashes".

--

___
Python tracker 

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



[issue42938] [security][CVE-2021-3177] ctypes double representation BoF

2021-03-29 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg389639

___
Python tracker 

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



[issue42938] [security][CVE-2021-3177] ctypes double representation BoF

2021-03-29 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg389638

___
Python tracker 

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



[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

2021-03-29 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue32146] multiprocessing freeze_support needed outside win32

2021-03-29 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 10.0 -> 11.0
pull_requests: +23814
pull_request: https://github.com/python/cpython/pull/25064

___
Python tracker 

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



[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +23815
pull_request: https://github.com/python/cpython/pull/25065

___
Python tracker 

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



[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-29 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 9b999479c0022edfc9835a8a1f06e046f3881048 by Victor Stinner in 
branch 'master':
bpo-42988: Remove the pydoc getfile feature (GH-25015)
https://github.com/python/cpython/commit/9b999479c0022edfc9835a8a1f06e046f3881048


--

___
Python tracker 

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



[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +23816
pull_request: https://github.com/python/cpython/pull/25066

___
Python tracker 

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



[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +23817
pull_request: https://github.com/python/cpython/pull/25067

___
Python tracker 

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



[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-03-29 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

No. The issue remains open.

--
stage:  -> needs patch
versions:  -Python 3.7

___
Python tracker 

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



[issue43657] shutil.rmtree fails on readonly files in Windows, onerror not called

2021-03-29 Thread Walter White


New submission from Walter White :

shutil.rmtree fails on readonly files in Windows.

Usually people are using the onerror callback to handle file permissions and 
retry, but that is not possible in this case because it is not triggerd.

onerror is only triggered if a OSError is found. 
In my case the unlink throws a PermissionError

Code shutil.rmdir():

try:
os.unlink(fullname)
except OSError:
onerror(os.unlink, fullname, sys.exc_info())


Traceback:


Traceback (most recent call last):

  File "c:\Users\user\test.py", line 121, in 
shutil.rmtree(shutil.rmtree(working_dir),
  File "C:\python-3.9.1.amd64\lib\shutil.py", line 740, in rmtree
return _rmtree_unsafe(path, onerror)
  File "C:\python-3.9.1.amd64\lib\shutil.py", line 613, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
  File "C:\python-3.9.1.amd64\lib\shutil.py", line 613, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
  File "C:\python-3.9.1.amd64\lib\shutil.py", line 618, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
  File "C:\python-3.9.1.amd64\lib\shutil.py", line 616, in _rmtree_unsafe
os.unlink(fullname)

PermissionError: [WinError 5] Access denied: 'C:\\Users\\user\\somefile.txt'

os.stat:

st_mode=33060
st_ino=34621422136837665
st_dev=3929268297
st_nlink=1
st_uid=0
st_gid=0

--
components: Library (Lib)
messages: 389697
nosy: homerun4711
priority: normal
severity: normal
status: open
title: shutil.rmtree fails on readonly files in Windows, onerror not called
type: crash
versions: Python 3.9

___
Python tracker 

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



[issue43657] shutil.rmtree fails on readonly files in Windows, onerror not called

2021-03-29 Thread Walter White


Walter White  added the comment:

Just saw:

class PermissionError(OSError)

--

___
Python tracker 

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



[issue43657] shutil.rmtree fails on readonly files in Windows, onerror not called

2021-03-29 Thread Walter White


Change by Walter White :


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



[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-29 Thread miss-islington


miss-islington  added the comment:


New changeset 7e38d3309e0a5a7b9e23ef933aef0079c6e317f7 by Miss Islington (bot) 
in branch '3.8':
bpo-42988: Remove the pydoc getfile feature (GH-25015)
https://github.com/python/cpython/commit/7e38d3309e0a5a7b9e23ef933aef0079c6e317f7


--

___
Python tracker 

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



[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-29 Thread miss-islington


miss-islington  added the comment:


New changeset ed753d94856213ae9fc028195f670e66a24e2334 by Miss Islington (bot) 
in branch '3.9':
bpo-42988: Remove the pydoc getfile feature (GH-25015)
https://github.com/python/cpython/commit/ed753d94856213ae9fc028195f670e66a24e2334


--

___
Python tracker 

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



[issue40645] Use OpenSSL's HMAC API

2021-03-29 Thread miss-islington


miss-islington  added the comment:


New changeset 70cdf1812cf479c6b1cd7435a6fc0679ec1fb0da by Pablo Galindo in 
branch 'master':
bpo-40645: Fix reference leak in the _hashopenssl extension (GH-25063)
https://github.com/python/cpython/commit/70cdf1812cf479c6b1cd7435a6fc0679ec1fb0da


--

___
Python tracker 

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



[issue43657] shutil.rmtree fails on readonly files in Windows, onerror not called

2021-03-29 Thread Walter White


Walter White  added the comment:

I tried to add a try/except that handles a PermissionError to
my onerror function. But that did not work.

The doc on rmtree states 

Exceptions raised by onerror will not be caught.

Does this mean I can't use try/exept inside of onerror?

--
status: closed -> open

___
Python tracker 

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



[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9

2021-03-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 7.0 -> 8.0
pull_requests: +23818
pull_request: https://github.com/python/cpython/pull/25068

___
Python tracker 

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



[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9

2021-03-29 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset c1b073a630bb731de18bb17afb2b8b1388b92a72 by Serhiy Storchaka in 
branch 'master':
bpo-43433: Preserve query and fragment in the URL of the server in ServerProxy. 
(GH-25057)
https://github.com/python/cpython/commit/c1b073a630bb731de18bb17afb2b8b1388b92a72


--
nosy: +corona10

___
Python tracker 

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



[issue43648] Remove redundant datefmt option in logging file config

2021-03-29 Thread miss-islington


miss-islington  added the comment:


New changeset 7bfd65eba73d013eee8789f2009c09c61c31b800 by Harry in branch 
'master':
bpo-43648: Remove redundant datefmt option in logging file config (GH-25051)
https://github.com/python/cpython/commit/7bfd65eba73d013eee8789f2009c09c61c31b800


--
nosy: +miss-islington

___
Python tracker 

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



[issue43648] Remove redundant datefmt option in logging file config

2021-03-29 Thread Vinay Sajip


Change by Vinay Sajip :


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



[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9

2021-03-29 Thread miss-islington


miss-islington  added the comment:


New changeset 5334605035d38139a04189ecb3899f36702517b2 by Miss Islington (bot) 
in branch '3.9':
bpo-43433: Preserve query and fragment in the URL of the server in ServerProxy. 
(GH-25057)
https://github.com/python/cpython/commit/5334605035d38139a04189ecb3899f36702517b2


--

___
Python tracker 

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



[issue26300] "unpacked" bytecode

2021-03-29 Thread Mark Shannon


Mark Shannon  added the comment:

PEP 511 was rejected.
The "peephole" optimizer now operates on the internal IR, not the bytecode.

--
nosy: +Mark.Shannon
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



[issue27129] Wordcode, part 2

2021-03-29 Thread Mark Shannon


Mark Shannon  added the comment:

frame.f_lasti and traceback.tb_lasti are best left as byte offsets.
There is no guarantee that we won't go back to variable length instructions.
For example, a "LONG_JUMP" instruction which is 4 bytes long and takes a 3 byte 
offset might well be a worthwhile extension.

However, changing bytecode offsets and the internal representation of 
frame.f_lasti will reduce the number of "EXTENDED_ARG"s by 60% or more and 
makes interpreter dispatch a tad more efficient.

--

___
Python tracker 

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



[issue27129] Wordcode, part 2

2021-03-29 Thread Mark Shannon


Change by Mark Shannon :


--
pull_requests: +23819
pull_request: https://github.com/python/cpython/pull/25069

___
Python tracker 

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



[issue43624] Add underscore as a decimal separator for string formatting

2021-03-29 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I prefer Terry's original proposal which is backwards compatible and gives the 
user control over whether separator is to be applied to the fractional 
component.   

>>> format(12_34_56.12_34_56, '_._f')   # Whole and fractional
'123_456.123_456'
>>> format(12_34_56.12_34_56, '_.f')# Fractional component only   
'123_456.123456'

--

___
Python tracker 

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



[issue43624] Add underscore as a decimal separator for string formatting

2021-03-29 Thread Eric V. Smith


Eric V. Smith  added the comment:

I agree with Raymond. We can't make a change that would modify existing program 
output. Which is unfortunate, but such is life.

And I'd prefer to see groupings of 5 on the right, but I realize I might be in 
the minority.

--

___
Python tracker 

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



[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-29 Thread Ned Deily


Ned Deily  added the comment:


New changeset 7c2284f97d140c4e4a85382bfb3a42440be2464d by Miss Islington (bot) 
in branch '3.7':
bpo-42988: Remove the pydoc getfile feature (GH-25015) (#25066)
https://github.com/python/cpython/commit/7c2284f97d140c4e4a85382bfb3a42440be2464d


--

___
Python tracker 

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



[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-29 Thread Ned Deily


Ned Deily  added the comment:


New changeset 5b1e50256b6532667b6d31debc350f6c7d3f30aa by Miss Islington (bot) 
in branch '3.6':
bpo-42988: Remove the pydoc getfile feature (GH-25015) (GH-25067)
https://github.com/python/cpython/commit/5b1e50256b6532667b6d31debc350f6c7d3f30aa


--

___
Python tracker 

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



[issue38794] Setup: support linking openssl statically

2021-03-29 Thread William Woodruff


William Woodruff  added the comment:

Not to butt in too much, but I have a related use case that would benefit from 
being able to statically link to OpenSSL: I have an environment in which 
dynamic modules are acceptable, but where the entire Python install benefits 
from being relocatable and used on different hosts with the same *basic* state 
(same glibc, etc). OpenSSL isn't one of those pieces of basic state (for bad 
reasons, but ones that I can't control), so having a Python distribution that 
links it statically would save me some amount of complexity.

I realize this introduces a significant support burden, and that dealing with 
myraid OpenSSL configurations is already a pain. So I'm content to shoulder 
this as my own local build patch -- I'm only following up to note another use 
case that might benefit from a full-fledged `configure` option, should this 
ever get re-visited.

--
nosy: +yossarian

___
Python tracker 

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



[issue43658] implementations of the deprecated load_module import loader API, as prescribed by the documentation, are not thread safe

2021-03-29 Thread kale-smoothie


New submission from kale-smoothie :

Unless I've misread or misunderstood, the documentation at 
https://docs.python.org/3/reference/import.html#loaders for the deprecated 
`load_module` method doesn't indicate any requirements or caveats for thread 
safe importing. As it stands, I think it is not thread-safe, since the module 
is not protected against concurrent imports by the internal implementation 
marker `__spec__._initializing = True`.

Additionally, the deprecated function decorator, 
`importlib.util.module_for_loader` seems to implement the marker incorrectly 
(sets `__initializing__` directly on the module).

I think this behaviour should either be documented as a major caveat, or 
internal details exposed to allow thread-safe implementations, or the old API 
removed entirely.

--
assignee: docs@python
components: Documentation
files: thread_unsafe_import.py
messages: 389713
nosy: docs@python, kale-smoothie
priority: normal
severity: normal
status: open
title: implementations of the deprecated load_module import loader API, as 
prescribed by the documentation, are not thread safe
type: behavior
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49916/thread_unsafe_import.py

___
Python tracker 

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



[issue43657] shutil.rmtree fails on readonly files in Windows, onerror not called

2021-03-29 Thread Walter White


Change by Walter White :


--
status: open -> closed

___
Python tracker 

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



[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2021-03-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +23822
pull_request: https://github.com/python/cpython/pull/25072

___
Python tracker 

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



[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2021-03-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +23820
pull_request: https://github.com/python/cpython/pull/25070

___
Python tracker 

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



[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2021-03-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +23823
pull_request: https://github.com/python/cpython/pull/25073

___
Python tracker 

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



[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2021-03-29 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:


New changeset 32430aadadf6e012e39167d3c18a24e49fb84874 by Jesús Cea in branch 
'master':
bpo-35930: Raising an exception raised in a "future" instance will create 
reference cycles (#24995)
https://github.com/python/cpython/commit/32430aadadf6e012e39167d3c18a24e49fb84874


--

___
Python tracker 

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



[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2021-03-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +23821
pull_request: https://github.com/python/cpython/pull/25071

___
Python tracker 

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



[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-29 Thread Christian Heimes


Christian Heimes  added the comment:

There are now multiple ways to build Python with a custom OpenSSL build on 
Linux and BSD-like platforms:

1) Tools/ssl/multissltest.py
2) ./configure --with-openssl=/path/to/openssl --with-openssl-rpath=auto
3) undocumented hack from commit bacefbf41461ab703b8d561f0e3d766427eab367
4) static extension modules with a custom "Modules/Setup.local" like this:

OPENSSL=/home/heimes/dev/python/multissl/openssl/1.1.1j-static
_ssl _ssl.c \
-I$(OPENSSL)/include -L$(OPENSSL)/lib \
-l:libssl.a -Wl,--exclude-libs,libssl.a \
-l:libcrypto.a -Wl,--exclude-libs,libcrypto.a
_hashlib _hashopenssl.c \
-I$(OPENSSL)/include -L$(OPENSSL)/lib \
-l:libcrypto.a -Wl,--exclude-libs,libcrypto.a

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-29 Thread Michael Felt


New submission from Michael Felt :

Since issue42789 the AIX bot's have crashed - to the extent that the bot's did 
not even return results.

Part of this has been resolved, for now, by using:

$ export TERM=unknown
$ buildbot start buildarea

However, the test still crash because AIX default libcurses.a does not include 
support for update_lines_cols().

This patch should allow test_curses.py to pass in the buildbot.

When run from command-line as:

$ TERM=unknown ./python Lib/test/test_curses.py
.ss..ss
--
Ran 71 tests in 0.121s

OK (skipped=64)
aixtools@cpython2:[/home/aixtools/py3a-10.0]

(When TERM is defined - a core dump still occurs - that will be a new issue and 
a new PR).

--
components: Tests
messages: 389716
nosy: Michael.Felt
priority: normal
severity: normal
status: open
title: AIX: test_curses crashes buildbot
versions: Python 3.10

___
Python tracker 

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



[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2021-03-29 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:


New changeset dae1963cf38f730291126b7dadfda89ffb21cefd by Miss Islington (bot) 
in branch '3.8':
bpo-35930: Raising an exception raised in a "future" instance will create 
reference cycles (GH-24995) (#25071)
https://github.com/python/cpython/commit/dae1963cf38f730291126b7dadfda89ffb21cefd


--

___
Python tracker 

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



[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2021-03-29 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:


New changeset d914813a7a9cee3b42e9c91f91ac491f3bbfe118 by Miss Islington (bot) 
in branch '3.9':
bpo-35930: Raising an exception raised in a "future" instance will create 
reference cycles (GH-24995) (#25070)
https://github.com/python/cpython/commit/d914813a7a9cee3b42e9c91f91ac491f3bbfe118


--

___
Python tracker 

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



[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2021-03-29 Thread Jesús Cea Avión

Change by Jesús Cea Avión :


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



[issue38794] Setup: support linking openssl statically

2021-03-29 Thread Christian Heimes


Christian Heimes  added the comment:

I introduced several build improvements for better support of custom OpenSSL 
builds in bpo-43466. The issue mentions a new, undocumented, and unsupported 
hack to create a shared extension modules with statically linked OpenSSL. The 
Modules/Setup.local trick works with current Python versions, too. Both the 
hack and the trick hide symbols, too.

I vetoed against official support for static linking because I simply don't 
have capacity to test and support another build flavor.

William, I recommend that you do NOT read commit 
bacefbf41461ab703b8d561f0e3d766427eab367 and do NOT use the undocumented hack. 
Have fun! :)

--
resolution:  -> wont fix
stage: patch review -> resolved
status: open -> closed
superseder:  -> ssl/hashlib: Add configure option to set or auto-detect rpath 
to OpenSSL libs
versions: +Python 3.10 -Python 3.9

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-29 Thread Michael Felt


Change by Michael Felt :


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

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-29 Thread Michael Felt


Michael Felt  added the comment:

backports needed for 3.8 and 3.9

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



[issue38794] Setup: support linking openssl statically

2021-03-29 Thread William Woodruff


William Woodruff  added the comment:

Cheers! No promises about not using the hack, but I *will* promise not to 
complain if it doesn't work for me :-)

--

___
Python tracker 

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



[issue41906] logging.config.dictConfig does not work with callable filters

2021-03-29 Thread László Kiss Kollár

Change by László Kiss Kollár :


--
nosy: +lkollar

___
Python tracker 

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



[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

This code crashes (reported by the one and only Matt Wozniski):

import sys
class MyStderr:
def write(self, s):
sys.stderr = None
sys.stderr = MyStderr()
1/0

[1]34112 segmentation fault  ./python.exe lel.py

--
components: Interpreter Core
messages: 389722
nosy: pablogsal, vstinner
priority: normal
severity: normal
status: open
title: Segmentation fault when overriding sys.stderr
versions: Python 3.10, Python 3.6, Python 3.7, 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



[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

The problem is that 
https://github.com/python/cpython/blob/master/Python/pythonrun.c#L1074 doesn't 
take a strong reference to sys.stderr but code underneath can potentially 
release the GIL and remove the reference that keeps the object alive.

--

___
Python tracker 

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



[issue43657] shutil.rmtree fails on readonly files in Windows, onerror not called

2021-03-29 Thread Eryk Sun


Eryk Sun  added the comment:

> The doc on rmtree states 
> Exceptions raised by onerror will not be caught.
> Does this mean I can't use try/exept inside of onerro

rmtree() does not call onerror() in a try/except statement. An exception raised 
in onerror() will propagate to the scope that called rmtree().

The documentation has an example onerror() handler for Windows readonly files:

import os, stat
import shutil

def remove_readonly(func, path, _):
"Clear the readonly bit and reattempt the removal"
os.chmod(path, stat.S_IWRITE)
func(path)

shutil.rmtree(directory, onerror=remove_readonly)

I'd check whether the exception and function are expected values. For example:

import os, stat
import shutil

def remove_readonly(func, path, exc_info):
"Clear the readonly bit and reattempt the removal"
# ERROR_ACCESS_DENIED = 5
if func not in (os.unlink, os.rmdir) or exc_info[1].winerror != 5:
raise exc_info[1]
os.chmod(path, stat.S_IWRITE)
func(path)

shutil.rmtree(directory, onerror=remove_readonly)

--
nosy: +eryksun
type: crash -> behavior

___
Python tracker 

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



[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue43636] test_descr fails randomly when executed with -R :

2021-03-29 Thread Dino Viehland


Dino Viehland  added the comment:

@vstinner - The fix doesn't change the behavior of _PyType_Lookup and instead 
just fixes a previous unrelated bug.  The condition will typically ever be hit 
once (at startup) as it's very unlikely that versions will wrap, so there 
should be no performance difference after the fix.

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

___
Python tracker 

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



[issue43631] Update to OpenSSL 1.1.1k

2021-03-29 Thread Brad Warren


Change by Brad Warren :


--
nosy: +bmw

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset c8b5738810516df5722caf049003e9b319427bec by Michael Felt in 
branch 'master':
bpo-43659:  Fix test_curses on AIX (GH-25074)
https://github.com/python/cpython/commit/c8b5738810516df5722caf049003e9b319427bec


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +23827
pull_request: https://github.com/python/cpython/pull/25077

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +23826
pull_request: https://github.com/python/cpython/pull/25076

___
Python tracker 

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



[issue43661] api-ms-win-core-path-l1-1.0.dll, redux of 40740 (which has since been closed)

2021-03-29 Thread Tom Kacvinsky


New submission from Tom Kacvinsky :

Even though bpo#40740 has been closed, I wanted to re-raise the issue as this 
affects me.  There are only two functions that come from this missing DLL:

PathCchCombineEx
PathCchCanonicalizeEx

Would there be a way of rewriting join/canonicalize in getpathp.c (each of 
which uses one of the above functions) to _not_ rely on functions from a 
missing DLL on Windows 7 SP1?  Or has the ship truly sailed on this matter?

--
components: C API
messages: 389727
nosy: tkacvinsky
priority: normal
severity: normal
status: open
title: api-ms-win-core-path-l1-1.0.dll, redux of 40740 (which has since been 
closed)
versions: Python 3.9

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Minor correction. update_lines_cols() is not provided by the underlying curses 
library, it is a helper defined in Python wrapper. But it is optional, snd 
skipping test is the correct solution. Thank you.

As for the core dump, could you please run the test in verbose mode with 
redirected stdout and stderr and show the result?

./python -m test -vuall test_curses 2>test.err >test.out

What is the default value of TERM? Does the result differ if set TERM=xterm?

--

___
Python tracker 

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



[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9

2021-03-29 Thread frathgeber


frathgeber  added the comment:

Thanks Serhiy for the very quick fix! I believe handling these corner cases is 
not worth the effort and I really hope no one relies on these being 
differentiated. This change will go into a future 3.9 release?

--

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-29 Thread miss-islington


miss-islington  added the comment:


New changeset e9092b221d4951609827e437178a557fd07353af by Miss Islington (bot) 
in branch '3.8':
bpo-43659:  Fix test_curses on AIX (GH-25074)
https://github.com/python/cpython/commit/e9092b221d4951609827e437178a557fd07353af


--

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-29 Thread miss-islington


miss-islington  added the comment:


New changeset f1d53bcd536036c0a0c39962fbc0f465b5865492 by Miss Islington (bot) 
in branch '3.9':
bpo-43659:  Fix test_curses on AIX (GH-25074)
https://github.com/python/cpython/commit/f1d53bcd536036c0a0c39962fbc0f465b5865492


--

___
Python tracker 

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



[issue35883] Python startup fails with a fatal error if a command line argument contains an invalid Unicode character

2021-03-29 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3b6e61ee0812359029cac176042d9c835c60f185 by Miss Islington (bot) 
in branch '3.8':
bpo-35883: Py_DecodeLocale() escapes invalid Unicode characters (GH-24843) 
(GH-24906)
https://github.com/python/cpython/commit/3b6e61ee0812359029cac176042d9c835c60f185


--

___
Python tracker 

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



  1   2   >