[issue39197] argparse: title and description for mutually exclusive arg groups

2020-01-03 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +rhettinger
title: Support the title and description arguments for mutually exclusive 
argument groups -> argparse: title and description for mutually exclusive arg 
groups

___
Python tracker 

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



[issue39182] sys.addaudithook(hook) loops indefinitely on mismatch for hook

2020-01-03 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I wrote too soon.  Entering anything at the next line prints
TypeError: 'int' object is not callable
twice and a lot of IDLE specific stuff, and not another prompt.  I have to 
restart the remote execution process.

--

___
Python tracker 

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



[issue39182] sys.addaudithook(hook) loops indefinitely on mismatch for hook

2020-01-03 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

> I think this is specific to the interactive prompt.
In IDLE, which simulates interactive mode with repeated 'exec(user_code, 
namespace)', no error is printed, let alone a loop.

>>> import sys
>>> sys.addaudithook(0)
>>>

--
nosy: +terry.reedy

___
Python tracker 

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



[issue39179] pandas tz_convert() seems to report incorrect date conversion

2020-01-03 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> third party
stage:  -> resolved

___
Python tracker 

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



[issue39174] unicodedata.normalize failing with NFD and NFKD for some characters in Python3

2020-01-03 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue39169] TypeError: 'int' object is not callable if the signal handler is SIG_IGN

2020-01-03 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
stage:  -> test needed
versions: +Python 3.9 -Python 3.6

___
Python tracker 

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



[issue39165] Completeness and symmetry in RE, avoid `findall(...)[0]`

2020-01-03 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I currently agree with Serhiy and am not persuaded that either new function is 
needed.

1. findalliter: For 3.0, I might have been more aggressive than we were in 
turning list-returning functions into iterators, as done with map, etc.  But 
the collective decision, led by Guido, was that for some, such as str.split, 
the efficiency gain was not worth the disruption.  The thought was that 
returned lists were typically 'small';  they are definitely finite (whereas 
map(func, infinite_iterator) is itself an infinite iterator).  It is too late 
to reverse that decision, and I would be wary of adding iterator versions.  
There is no particular justification for this one.

2. findfirst: This seems to be a near duplicate of search.  

I don't know why people use findall(...)[0] instead of search (which I learned 
first), but I don't see 'lack of symmetry and completeness' as a reason. 
'python-ideas' is a mailing list, not a person or even a defined group of 
people.  The respondents on any thread tend to be a biased selection of the 
community.  Such discussions suggest but do not determine.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue27657] urlparse fails if the path is numeric

2020-01-03 Thread Senthil Kumaran


Senthil Kumaran  added the comment:

@James - Originally the issue was considered a revert and the versions were set 
for the merge, but I certainly recognize the problem when parsing can fail for 
simple URLs like `localhost:8000` which is very common.

Another developer had raised the concerns with the change in this PR: 
https://github.com/python/cpython/pull/16839#issuecomment-570758153 

I am reopening this issue, and re-read the arguments again to understand and 
propose the next steps.

--
assignee:  -> orsenthil
resolution: fixed -> 
stage: resolved -> commit review
status: closed -> open

___
Python tracker 

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



[issue39154] "utf8" not always a synonym for "utf-8" in lib2to3

2020-01-03 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +benjamin.peterson
stage:  -> test needed
versions: +Python 3.9 -Python 3.6

___
Python tracker 

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



[issue39146] too much memory consumption in re.compile unicode

2020-01-03 Thread Andy Lester


Change by Andy Lester :


--
components: +Regular Expressions -Library (Lib)
nosy: +ezio.melotti, mrabarnett

___
Python tracker 

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



[issue39204] Automate adding Type Annotations to Documentation

2020-01-03 Thread Guido van Rossum


Guido van Rossum  added the comment:

This was never blocked on Python 2 (at best we'd do this for the most recent 
Python 3 release anyway).

I expect it will be quite complex to get the quality of the implementation high 
enough, but I suppose someone should start with a prototype. I'm not 
volunteering though. :-)

--

___
Python tracker 

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



[issue39204] Automate adding Type Annotations to Documentation

2020-01-03 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Some discussion on similar proposal earlier : 
https://mail.python.org/pipermail/python-dev/2017-November/150234.html

--

___
Python tracker 

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



[issue39204] Automate adding Type Annotations to Documentation

