[issue35714] Document that the null character '\0' terminates a struct format spec

2019-10-26 Thread Mark Dickinson


Mark Dickinson  added the comment:

I agree with Serhiy. Any other unrecognised character would raise an error. The 
null character should do the same.

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue38596] simple example give a Linux core dumped with atk-bridge

2019-10-26 Thread Feștilă George Cătălin

New submission from Feștilă George Cătălin :

My simple notepad code with QtWidgets.QPlainTextEdit() give me a crash dump on 
Linux Fedora 30 with python3

Python 3.7.4 (default, Jul  9 2019, 16:32:37) 
[GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux

[mythcat@desk pyqt5_examples]$ uname -a
Linux desk 5.3.7-200.fc30.x86_64 #1 SMP Fri Oct 18 20:13:59 UTC 2019 x86_64 
x86_64 x86_64 GNU/Linux

[mythcat@desk pyqt5_examples]$ python3 notepad.py 

** (python3:3077): WARNING **: 11:26:06.007: AT-SPI: Could not obtain desktop 
path or name


** (python3:3077): WARNING **: 11:26:06.029: atk-bridge: GetRegisteredEvents 
returned message with unknown signature

** (python3:3077): WARNING **: 11:26:06.029: atk-bridge: 
get_device_events_reply: unknown signature

** (python3:3077): WARNING **: 11:26:06.029: atk-bridge: 
get_device_events_reply: unknown signature
Traceback (most recent call last):
  File "notepad.py", line 222, in assign_syntax_py
self.syntax = mytext(self.text_widget.document())
NameError: name 'mytext' is not defined
Traceback (most recent call last):
  File "notepad.py", line 222, in assign_syntax_py
self.syntax = mytext(self.text_widget.document())
NameError: name 'mytext' is not defined
Aborted (core dumped)

The code is self.syntax = my_notepad.mytext(self.text_widget.document())

--
components: Interpreter Core
messages: 355408
nosy: catafest
priority: normal
severity: normal
status: open
title: simple example give a Linux core dumped with atk-bridge
type: crash
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



[issue38591] Deprecate Process Child Watchers

2019-10-26 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

My non-LTS Ubuntu also has 5.3 kernel but I'm talking about the oldest 
supported RHEL/CentOS.

That's why pidfd_open() cannot be a single implementation. It's so new; my 
local man-pages system has not a record about the API yet (but the web has: 
http://man7.org/linux/man-pages/man2/pidfd_open.2.html).

> If asyncio is only run from the main thread, FastChildWatcher is safe, fast 
> and has low memory footprint, no?

Unfortunately, no. FastChildWatcher is safe if you can guarantee that no code 
executed in asyncio main thread AND thread pools spawn subprocesses. Otherwise, 
the whole Python process becomes broken by the race condition between 
FastChildWatcher and any other wait()/waitpid()/waitid() call.

--

___
Python tracker 

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



[issue35714] Document that the null character '\0' terminates a struct format spec

2019-10-26 Thread Zackery Spytz


Zackery Spytz  added the comment:

I've created a patch to reject null characters in the format string.

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue38596] simple example give a Linux core dumped with atk-bridge

2019-10-26 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Can you please attach a simple reproducer script without any third party 
modules like qtwidgets to ensure crash is due to CPython and not due to the 
code in third party module itself.

--
nosy: +xtreak

___
Python tracker 

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



[issue38570] Shlex does not parse commands containing single quotes correctly

2019-10-26 Thread timonegk


timonegk  added the comment:

Okay, thanks a lot. I am closing this since it is not a bug then.

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



[issue38596] simple example give a Linux core dumped with atk-bridge

2019-10-26 Thread Feștilă George Cătălin

Feștilă George Cătălin  added the comment:

No. I don't have a reproducer script for this issue with Linux OS.
The mytext is a class from another script named my_notepad.
The problem comes with time when I use the menu to change the syntax value, as 
you can see:
self.syntax = mytext(self.text_widget.document())
My code is based on this example from GitHub account lfsando: 
https://github.com/lfsando/notepad/blob/master/highlighter.py maybe has the 
same error.

--

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 26ae9f6d3d755734c9f371b9356325afe5764813 by Serhiy Storchaka in 
branch 'master':
bpo-38535: Fix positions for AST nodes for calls without arguments in 
decorators. (GH-16861)
https://github.com/python/cpython/commit/26ae9f6d3d755734c9f371b9356325afe5764813


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16458
pull_request: https://github.com/python/cpython/pull/16929

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread miss-islington


miss-islington  added the comment:


New changeset ba3a566328e8df49741059b24a41480e248bf6d7 by Miss Skeleton (bot) 
in branch '3.8':
bpo-38535: Fix positions for AST nodes for calls without arguments in 
decorators. (GH-16861)
https://github.com/python/cpython/commit/ba3a566328e8df49741059b24a41480e248bf6d7


--
nosy: +miss-islington

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +16459
pull_request: https://github.com/python/cpython/pull/16930

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +16460
pull_request: https://github.com/python/cpython/pull/16931

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 91fc9cf43cc2e3a2f236ef9944cf1f4bed701545 by Serhiy Storchaka in 
branch '3.7':
[3.7] bpo-38535: Fix positions for AST nodes for calls without arguments in 
decorators. (GH-16861). (GH-16930)
https://github.com/python/cpython/commit/91fc9cf43cc2e3a2f236ef9944cf1f4bed701545


--

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 493fef60a7600f83fe6916ed89d0fb0c0aab484d by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-38535: Fix positions for AST nodes for calls without arguments in 
decorators. (GH-16861). (GH-16931)
https://github.com/python/cpython/commit/493fef60a7600f83fe6916ed89d0fb0c0aab484d


--

___
Python tracker 

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



[issue38558] Data Structures documentation out of sync with new Walrus operator

2019-10-26 Thread Matt Ward


Matt Ward  added the comment:

You're welcome!

On Fri, Oct 25, 2019 at 10:53 PM Ammar Askar  wrote:

>
> Ammar Askar  added the comment:
>
> Thank you for the report Matt!
>
> --
> nosy: +ammar2
> resolution:  -> fixed
> stage: patch review -> resolved
> status: open -> closed
> versions: +Python 3.9
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue38591] Deprecate Process Child Watchers