2020-01-03 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I am not sure if it was discussed earlier there was a discussion on adding PEP 
570 syntax across the docs. This comes at the cost of keeping the types 
updated. There was also a poc over expanding the signature to view the PEP 570 
syntax as needed. 

issue37134
https://bugs.python.org/msg344654

--
nosy: +gvanrossum, pablogsal, rhettinger, xtreak

___
Python tracker 

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



[issue27657] urlparse fails if the path is numeric

2020-01-03 Thread James Brown


James Brown  added the comment:

This is a surprising change to put in a minor release. This change totally 
changes the semantics of parsing scheme-less URLs with ports in them and ended 
up breaking a significant amount of my software. It turns out that urls like 
`example.com:80` are more common than one might hope, and a lot of software has 
always assumed that `example.com:80` would get parsed as the netloc and the 
software can guess the scheme based on the port...

--
nosy: +James Brown2

___
Python tracker 

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



[issue39196] json fails to encode dictionary view types

2020-01-03 Thread Inada Naoki


Inada Naoki  added the comment:

If we support more types by default, user can not customize serialization of 
the type using `default` option.
That's why we don't accept "any iterable" but only list and tuple.

--
nosy: +inada.naoki

___
Python tracker 

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



[issue39196] json fails to encode dictionary view types

2020-01-03 Thread Inada Naoki


Change by Inada Naoki :


--
resolution:  -> wont fix
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



[issue27973] urllib.urlretrieve() fails on second ftp transfer

2020-01-03 Thread Senthil Kumaran


Change by Senthil Kumaran :


--
pull_requests: +17245
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/17819

___
Python tracker 

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



[issue27973] urllib.urlretrieve() fails on second ftp transfer

2020-01-03 Thread Senthil Kumaran


Senthil Kumaran  added the comment:


New changeset 5bba60290b4ac8c95ac46cfdaba5deee37be1fab by Senthil Kumaran in 
branch '2.7':
bpo-27973 - Use test.support.temp_dir instead of NamedTemporaryFile for the 
(#17774)
https://github.com/python/cpython/commit/5bba60290b4ac8c95ac46cfdaba5deee37be1fab


--

___
Python tracker 

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



[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-01-03 Thread Anthony Wee


Change by Anthony Wee :


--
pull_requests: +17244
pull_request: https://github.com/python/cpython/pull/17818

___
Python tracker 

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



[issue39207] concurrent.futures.ProcessPoolExecutor does not properly reap jobs and spawns too many workers

2020-01-03 Thread Inada Naoki


Inada Naoki  added the comment:

> ProcessPoolExecutor does not properly spin down and spin up new processes.

It is because Process "Pool" is for reusing processes.
If you don't want to reuse process, you can use the Process.
https://docs.python.org/3/library/multiprocessing.html#the-process-class

Or you can create ProcessPoolExecutor before starting bunch of jobs and 
shutdown it after complete the jobs.


> ProcessPoolExecutor also spins up too many processes and ignores the 
> max_workers argument.  An example is my setting max_workers=10,
[snip]
> Instead, ProcessPoolExecutor spawns all 10 max_workers

What "ignores the max_workers argument" means?

And would you create a simple reproducible example?

Old ThreadPoolExecutor had the behavior (#24882).  But ProcessPoolExecutor 
starts worker processes on demand from old.

--
nosy: +inada.naoki

___
Python tracker 

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



[issue39206] Modulefinder does not consider source file encoding

2020-01-03 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue34946] inspect.getcallargs is marked as deprecated in documentation, but doesn't issue a DeprecationWarning when used

2020-01-03 Thread anthony shaw


anthony shaw  added the comment:

Resolved by another bpo

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



[issue31242] Add SSLContext.set_verify_callback()

2020-01-03 Thread Kent Watsen


Kent Watsen  added the comment:

Very much needing this!

My situation is a mutli-tenant asynchio-based server whereby each tenant is 
able to configure other clients that can connect.  The current strategy 
requires all certs to be known up-front that, for now, necessitates a painful 
restart whenever new auth for a client-certificate is configured.

--

___
Python tracker 

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



[issue39206] Modulefinder does not consider source file encoding

2020-01-03 Thread Luciana


Luciana  added the comment:

I just wanted to comment here that I am looking into this.

--
nosy: +lucianamarques

___
Python tracker 

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



[issue39208] PDB pm function throws exception without sys import

2020-01-03 Thread Zachary Ware


Zachary Ware  added the comment:

Try varying the order of what you're doing there:

>>> import pdb, sys
>>> pdb.pm()
Traceback ...
>>> pdb.pm()


See https://docs.python.org/3/library/sys.html#sys.last_traceback, which notes 
that this attribute is not always present (it won't be if no exception has been 
raised).

--
nosy: +zach.ware
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



[issue6143] IDLE - clear and restart the shell window

2020-01-03 Thread ThePokestarFan


ThePokestarFan  added the comment:

I would really like to be able to clear IDLE when using it. I do not understand 
how hard it can be just to clear a window.

--
nosy: +ThePokestarFan

___
Python tracker 

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



[issue39208] PDB pm function throws exception without sys import

2020-01-03 Thread ThePokestarFan


New submission from ThePokestarFan :

When testing PDB in python 3.8.1, PDB throws an exception when I call the pm() 
function in PDB without importing system.

[Fresh session]
>>> import pdb
>>> pdb.pm()
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/pdb.py", line 
1631, in pm
post_mortem(sys.last_traceback)
AttributeError: module 'sys' has no attribute 'last_traceback'
>>> import sys
>>> pdb.pm()
> /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/pdb.py(1631)pm()
-> post_mortem(sys.last_traceback)
...

--
components: Library (Lib), macOS
messages: 359264
nosy: ThePokestarFan, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: PDB pm function throws exception without sys import
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue31242] Add SSLContext.set_verify_callback()

2020-01-03 Thread Kent Watsen


Change by Kent Watsen :


--
nosy: +kwatsen

___
Python tracker 

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



[issue39152] Faulty override of tkinter.Misc.configure in tkinter.ttk.Scale.configure

2020-01-03 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Giovanni, a Python exception is a intended exit.  A crash is when the program 
either hangs or stops unintentionally without a python exception but with an OS 
error message.

I checked and Scale is the only ttk widget that overrides configure.

--
type: crash -> behavior

___
Python tracker 

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



[issue39152] Faulty override of tkinter.Misc.configure in tkinter.ttk.Scale.configure

2020-01-03 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue39152] Faulty override of tkinter.Misc.configure in tkinter.ttk.Scale.configure

2020-01-03 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Your code is buggy because 'cursor' is not a dict or anything like one.

On the other hand, adding retval to capture and return the return from 
Widget.configure looks correct.  (And it will not prevent kw.update('cursor') 
from raising.  The current code is

def configure(self, cnf=None, **kw):
"""Modify or query scale options.

Setting a value for any of the "from", "from_" or "to" options
generates a <> event."""
if cnf:
kw.update(cnf)
Widget.configure(self, **kw)
if any(['from' in kw, 'from_' in kw, 'to' in kw]):
self.event_generate('<>')
)

To review, test, and make the change, a github Pull Request (PR) is needed.  I 
will make one.

--
nosy: +serhiy.storchaka, terry.reedy

___
Python tracker 

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



[issue39141] IDLE: system clear function returns 256 on Mac OS Catalina

2020-01-03 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Among other problems, the patch for #11820 uses a unix-only tcl function. 

In non-shell editor and output windows, Select all (Control-A at least on 
windows) Delete (or Backspace, or Cut to clipboard, ^X on Windows) clears the 
window.  Delete does not work for the read-only history portion of the Shell, 
hence the request for a separate menu item.

However, if an editor window is open, one can still get a clean Shell by 
closing Shell and re-opening with Run => Shell or running the file being edited.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> IDLE - clear and restart the shell window
title: IDLE Clear function returns 256 on Mac OS Catalina -> IDLE: system clear 
function returns 256 on Mac OS Catalina

___
Python tracker 

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



[issue39207] concurrent.futures.ProcessPoolExecutor does not properly reap jobs and spawns too many workers

2020-01-03 Thread Yusef Shaban


New submission from Yusef Shaban :

This came up from a supporting library but the actual issue is within 
concurrent.futures.ProcessPool.

Discussion can be found at https://github.com/agronholm/apscheduler/issues/414

ProcessPoolExecutor does not properly spin down and spin up new processes. 
Instead, it simply re-claims existing processes to re-purpose them for new 
jobs. Is there no option or way to make it so that instead of re-claiming 
existing processes, it spins down the process and then spins up another one. 
This behavior is a lot better for garbage collection and will help to prevent 
memory leaks. 