2019-10-26 Thread Kyle Stanley


Kyle Stanley  added the comment:

> > If asyncio is only run from the main thread, FastChildWatcher is safe, fast 
> > and has low memory footprint, no?

> Unfortunately, no. FastChildWatcher is safe if you can guarantee that no code 
> executed in asyncio main thread AND thread pools spawn subprocesses

Am I misunderstanding something here or is this supposed to be 
"FastChildWatcher is safe if you can guarantee that no code executed *outside 
of* the asyncio main thread AND ..."? Alternatively, "FastChildWatcher is safe 
if you can guarantee that code *only* executed in the asyncio main thread". 
Both of the above have the same functional meaning. 

I think it was a typo, but I just wanted to make sure because the distinction 
from the original makes a functional difference in this case. 

Also, regarding the second part "thread pools spawn subprocesses", is that to 
say that subprocesses can only spawn within the thread pools? As in, 
FastChildWatcher becomes unsafe if subprocesses are spawned from anywhere else?

These answers may be fairly obvious to someone familiar working within the 
internals of FastChildWatcher, but it may not be overly clear to someone such 
as myself who has mostly just read through the documentation and looked over 
the implementation briefly. I'm only familiar with the internals of 
ThreadedChildWatcher.

--

___
Python tracker 

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



[issue38589] Bad target address assigned in Python Manuals shortcut on Python installation

2019-10-26 Thread Steve Dower


Steve Dower  added the comment:

If you look in your %TEMP% directory, you'll find a set of log files from your 
Python install (maybe sort by date).

One of these will end in "doc". Could you share that file?

--

___
Python tracker 

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



[issue38591] Deprecate Process Child Watchers