ProcessPoolExecutor also spins up too many processes and ignores the 
max_workers argument. An example is my setting max_workers=10, but I am only 
utilizing 3 processes. One would expect given the documentation that I would 
have at most 4 processes, the main process, and the 3 worker processes. 
Instead, ProcessPoolExecutor spawns all 10 max_workers and lets the other 7 
just sit there, even though they are not necessary.

--
components: Library (Lib)
messages: 359260
nosy: yus2047889
priority: normal
severity: normal
status: open
title: concurrent.futures.ProcessPoolExecutor does not properly reap jobs and 
spawns too many workers
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue39206] Modulefinder does not consider source file encoding

2020-01-03 Thread Nicholas Feix


New submission from Nicholas Feix :

The modulefinder._find_module(...) function returns file objects text mode for 
source modules using the system encoding.
ModuleFinder.load_module(...) can run into decoding issues when the source file 
encoding does not match the system default.

The prior implementation imp.find_module(...) detected the encoding correctly 
using the tokenize.detect_encoding(...) function.
With the following code segment the detection would work again with UTF-8 BOM 
and PEP 263 type cookies.

encoding = None
if 'b' not in mode:
with open(file_path, 'rb') as file:
encoding = tokenize.detect_encoding(file.readline)[0]

file = open(file_path, mode, encoding=encoding)

--
components: Library (Lib)
messages: 359259
nosy: Nicholas Feix
priority: normal
severity: normal
status: open
title: Modulefinder does not consider source file encoding
type: behavior
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



[issue27973] urllib.urlretrieve() fails on second ftp transfer

2020-01-03 Thread David Bolen


David Bolen  added the comment:

Ok, I can confirm that the updated PR 17774 test passes under Windows (and 
still cleans up after itself).

--

___
Python tracker 

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



[issue14132] Redirect is not working correctly in urllib2

2020-01-03 Thread Ned Deily


Change by Ned Deily :


--
components: +Library (Lib) -XML
type: performance -> behavior

___
Python tracker 

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



[issue14132] Redirect is not working correctly in urllib2

2020-01-03 Thread Ned Deily


Change by Ned Deily :


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

___
Python tracker 

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



[issue39205] Hang when interpreter exits after ProcessPoolExecutor.shutdown(wait=False)

2020-01-03 Thread Brian Quinlan


New submission from Brian Quinlan :

```
from concurrent.futures import ProcessPoolExecutor
import time

t = ProcessPoolExecutor(max_workers=3)
t.map(time.sleep, [1,2,3])
t.shutdown(wait=False)
```

Results in this exception and then a hang (i.e. Python doesn't terminate):
```
Exception in thread QueueManagerThread:
Traceback (most recent call last):
  File "/usr/local/google/home/bquinlan/cpython/Lib/threading.py", line 944, in 
_bootstrap_inner
self.run()
  File "/usr/local/google/home/bquinlan/cpython/Lib/threading.py", line 882, in 
run
self._target(*self._args, **self._kwargs)
  File 
"/usr/local/google/home/bquinlan/cpython/Lib/concurrent/futures/process.py", 
line 352, in _queue_management_worker
_add_call_item_to_queue(pending_work_items,
  File 
"/usr/local/google/home/bquinlan/cpython/Lib/concurrent/futures/process.py", 
line 280, in _add_call_item_to_queue
call_queue.put(_CallItem(work_id,
  File "/usr/local/google/home/bquinlan/cpython/Lib/multiprocessing/queues.py", 
line 82, in put
raise ValueError(f"Queue {self!r} is closed")
ValueError: Queue  is closed
```

--
assignee: bquinlan
messages: 359257
nosy: bquinlan
priority: normal
severity: normal
status: open
title: Hang when interpreter exits after 
ProcessPoolExecutor.shutdown(wait=False)
type: behavior
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



[issue6143] IDLE - clear and restart the shell window

2020-01-03 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

#17632 was instead closed as a duplicate of this issue.

The (editor) Run menu now has a custom run item.  'Clear shell before restart' 
could be added as an alternative to 'no restart'.  But this would be a separate 
issue.

--
title: IDLE - an extension to clear the shell window -> IDLE - clear and 
restart the shell window

___
Python tracker 

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



[issue14132] Redirect is not working correctly in urllib2

2020-01-03 Thread Senthil Kumaran


Change by Senthil Kumaran :


--
nosy:  -Joony898i
title: SEO Services Development & PHP development -> Redirect is not working 
correctly in urllib2

___
Python tracker 

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



[issue14132] SEO Services Development & PHP development

2020-01-03 Thread joony kohe


joony kohe  added the comment:

Hi Marie and many thanks for your great interview of Rick Hanson regarding 
inner strength. Will certainly be watching the interview again. You did a 
wonderful job I 

thought of guiding Rick from stepping stone to stepping stone through some of 
his writing. You two created a truly helpful program together. And I totally 
agree with you in your obviously heartfelt expression of gratitude to Rick for 
his work. I too always look forward to what he has to teach us. Thanks again. 
With very best wishes, Ruth Whetsel
https://www.sattamatka.company/;>satta matka,indian matka, boss 
matka

--
components: +XML -Library (Lib)
nosy: +Joony898i
title: Redirect is not working correctly in urllib2 -> SEO Services Development 
& PHP development
type: behavior -> performance

___
Python tracker 

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



[issue39203] python3 time module misses attributes in Mac installers

2020-01-03 Thread Ned Deily


Ned Deily  added the comment:

This is a duplicate of Issue34597.

The Pythons provided by the python.org macOS installers are built to run on a 
range of operating system versions.  The current practice is to build 
installers that work on any macOS version from 10.9 on.  To safely provide that 
functionality, the installers are built using a 10.9 ABI.  As noted in the time 
module documentation, "Although this module is always available, not all 
functions are available on all platforms."  And, as noted in

   man 3 clock_gettime 

For current macOS releases: "These functions first appeared in Mac OSX 10.12".

So since those functions are not available in macOS 10.9, they are not 
available in the current python.org macOS Pythons.  There are some other 
examples of this.

To remove this restriction and still allow builds that support a range of 
versions, we would need to identify the system interfaces that have been added 
in new releases and then add code to use weak linking to test at runtime to 
gracefully handle missing interfaces, rather than segfaulting.  It would be 
desirable to support that but it's a fair amount of work including adding tests 
and no one has volunteered to do that work - yet.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Python needs to check existence of functions at runtime for 
targeting older macOS platforms
type: compile error -> 

___
Python tracker 

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



[issue39158] ast.literal_eval() doesn't support empty sets

2020-01-03 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I am re-closing the issue as I don't think is worth complicating the docs for 
this edge case and the security concern is non existent.

Apologies for the noise. If someone feels strongly about the documentation, 
they can reopen the issue.

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

___
Python tracker 

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



[issue39158] ast.literal_eval() doesn't support empty sets

2020-01-03 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> The function literal_eval is not safe anymore as the constructor can be 
> intercepted:

Well, actually it can also be done with any other builtin via the same trick, 
so this is no different but is only slightly more obvious that it can be done.

I still find a bit weird that the documentation says "literal or container 
display" but 'set' is neither.

--

___
Python tracker 

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



[issue39158] ast.literal_eval() doesn't support empty sets

2020-01-03 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

The function literal_eval is not safe anymore as the constructor can be 
intercepted:

>>> import builtins
>>> def evil_code(*args):
... print("Something evil")
...
>>> builtins.set = evil_code
>>> import ast
>>> ast.literSomething evil

KeyboardInterrupt
>>> ast.literal_eval("set()")
Something evil


I think we should either use {0}.__class__.

Also, the documentation now is wrong as the function does more than evaluate 
literals or container displays.

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

___
Python tracker 

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



[issue39158] ast.literal_eval() doesn't support empty sets

2020-01-03 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue39158] ast.literal_eval() doesn't support empty sets

2020-01-03 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

The function literal_eval is not safe anymore as the constructor can be 
intercepted:

>>> import builtins
>>> def evil_code(*args):
... print("Something evil")
...
>>> builtins.set = evil_code
>>> ast.literal_eval("set()")
Something evil


I think we should either use {0}.__class__.

Also, the documentation now is wrong as the function does more than evaluate 
literals or container displays.

--

___
Python tracker 

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



[issue39204] Automate adding Type Annotations to Documentation

2020-01-03 Thread Cooper Lees


Change by Cooper Lees :


--
type:  -> enhancement

___
Python tracker 

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



[issue39204] Automate adding Type Annotations to Documentation

2020-01-03 Thread Cooper Lees


New submission from Cooper Lees :

What are people's thoughts on automating adding type annotations to 
documentation now that Typeshed is mature and Python 2 is EOL?
(Let us never speak of comment annotations)

--
components: Library (Lib)
messages: 359249
nosy: cooperlees
priority: normal
severity: normal
status: open
title: Automate adding Type Annotations to Documentation
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



[issue39203] python3 time module misses attributes in Mac installers