2019-10-26 Thread Kyle Stanley


Kyle Stanley  added the comment:

> But it spawns a new Python thread per process which can be a blocker issue if 
> a server memory is limited.

I understand that there's *some* overhead associated with spawning a new 
thread, but from my impression it's not substantial enough to make a 
significant impact in most cases. Each individual instance of threading.Thread 
is only 64 bytes. Have you seen any recent cases where the server memory is 
limited enough for the memory cost associated with having to spawn an 
additional thread per subprocess becomes the limiting factor?

--

___
Python tracker 

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



[issue38589] Bad target address assigned in Python Manuals shortcut on Python installation

2019-10-26 Thread Y3Kv Bv


Y3Kv Bv  added the comment:

Here you go.

--
Added file: https://bugs.python.org/file48679/Python 3.8.0 
(64-bit)_20191026201510_005_doc_AllUsers.log

___
Python tracker 

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



[issue37289] regression in Cython when pickling objects

2019-10-26 Thread Thomas Caswell


Thomas Caswell  added the comment:

I believe this can be closed, the regression has been fixed and there is now a 
test to prevent it from coming back.

--

___
Python tracker 

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



[issue38440] Possible new issues with IDLE

2019-10-26 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Reproducer for the jump-to-top bug:
* Start an IDLE interactive shell session
* Run:  File Save As tmp.py
* Press F5 to run the shell session (this is an error)

Effects:
* A message box with "Invalid Syntax" appears
* The cursor jumps to the top row and lands
  on the first "3" in:
  "Python 3.8.0 (v3.8.0:fa919fdf25, Oct 14 2019, 10:23:27) "

Suggestions:
* Don't have the cursor jump after "Invalid Syntax"
* Disable F5 for interactive prompt sessions

Impact:
* Students are saving their long-running shell sessions during class.  
Occasionally, they press F5 to run a script but the interactive shell has the 
focus.  The "jump" described above is disruptive because it moves the cursor to 
the start of the session which may have occurred hours beforehand.

--

___
Python tracker 

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



[issue38597] C Extension import limit

2019-10-26 Thread Kevin Schlossser


New submission from Kevin Schlossser :

System
Windows 7 x64 SP2
Ram 16GB
6 Core AMD @ 3.2ghz

CPython 3.7.2


C Extension (pyd) import cap.

There seems to be a cap on the number of extensions that a package is able to 
contain. I am able to import 123 extension modules that my package has but when 
i go to import number 124 i get the following traceback

ImportError: DLL load failed: A dynamic link library (DLL) initialization 
routine failed.

these extension modules are part of my package, importing an extension module 
from another package does not change this behavior. it is only when I import 
the 124th extension that is in my package does it occur. 

When I change the order of the imports the error does not follow the import. I 
end up getting the same error when the 124th extension gets loaded doesn't 
matter what extension it is. 

I have tried to see if maybe it was a module limit and I spread the imports 
across multiple files and it still fails when the 124th gets loaded. I also 
tried imp.load_dynamic and importlib.import_module and the same error occurs.

If there is a way to work around this limitation it would be very helpful.

--
components: Extension Modules
messages: 355425
nosy: Kevin Schlossser
priority: normal
severity: normal
status: open
title: C Extension import limit
type: resource usage
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



[issue37289] regression in Cython when pickling objects

2019-10-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue38434] sys.addaudithook event is not documented

2019-10-26 Thread Steve Dower


Change by Steve Dower :


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

___
Python tracker 

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



[issue38557] PyTuple_GetSlice docs minor inaccuracy

2019-10-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16464
pull_request: https://github.com/python/cpython/pull/16935

___
Python tracker 

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



[issue38557] PyTuple_GetSlice docs minor inaccuracy

2019-10-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset d898d20e8c228229eb68e545f544db13f246f216 by Serhiy Storchaka in 
branch 'master':
bpo-38557: Improve documentation for list and tuple C API. (GH-16925)
https://github.com/python/cpython/commit/d898d20e8c228229eb68e545f544db13f246f216