2020-01-03 Thread Jason Li


New submission from Jason Li :

The issue: AttributeError: module 'time' has no attribute 'clock_gettime'. It 
probably missed other attributes as well.

The problem only appeared with using installers to install python. While 
Homebrew installed python does not have the issue.

The issue occurred in versions, 3.7.1, 3.7.3, 3.7.4, 3.8.1, as I observed.

--
components: macOS
messages: 359248
nosy: jasonli360, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: python3 time module misses attributes in Mac installers
type: compile error
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue39182] sys.addaudithook(hook) loops indefinitely on mismatch for hook

2020-01-03 Thread Steve Dower


Steve Dower  added the comment:

I think this is specific to the interactive prompt. Under normal circumstances, 
any error in calling the hook at the point where an event is being audited 
(which is immediate when using interactive mode) needs to propagate.

Probably the best way to handle it is to call the hook with a new event 
indicating it's being added, but before it actually gets put into the list. A 
hook could then set up a different kind of loop, but it would be much harder to 
do it by accident.

Perhaps "sys.addaudithook/self" with itself as an argument. We can't just use 
"sys.addaudithook" in case there are hooks that blindly abort this event (which 
there are, because I've written them ;) ). But this will at least make sure 
that the signature is correct and shouldn't send the interactive parser into a 
loop.

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



[issue39184] Many command execution functions are not raising auditing events

2020-01-03 Thread Steve Dower


Steve Dower  added the comment:

Agreed, we should add events for all of these. They can go into the next 3.8 
release.

Ideally, the lowest level operations (typically os module) should raise events. 
Where it's convenient to also audit operations at a higher level (shutil, 
subprocess, etc.) then we can do that too, as it provides helpful context for 
*why* the lower-level operation ran.

Contributions welcome :) I'll likely get to them eventually, but no reason it 
has to be me adding everything.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-01-03 Thread Steve Dower


Steve Dower  added the comment:

> It looks like there has been a regression in the fix for this issue.

You're right. Care to create a pull request to fix it?

--

___
Python tracker 

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



[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-03 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +vstinner

___
Python tracker 

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



[issue39200] Fix inaccurate TypeError messages when calling with insufficient arguments

2020-01-03 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
title: Inaccurate TypeError message for `range` without argument -> Fix 
inaccurate TypeError messages when calling with insufficient arguments

___
Python tracker 

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



[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-03 Thread Adam


Adam  added the comment:

I filed a bug for this a few weeks ago, and then found another ticket about the 
same issue before:

https://bugs.python.org/issue37788

My ticket: 
https://bugs.python.org/issue39074

The memory leak was from a change introduced about 6 months ago:

https://github.com/python/cpython/commit/468e5fec8a2f534f1685d59da3ca4fad425c38dd

--
nosy: +krypticus

___
Python tracker 

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



[issue39200] Inaccurate TypeError message for `range` without argument

2020-01-03 Thread Dong-hee Na


Change by Dong-hee Na :


--
versions:  -Python 3.5, Python 3.6

___
Python tracker 

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



[issue39200] Inaccurate TypeError message for `range` without argument

2020-01-03 Thread Dong-hee Na


Dong-hee Na  added the comment:

I noticed that min/max builtin function also has the same problem.

For example, PyPy raise TypeError as 
TypeError: max() expects at least one argument.

PR-17814 is an update patch for this.

I suggest changing the title to be "Fix inaccurate TypeError messages when 
calling with insufficient arguments"

--
nosy: +corona10, pablogsal
versions: +Python 3.5, Python 3.6

___
Python tracker 

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



[issue39200] Inaccurate TypeError message for `range` without argument

2020-01-03 Thread SilentGhost


Change by SilentGhost :


--
versions:  -Python 3.5, Python 3.6

___
Python tracker 

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



[issue39202] Python shelve __del__ ignored exception

2020-01-03 Thread Ilya


New submission from Ilya :

I'm using my own implementation of the memoize by shelve module. In the 
attachment, there are 2 simple test cases which pass but the console there are 
a lot of messages like that:

Exception ignored in: 
Traceback (most recent call last):
  File "C:\Miniconda2\envs\38_common\lib\shelve.py", line 162, in __del__
self.close()
  File "C:\Miniconda2\envs\38_common\lib\shelve.py", line 144, in close
self.sync()
  File "C:\Miniconda2\envs\38_common\lib\shelve.py", line 172, in sync
self.dict.sync()
  File "C:\Miniconda2\envs\38_common\lib\dbm\dumb.py", line 129, in _commit
with self._io.open(self._dirfile, 'w', encoding="Latin-1") as f:
PermissionError: [Errno 13] Permission denied: 
'C:\\project\\tests\\test_memoize_tmp_t5tai08p\\memoize_test_file.dat.dir'

Exception ignored in: 
Traceback (most recent call last):
  File "C:\Miniconda2\envs\38_common\lib\dbm\dumb.py", line 274, in close
self._commit()
  File "C:\Miniconda2\envs\38_common\lib\dbm\dumb.py", line 129, in _commit
with self._io.open(self._dirfile, 'w', encoding="Latin-1") as f:
PermissionError: [Errno 13] Permission denied: 
'C:\\project\\tests\\test_memoize_tmp_t5tai08p\\memoize_test_file.dat.dir'


Basically, the main issue can be explained like that - Python 
dbm.dumb._Database should maintain self._modified the attribute in the right 
way(set it to False) after the _commit method. 

Later I will try to make changes in the dbm.dumb module and run Python internal 
tests for that modification to see any regression, if not will add PR here.

--
components: Library (Lib)
files: test_python_shelve_issue.py
messages: 359242
nosy: libbkmz
priority: normal
severity: normal
status: open
title: Python shelve __del__ ignored exception
type: enhancement
versions: Python 3.8
Added file: https://bugs.python.org/file48826/test_python_shelve_issue.py

___
Python tracker 

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



[issue39200] Inaccurate TypeError message for `range` without argument

2020-01-03 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +17241
pull_request: https://github.com/python/cpython/pull/17814

___
Python tracker 

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



[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-03 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Please include the script as an attachment or text so that it will be easy to 
view them. The script as below from the attachment : 

import threading
import time
import tracemalloc

def callback():
pass

tracemalloc.start()
for i in range(10):
snapshot1 = tracemalloc.take_snapshot()
for i in range(10):
timer = threading.Timer(1, callback)
timer.start()
snapshot2 = tracemalloc.take_snapshot()
top_stats = snapshot2.compare_to(snapshot1, 'lineno')
print("[ Top 10 differences ]")

for stat in top_stats[:10]:
print(stat)

--
nosy: +pitrou, xtreak -odinsbane

___
Python tracker 

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



[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-03 Thread Matthew Smith


Matthew Smith  added the comment:

This issue also affects me, pyth. I tried it out with various combinations of 
sleep, and durations of tasks, but what I noticed is that 
threading_shutdown_locks continues to grow at each iteration.

for i in range(10):
for j in range(10):
timer = threading.Thread(target = callback)
timer.start()
time.sleep(1)
print(len(threading._shutdown_locks))

If I accumulate the Timer/Thread s and join them, then the _shutdown_locks will 
be cleared.

--
nosy: +odinsbane

___
Python tracker 

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



[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-03 Thread Mathias


New submission from Mathias :

Hi,

I think there is an issue with memory allocating with threading.Timer in 
3.8.0/3.8.1.

When I run the attached code in Python 3.7.3 I get a memory consumption of 
approx. 10 MB. If I run the same code with python 3.8.0 or 3.8.1, it keeps 
consuming memory (several hundreds of MB). 

I've attached 3 images where I run the attached script under mprof.

By inspect of the output from tracemalloc, I can see that 
/usr/lib/python3.8/threading.py:908 keeps allocating memory.

I have tested this with python 3.8.0 from ubuntu 16.04 repository and python 
3.8.1 from source. Both versions suffers from the memory consumption issue.

--
components: Library (Lib)
files: images_code.tar
messages: 359239
nosy: mneerup
priority: normal
severity: normal
status: open
title: Threading.timer leaks memory in 3.8.0/3.8.1
versions: Python 3.8
Added file: https://bugs.python.org/file48825/images_code.tar

___
Python tracker 

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



[issue39193] Out-of-bound write in ceval.c:_PyEval_EvalFrameDefault

2020-01-03 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I concur with Antoine, the interpreter does not have any contract around 
crafting incorrect bytecode and evaluating it (and it will not since by 
definition the bytecode created by the interpreter is (should) be correct and 
any extra check in this code path will impact performance notably). 

I also have to say that I struggle to understand how to reproduce this or what 
is exactly the problem from your text and the files you attach.

Closing this as "not a bug". Feel free to re-open if you think we are missing 
something else.

--
nosy: +pablogsal
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



[issue39193] Out-of-bound write in ceval.c:_PyEval_EvalFrameDefault

2020-01-03 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

I don't think so. I'll let other confirm.

--
nosy: +christian.heimes, vstinner

___
Python tracker 

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



[issue39200] Inaccurate TypeError message for `range` without argument

2020-01-03 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue39200] Inaccurate TypeError message for `range` without argument

2020-01-03 Thread Julien Férard

New submission from Julien Férard :

When passing no argument to `range`, the error message states that (exactly) 
one argument is expected.

Actual:

Python 3.9.0a0 (heads/master:d395209653, Jan  3 2020, 11:37:03)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> range()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: range expected 1 argument, got 0

Expected message:

TypeError: range expected at least 1 argument, got 0

(See for instance:

>>> eval()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: eval expected at least 1 argument, got 0
)

--
components: Interpreter Core
messages: 359236
nosy: jferard
priority: normal
severity: normal
status: open
title: Inaccurate TypeError message for `range` without argument
type: enhancement
versions: Python 3.5, 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



[issue39199] Improve the AST documentation

2020-01-03 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue39199] Improve the AST documentation

2020-01-03 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

The AST docs need some love as they can be a bit obscure to someone new to the 
module. Improvements to be considered in this issue:

* Document all available nodes (as of 3.8 and not deprecated ones). This helps 
to know what classes to consider when implementing methods for the visitors.

* Add some short practical examples for the visitors: one to query an AST and 
another to modify it.

--
assignee: docs@python
components: Documentation
messages: 359235
nosy: docs@python, pablogsal
priority: normal
severity: normal
status: open
title: Improve the AST documentation
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



[issue38532] Missing decrefs in the _ctypes module

2020-01-03 Thread Thomas Wouters


Change by Thomas Wouters :


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



[issue38532] Missing decrefs in the _ctypes module

2020-01-03 Thread Thomas Wouters


Thomas Wouters  added the comment:


New changeset aa3efea9c5f4d25afc3fa4cfd5e6d789943893c9 by T. Wouters (Miss 
Islington (bot)) in branch '3.8':
bpo-38532: Add missing decrefs in PyCFuncPtr_FromDll() (GH-17811)
https://github.com/python/cpython/commit/aa3efea9c5f4d25afc3fa4cfd5e6d789943893c9


--

___
Python tracker 

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



[issue38532] Missing decrefs in the _ctypes module

2020-01-03 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17238
pull_request: https://github.com/python/cpython/pull/17811

___
Python tracker 

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



[issue38532] Missing decrefs in the _ctypes module

2020-01-03 Thread Thomas Wouters


Thomas Wouters  added the comment:


New changeset e02ab59fdffa0bb841182c30ef1355c89578d945 by T. Wouters (Zackery 
Spytz) in branch 'master':
bpo-38532: Add missing decrefs in PyCFuncPtr_FromDll() (GH-16857)
https://github.com/python/cpython/commit/e02ab59fdffa0bb841182c30ef1355c89578d945


--
nosy: +twouters

___
Python tracker 

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



[issue39193] Out-of-bound write in ceval.c:_PyEval_EvalFrameDefault

2020-01-03 Thread ggbang


ggbang  added the comment:

hello, if a crafting deliberately incorrect bytecode could control the eip of 
Python interpreter, it's the scope to fix? thx.

--

___
Python tracker 

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



[issue27973] urllib.urlretrieve() fails on second ftp transfer

2020-01-03 Thread Senthil Kumaran


Senthil Kumaran  added the comment:

Sorry, I have updated it now: https://github.com/python/cpython/pull/17774

(I had pushed to a different branch earlier and it didn't reflect in my PR)

--

___
Python tracker 

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



[issue39193] Out-of-bound write in ceval.c:_PyEval_EvalFrameDefault

2020-01-03 Thread Antoine Pitrou


Change by Antoine Pitrou :


--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue39193] Out-of-bound write in ceval.c:_PyEval_EvalFrameDefault

2020-01-03 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

It seems what you're saying is that one can crash Python by crafting 
deliberately incorrect bytecode.  If so, then I'm afraid it's something we 
won't consider fixing.

--
nosy: +pitrou

___
Python tracker 

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



[issue39183] Text divided in two strings due to wrong formatting

2020-01-03 Thread Rafael Fontenelle


Rafael Fontenelle  added the comment:

Fix confirmed, closing.

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