--

___
Python tracker 

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



[issue38557] PyTuple_GetSlice docs minor inaccuracy

2019-10-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16463
pull_request: https://github.com/python/cpython/pull/16934

___
Python tracker 

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



[issue38557] PyTuple_GetSlice docs minor inaccuracy

2019-10-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16462
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16933

___
Python tracker 

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



[issue38434] sys.addaudithook event is not documented

2019-10-26 Thread Steve Dower


Steve Dower  added the comment:


New changeset 894e30ce0bcc1c509eb01c8ffa9ba6d7701aeaaf by Steve Dower in branch 
'master':
bpo-38434: Fixes some audit event documentation (GH-16932)
https://github.com/python/cpython/commit/894e30ce0bcc1c509eb01c8ffa9ba6d7701aeaaf


--

___
Python tracker 

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



[issue38434] sys.addaudithook event is not documented

2019-10-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16465
pull_request: https://github.com/python/cpython/pull/16936

___
Python tracker 

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



[issue38434] sys.addaudithook event is not documented

2019-10-26 Thread Steve Dower


Change by Steve Dower :


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



[issue38557] PyTuple_GetSlice docs minor inaccuracy

2019-10-26 Thread miss-islington


miss-islington  added the comment:


New changeset 7356e10820b160d14b0ce0aba5427a8f9e757aa7 by Miss Skeleton (bot) 
in branch '2.7':
bpo-38557: Improve documentation for list and tuple C API. (GH-16925)
https://github.com/python/cpython/commit/7356e10820b160d14b0ce0aba5427a8f9e757aa7


--
nosy: +miss-islington

___
Python tracker 

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



[issue38557] PyTuple_GetSlice docs minor inaccuracy

2019-10-26 Thread miss-islington


miss-islington  added the comment:


New changeset 334fc923b3a7a8d0d163692befd2a27b98b481df by Miss Skeleton (bot) 
in branch '3.7':
bpo-38557: Improve documentation for list and tuple C API. (GH-16925)
https://github.com/python/cpython/commit/334fc923b3a7a8d0d163692befd2a27b98b481df


--

___
Python tracker 

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



[issue38557] PyTuple_GetSlice docs minor inaccuracy

2019-10-26 Thread miss-islington


miss-islington  added the comment:


New changeset 4992dc6610fb354e36c0012a47ea9613b61c9038 by Miss Skeleton (bot) 
in branch '3.8':
bpo-38557: Improve documentation for list and tuple C API. (GH-16925)
https://github.com/python/cpython/commit/4992dc6610fb354e36c0012a47ea9613b61c9038


--

___
Python tracker 

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



[issue38434] sys.addaudithook event is not documented

2019-10-26 Thread miss-islington


miss-islington  added the comment:


New changeset 11f0f11c4859f5ca201cd40b379b13c65f05ec91 by Miss Skeleton (bot) 
in branch '3.8':
bpo-38434: Fixes some audit event documentation (GH-16932)
https://github.com/python/cpython/commit/11f0f11c4859f5ca201cd40b379b13c65f05ec91


--
nosy: +miss-islington

___
Python tracker 

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



[issue38597] C Extension import limit

2019-10-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
components:  -Extension Modules

___
Python tracker 

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



[issue38597] C Extension import limit

2019-10-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
components: +Interpreter Core, Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue38598] IDLE: Disable F5, etc, in Shell, even after saving

2019-10-26 Thread Terry J. Reedy


New submission from Terry J. Reedy :

When the Shell is active, the Run menu is disabled, but its shortcuts are not.  
These are F5 Run Module, Shift-F5 Run ... Custom, and Alt-X Check Module.  If 
Shell has not been saved, the shortcuts do nothing, but once Shell has been 
saved, they try to compile the entire shell session.

The result is that the '3' in 'Python 3.8 ...' on the first line is highlighted 
as an error and the SyntaxError box pops up.  When the box is dismissed, the 
cursor is placed after the '3'.

Instead of calling compile, IDLE should beep and continue.

--
assignee: terry.reedy
components: IDLE
messages: 355432
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE: Disable F5, etc, in Shell, even after saving
type: behavior
versions: 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



[issue38334] zipfile: Seeking encrypted file breaks after seeking backwards

2019-10-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +16466
pull_request: https://github.com/python/cpython/pull/16937

___
Python tracker 

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



[issue38334] zipfile: Seeking encrypted file breaks after seeking backwards

2019-10-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

PR 16937 is simpler. It does not change the decrypter.

--

___
Python tracker 

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



[issue38557] PyTuple_GetSlice docs minor inaccuracy

2019-10-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue38312] curses: add `set_tabsize` and `set_escdelay`

2019-10-26 Thread Anthony Sottile


Change by Anthony Sottile :


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

___
Python tracker 

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



[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

2019-10-26 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

2019-10-26 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Trying to compile grep output is also bad.  The ultimate fix is to subclass the 
specialized code editor from the general text editor, instead of vice versa as 
at present, but I leave that for later, and will simply check if the window 
about to be compiled is an instance of OutputWindow (which is also the PyShell 
superclass).

--
title: IDLE: Disable F5, etc, in Shell, even after saving -> IDLE: Disable F5, 
etc, in Shell and Output windows.

___
Python tracker 

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



[issue38440] Possible new issues with IDLE

2019-10-26 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Given this, I reproduced the issue on Windows for both 3.7 and 3.8.  The bug is 
trying to compile the Shell window, after it has been saved, or an Output 
window, with a prompt to save, for any of F5, Shift-F5, and Alt-X.  There is no 
existing issue I know of, so I opened #38598 and added PR 16939.

--

___
Python tracker 

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



[issue38334] zipfile: Seeking encrypted file breaks after seeking backwards

2019-10-26 Thread Daniel Hillier


Daniel Hillier  added the comment:

Thanks for looking at the PR.


I got carried away refactoring the decrypter for a future scenario where there 
could be different decrypters (possibly using certificates too) :) Your PR is 
much simpler.

Would you also be able to take a look at some other PRs I've submitted for 
zipfile. They are both pretty small changes:

https://bugs.python.org/issue36993
https://bugs.python.org/issue37523

Thanks again,
Dan

--

___
Python tracker 

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



[issue21622] ctypes.util incorrectly fails for libraries without DT_SONAME

2019-10-26 Thread Javier Castillo II


Change by Javier Castillo II :


--
pull_requests: +16469
pull_request: https://github.com/python/cpython/pull/16940

___
Python tracker 

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



[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

2019-10-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16470
pull_request: https://github.com/python/cpython/pull/16941

___
Python tracker 

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



[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

2019-10-26 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset e3f90b217a5152275b180b466bd503658a734462 by Terry Jan Reedy in 
branch 'master':
bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)
https://github.com/python/cpython/commit/e3f90b217a5152275b180b466bd503658a734462


--

___
Python tracker 

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



[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

2019-10-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16471
pull_request: https://github.com/python/cpython/pull/16942

___
Python tracker 

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



[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

2019-10-26 Thread miss-islington


miss-islington  added the comment:


New changeset 849b1b9f6c538085839f8059e0d6a5536d2fdb52 by Miss Skeleton (bot) 
in branch '3.7':
bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)
https://github.com/python/cpython/commit/849b1b9f6c538085839f8059e0d6a5536d2fdb52


--
nosy: +miss-islington

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-10-26 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +16472
pull_request: https://github.com/python/cpython/pull/16943

___
Python tracker 

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



[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

2019-10-26 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

2019-10-26 Thread miss-islington


miss-islington  added the comment:


New changeset e3a477aa072a737d5119b0778d14d9f3ddb9f587 by Miss Skeleton (bot) 
in branch '3.8':
bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)
https://github.com/python/cpython/commit/e3a477aa072a737d5119b0778d14d9f3ddb9f587


--

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-10-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16474
pull_request: https://github.com/python/cpython/pull/16945

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-10-26 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset e31a79a5b44357b409d71949dc5308889970f9ab by Terry Jan Reedy in 
branch 'master':
bpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943)
https://github.com/python/cpython/commit/e31a79a5b44357b409d71949dc5308889970f9ab


--

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-10-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16473
pull_request: https://github.com/python/cpython/pull/16944

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-10-26 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-10-26 Thread miss-islington


miss-islington  added the comment:


New changeset 7a3b1a6f0b0a5ac6e9af4c5ee8b89a2fca96efb6 by Miss Skeleton (bot) 
in branch '3.8':
bpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943)
https://github.com/python/cpython/commit/7a3b1a6f0b0a5ac6e9af4c5ee8b89a2fca96efb6


--

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-10-26 Thread miss-islington


miss-islington  added the comment:


New changeset bc30db1ee70b6708aa436868e548aef919567448 by Miss Skeleton (bot) 
in branch '3.7':
bpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943)
https://github.com/python/cpython/commit/bc30db1ee70b6708aa436868e548aef919567448


--

___
Python tracker 

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



[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2019-10-26 Thread Kyle Stanley


Kyle Stanley  added the comment:

> Actually, since Andrew also agrees that we need to deprecate passing 
> coroutines to wait(), I'll keep this issue open until we add an actual 
> DeprecationWarning in 3.8.

Since 3.8 has been released and the deprecation notice is in the 3.8 whatsnew 
document, should we implement the warning in Lib/asyncio/tasks.py? If so, I can 
open a PR. 

> PendingDeprecationWarning

Also, it's not clear to me if this should be a DeprecationWarning or 
PendingDeprecationWarning. The most recent message from Yury in the issue 
suggests a PendingDeprecationWarning, but the actual entry in the documentation 
(https://docs.python.org/3/library/asyncio-task.html?highlight=asyncio%20wait#asyncio.wait)
 seems like it might imply that it would be a DeprecationWarning:

> Deprecated since version 3.8: If any awaitable in aws is a coroutine, it is 
> automatically scheduled as a Task. Passing coroutines objects to wait() 
> directly is deprecated as it leads to confusing behavior.

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

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-10-26 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +16475
stage: commit review -> patch review
pull_request: https://github.com/python/cpython/pull/16947

___
Python tracker 

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



[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +16476
pull_request: https://github.com/python/cpython/pull/16948

___
Python tracker 

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



[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +16477
pull_request: https://github.com/python/cpython/pull/16949

___
Python tracker 

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



[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset a8fb9327fb9387b404d4b6ce55c608125f66b9ae by Terry Jan Reedy in 
branch 'master':
bpo-37309: First idlelib/NEWS.txt for 3.9.0 (GH-16947)
https://github.com/python/cpython/commit/a8fb9327fb9387b404d4b6ce55c608125f66b9ae


--

___
Python tracker 

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



[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 6d6418a075f272aeab93c6f2ec15c10257b94e1d by Terry Jan Reedy in 
branch '3.8':
[3.8] bpo-37309: First idlelib/NEWS.txt for 3.8.1 (GH-16947)
https://github.com/python/cpython/commit/6d6418a075f272aeab93c6f2ec15c10257b94e1d


--

___
Python tracker 

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



[issue38334] zipfile: Seeking encrypted file breaks after seeking backwards

2019-10-26 Thread Daniel Hillier


Daniel Hillier  added the comment:

I also think that the `read_init` method in my PR is a useful refactor as it 
locates all the state that needs to be (re)set when starting a read into the 
same location.

At the moment this state is set in 1) __init__ and 2) the seek method when 
seeking back beyond what is in the buffer.

--

___
Python tracker 

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



[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset baf2657eff82f5c33ae8194499d97ba963871655 by Terry Jan Reedy in 
branch '3.7':
[3.7] bpo-37309: First idlelib/NEWS.txt for 3.7.6 (GH-) (#16949)
https://github.com/python/cpython/commit/baf2657eff82f5c33ae8194499d97ba963871655


--

___
Python tracker 

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