[issue25739] Add PAYLOAD_TOO_LARGE / URI_TOO_LONG (new name in RFC 7231)

2020-09-17 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
nosy: +ZackerySpytz
nosy_count: 2.0 -> 3.0
pull_requests: +21348
pull_request: https://github.com/python/cpython/pull/22295

___
Python tracker 

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



[issue41791] mimetypes module does not recognize jp2 type

2020-09-17 Thread Radim Novotny

Radim Novotny  added the comment:

Hi Andrés,

tried again and the difference is between 3.7.4 and 3.7.5
The jp2 mimetype is read from /etc/apache2/mime.types (see knownfiles in 
mimetypes.py) so the mime type does not have to be in the mimetypes.py 
hardcoded, but in version 3.7.5 it stopped working. 

I think it's because of using _types_map_default instead of types_map in some 
places.

Since jp2 is an official mime type it should be added to the list but I also 
think we should try to identify the issue with _types_map_default.

Seems to be related to https://bugs.python.org/issue4963

I will have look if I can find out what was changed and why.

Cheers,
Radim

--

___
Python tracker 

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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-17 Thread Bug Reporter


Bug Reporter  added the comment:

I confirm that Tal Einat's workaround also works.

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



[issue40939] Remove the old parser

2020-09-17 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 5a8364780b7e881385f6fabcf072d599e80f51b8 by Terry Jan Reedy in 
branch 'master':
bpo-41808: Add What's New 3.9 entry missing from master (#22294)
https://github.com/python/cpython/commit/5a8364780b7e881385f6fabcf072d599e80f51b8


--

___
Python tracker 

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



[issue41808] Synchronize What's New in 3.9 master and 3.9 copies

2020-09-17 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 5a8364780b7e881385f6fabcf072d599e80f51b8 by Terry Jan Reedy in 
branch 'master':
bpo-41808: Add What's New 3.9 entry missing from master (#22294)
https://github.com/python/cpython/commit/5a8364780b7e881385f6fabcf072d599e80f51b8


--

___
Python tracker 

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



[issue41808] Synchronize What's New in 3.9 master and 3.9 copies

2020-09-17 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The 3.9 copy (only) of What'New 3.9, line 882 has duplicated words 'deprecated 
deprecated'.  I made a branch off of updated 3.9 to fix this and pushed to my 
fork, but github repeated refuses to make a PR (against 3.9), giving me the 
unicorn page instead.
https://github.com/terryjreedy/cpython/tree/3.9-dedup

If this were fixed, the two copies would be identical.

--
stage: patch review -> test needed

___
Python tracker 

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



[issue41808] Synchronize What's New in 3.9 master and 3.9 copies

2020-09-17 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +21346
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/22294

___
Python tracker 

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



[issue40939] Remove the old parser

2020-09-17 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +terry.reedy
nosy_count: 8.0 -> 9.0
pull_requests: +21347
pull_request: https://github.com/python/cpython/pull/22294

___
Python tracker 

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



[issue41808] Synchronize What's New in 3.9 master and 3.9 copies

2020-09-17 Thread Terry J. Reedy


New submission from Terry J. Reedy :

The 3.9 copy is 5 lines longer, meaning that after the b1 split, something was 
added to 3.9 directly instead of to master first and backported, or added to 
both and deleted from master.

Lukasz, is checking the two copies part of the final release process?

The 5 lines not in master are from PR-21012 and PR-21039 of issue 40939, by 
Lysandros and Pablo.  Please one of you verify that they should be added to 
master, as in the PR I will add, and not deleted from 3.9.
___
* The Public C API functions :c:func:`PyParser_SimpleParseStringFlags`,
  :c:func:`PyParser_SimpleParseStringFlagsFilename`,
  :c:func:`PyParser_SimpleParseFileFlags` and :c:func:`PyNode_Compile`
  are deprecated and will be removed in Python 3.10 together with the old 
parser.
___

--
assignee: docs@python
components: Documentation
messages: 377081
nosy: docs@python, lukasz.langa, lys.nikolaou, pablogsal, terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: Synchronize What's New in 3.9 master and 3.9 copies
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



[issue41807] Warnings when installing Linter on VS code on Linux and Windows.

2020-09-17 Thread zamunda


Change by zamunda :


--
nosy: +Marcus.Smith, dstufft, ncoghlan, pradyunsg

___
Python tracker 

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



[issue41807] Warnings when installing Linter on VS code on Linux and Windows.

2020-09-17 Thread zamunda


Change by zamunda :


--
nosy: +paul.moore, steve.dower, tim.golden, zach.ware, zamunda

___
Python tracker 

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



[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2020-09-17 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



[issue37328] remove deprecated HTMLParser.unescape

2020-09-17 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 4daeb9eec294f73a5811ef6ab3a0f8e61174a24c by Terry Jan Reedy in 
branch '3.9':
[3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)
https://github.com/python/cpython/commit/4daeb9eec294f73a5811ef6ab3a0f8e61174a24c


--

___
Python tracker 

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



[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2020-09-17 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 4daeb9eec294f73a5811ef6ab3a0f8e61174a24c by Terry Jan Reedy in 
branch '3.9':
[3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)
https://github.com/python/cpython/commit/4daeb9eec294f73a5811ef6ab3a0f8e61174a24c


--

___
Python tracker 

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



[issue41807] Warnings when installing Linter on VS code on Linux and Windows.

2020-09-17 Thread zamunda


Change by zamunda :


--
nosy: +admin2, eric.smith -zamunda

___
Python tracker 

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



[issue41803] Robots.txt

2020-09-17 Thread Eric V. Smith


Change by Eric V. Smith :


--
status: open -> pending

___
Python tracker 

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



[issue41807] Warnings when installing Linter on VS code on Linux and Windows.

2020-09-17 Thread zamunda


New submission from zamunda :

nstalled VS code, installed Python extension and when it loaded a pop up showed 
"Linter is not available" or something like that. Press Install, choose linter 
or never show again options.
Pressed Install - and it loaded the code to install it. It installed some stuff 
but there are errors about Path or something. See in the screenshot.
I've never had such Warnings before.

When I installed Python (on my system Windows) I put a checkmark on Add to 
Path, so it's not the problem.

Then I moved to Linux hoping it will work better and without warnings. Same 
Warining there too.

I guess there is a problem with python3-pip or something.

--
components: Installation
files: 93283029-5dfbc880-f7d8-11ea-8552-fa5ee1e1d924.png
messages: 377078
nosy: zamunda
priority: normal
severity: normal
status: open
title: Warnings when installing Linter on VS code on Linux and Windows.
type: behavior
versions: Python 3.8
Added file: 
https://bugs.python.org/file49462/93283029-5dfbc880-f7d8-11ea-8552-fa5ee1e1d924.png

___
Python tracker 

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



[issue37328] remove deprecated HTMLParser.unescape

2020-09-17 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +terry.reedy
nosy_count: 3.0 -> 4.0
pull_requests: +21345
pull_request: https://github.com/python/cpython/pull/22293

___
Python tracker 

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



[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2020-09-17 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +21344
pull_request: https://github.com/python/cpython/pull/22293

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-17 Thread Yury Selivanov


Yury Selivanov  added the comment:

> Does it sound correct?

It does, but given the amount of back and forth on this, I'd wait for Serhiy 
and Stefan to confirm if they're OK.

IMO the `PyIter_Send` name is OK (given how generic the implementation will be) 
and returning an enum, while a tad unconventional for the C API is way more 
convenient for the developer.

--

___
Python tracker 

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



[issue33813] Update overdue 'Deprecated ... removed in 3.x' messages

2020-09-17 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

This is definitely moot as the method was removed in #37328 (rather than in 
#27032).  Thanks for catching this.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> remove deprecated HTMLParser.unescape

___
Python tracker 

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



[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2020-09-17 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The backport to 3.9 is still pending.  The bot claims that there is a merge 
conflict.  This should not happen because What's New in 3.9 should be identical 
in master and 3.9.  My guess is that someone only changed it in 3.9, though 
another change in master might not have been backported.  I will try to 
determine the problem.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue41791] mimetypes module does not recognize jp2 type

2020-09-17 Thread Andrés Delfino

Andrés Delfino  added the comment:

Hi, Radim!

I've tested with 3.7.8 and got (None, None). I'm curious on how you got that 
'image/jp2' output.

It seems jp2 was never supported by looking into the git history of 
Lib/mimetypes.py.

Would you like to open a PR to support it? :)

--
nosy: +adelfino

___
Python tracker 

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



[issue33561] Add .tostring() method to xml.etree.ElementTree.Element

2020-09-17 Thread Irit Katriel


Irit Katriel  added the comment:

Should this issue be closed as 'rejected', or is there anything left to do?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41805] types.GenericAlias and types.Union have no documentation

2020-09-17 Thread Andrés Delfino

Andrés Delfino  added the comment:

Hi, Patrick! Yes! It would be great if you could open a PR to document those 
new types.

The documentation of types.Union should go to master only, and the 
documentation of types.GenericAlias to both master and 3.9, so two PRs should 
me opened to address this issues separately.

The backporting (yes! that's the word) to 3.9 will be (fingers-crossed) 
automatic thanks to Mariatta's https://github.com/python/miss-islington

--
nosy: +adelfino

___
Python tracker 

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



[issue34422] __name__ not available for classes in typing module

2020-09-17 Thread Irit Katriel


Change by Irit Katriel :


--
assignee:  -> docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python
versions: +Python 3.10, Python 3.9 -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



[issue34514] assertEqual doesn't use maxDiff when comparing dictionaries

2020-09-17 Thread Irit Katriel


Irit Katriel  added the comment:

I think this can be closed as not a bug, unless Victor can clarify with an 
example script why there is an issue.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue33813] Update overdue 'Deprecated ... removed in 3.x' messages

2020-09-17 Thread Irit Katriel


Irit Katriel  added the comment:

This looks like a duplicate of issue27032 so I think it can be closed now.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41800] Python installation fails when run under system account if there is already an existing installation on the system already

2020-09-17 Thread Steve Dower


Steve Dower  added the comment:

Yeah, this whole issue is basically because Burn (our installer tool) won't do 
per-machine bundle registration even when it's only installing per-machine 
packages. So the install block that it would normally throw up  fails if you 
use a different user account to install it the second time.

> (Python gets installed as a step in one of our installers)

I'm intrigued by this - if Python is a dependency of your application, it's 
better to repackage it yourself and install to your own directory. The 
installer is basically there for end-users, but if you're not doing an end-user 
kind of install there's really nothing gained.

This whole scenario is fairly under-developed though. It comes up quite 
infrequently, so we don't have any really convenient instructions on how to go 
about it. Doesn't mean we can't help, but because we don't have a clear idea of 
what you may be trying to achieve, we'd like to hear about it before telling 
you how to approach this kind of thing.

--
nosy: +steve.dower
versions: +Python 3.10, Python 3.9 -Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue29099] sqlite3 timestamp converter cannot handle timezone

2020-09-17 Thread Hassanbot


Hassanbot  added the comment:

This still isn't fixed as of 3.8 (or in master I think).

I can understand why you wouldn't want to allow serializing and deserializing 
time zones, since tzinfo objects cannot be accurately serialized with a simple 
UTC offset, but you should at least get an error when trying to insert an aware 
object. Anything is better than it is now, where you get no warning or error 
when inserting the object, and get a hard to interpret error ("invalid literal 
for int() with base 10") when trying to retrieve it.

For deserialization, the datetime class now (since 3.7) includes a 
fromisoformat() method that could be used as a counterpart to the isoformat() 
method used when serializing. At least it would be consistent then.

--
nosy: +hassanbot
versions: +Python 3.8 -Python 3.7

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-17 Thread Vladimir Matveev


Vladimir Matveev  added the comment:

so to summarize:

Proposed function signature:
```
PySendResult PyIter_Send(PyObject *obj, PyObject *arg, PyObject **result);
```

For generators/coroutines function will delegate to specialized implementation 
that does not raise StopIteration exception
For types that provide `tp_iternext` if arg is Py_None function call invoke 
`Py_TYPE(obj)->tp_iternext(obj)`
For all other cases function will try to call `send` method

Regarding of the case function will not raise StopIteration and will always 
return pair status/result.

Does it sound correct?

--

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-17 Thread Yury Selivanov


Yury Selivanov  added the comment:

> I guess `PyIter_Send` would imply that this function should work for all 
> inputs (like in https://bugs.python.org/msg377007) which also sounds 
> reasonable.

I like `PyIter_Send` (and why I initially proposed it myself) because it will 
also work with the "send" slot defined on some types if we end up adding one.

--

___
Python tracker 

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



[issue41806] socket methods with timeout take very slow path on Windows

2020-09-17 Thread Steve Dower


New submission from Steve Dower :

When a socket object has a non-zero timeout, all send/recv/etc. calls are 
preceded by a select() call before making the actual call. If there is no 
timeout, the select call is skipped.

It appears that on Windows, select() will block until the previous operation 
has completed, even if the next one would reliably succeed. For example, 
http.client uses a default blocksize of 8192 bytes (which is _really_ small for 
2020, but probably not for 2002 when it was set - can we just increase it?), 
which will break up a stream into many little chunks.

With no timeout set: send() is called repeatedly and Windows buffers blocks 
internally, resulting in the actual sends being bigger (as seen with a network 
trace - they'd range from 8KB-50KB).

With a timeout set: select() is called and waits for the previous send() to 
complete, then calls the next send(). This results in every single send being 
exactly 8KB.

This latter case also results in every operation becoming essentially 
synchronous, instead of picking up some implied parallelism in the OS and 
network driver. (Yes, increasing the block size in the above example also 
helps, but doesn't prevent the issue in the first place, nor does it help with 
other cases.)

Has anyone ever looked into alternate ways to have the timeout work here? Such 
as SO_SNDTIMEO? I don't want to force through a full redesign here, but getting 
the select() call out of the main path here seems like an easy win.

Would anyone like to take a look? I'm happy to help mentor someone through a 
patch (as long as you're familiar with networking/sockets already).

--
components: Library (Lib), Windows
messages: 377065
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: socket methods with timeout take very slow path on Windows
type: performance
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

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



[issue41805] types.GenericAlias and types.Union have no documentation

2020-09-17 Thread Patrick Reader


New submission from Patrick Reader :

See title.

For reference:

`GenericAlias` was added by Guido van Rossum  in commit 
48b069a003ba6c684a9ba78493fbbec5e89f10b8 "bpo-39481: Implementation for [PEP 
585](https://www.python.org/dev/peps/pep-0585/) (#18239)"

`Union` was added by Maggi Moss  in commit 
1b4552c5e8e925f24c15f707050f22c977171125 "bpo-41428: Implementation for [PEP 
604](https://www.python.org/dev/peps/pep-0604/) (GH-21515)"

I can do a PR which would need backporting (is that the right word?) to 3.9 at 
least for `GenericAlias`.

--
assignee: docs@python
components: Documentation
messages: 377064
nosy: docs@python, pxeger
priority: normal
severity: normal
status: open
title: types.GenericAlias and types.Union have no documentation
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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-17 Thread Vladimir Matveev


Vladimir Matveev  added the comment:

I guess `PyIter_Send` would imply that this function should work for all inputs 
(like in https://bugs.python.org/msg377007) which also sounds reasonable.

--

___
Python tracker 

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



[issue41794] Memory leak in asyncio server

2020-09-17 Thread Bale


Bale  added the comment:

Ok since nobody is replying, the bug seems to be that if the asyncio server 
sends data, and I do not use s.recv() to clear the buffer, and I use s.close() 
instead, a reference to handle_echo is kept and is never deleted.

Using gc.collect() does delete the leaked object. 

The socket that you use to connect to the server seems to also determine 
whether the bug works, like how I can not do it when I create the connection on 
my windows computer, but the bug is triggered when I do it on my ubuntu server. 
I should also mention that I am running the asyncio server on my ubuntu server, 
on python 3.8.

Here is output of the bug happening.
FROM CLIENT ON MY WINDOWS COMPUTER ON PY3.8:
>>> s = socket.socket()
>>> s.connect(("x.x.x.x", ))
>>> s.send(b"test")
4
# Wait for server to send data, but dont use s.recv(), just assume
>>> s.close()
Server output:
Received 'test' from ('x.x.x.x', 42241)
Send: 'test'
connection lost
DELETED OBJECT

After connection was lost, DELETED OBJECT was printed, so everything worked 
fine. But when I create the socket in a different environment, such as on 
ubuntu python 3.8:
Client side code (exact same as before):
>>> s = socket.socket()
>>> s.connect(("x.x.x.x", ))
>>> s.send(b"test")
4
# Wait for server to send data, but dont use s.recv(), just assume
>>> s.close()
Server side output:
Received 'test' from ('x.x.x.x', 42249)
Send: 'test'
connection lost

We can see that connection lost was printed, but DELETED OBJECT was not. This 
is evidence that there is a memory leak bug with asyncio.start_server

--

___
Python tracker 

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



[issue41797] PyModule_GetState doesn't work with LazyLoader

2020-09-17 Thread hai shi


Change by hai shi :


--
nosy: +shihai1991

___
Python tracker 

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



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-09-17 Thread STINNER Victor


STINNER Victor  added the comment:

I managed to reproduce the failure in 50 seconds using the command:

$ ./python -m test test_epoll -F -v -j20
(...)
0:00:49 load avg: 4.81 [257/1] test_epoll failed
test_add (test.test_epoll.TestEPoll) ... ok
test_badcreate (test.test_epoll.TestEPoll) ... ok
test_close (test.test_epoll.TestEPoll) ... ok
test_context_manager (test.test_epoll.TestEPoll) ... ok
test_control_and_wait (test.test_epoll.TestEPoll) ... FAIL
test_create (test.test_epoll.TestEPoll) ... ok
test_errors (test.test_epoll.TestEPoll) ... ok
test_fd_non_inheritable (test.test_epoll.TestEPoll) ... ok
test_fromfd (test.test_epoll.TestEPoll) ... ok
test_unregister_closed (test.test_epoll.TestEPoll) ... ok

==
FAIL: test_control_and_wait (test.test_epoll.TestEPoll)
--
Traceback (most recent call last):
  File "/home/vstinner/python/master/Lib/test/test_epoll.py", line 199, in 
test_control_and_wait
self.assertEqual(events, expected)
AssertionError: Lists differ: [(5, 5)] != [(4, 5), (5, 5)]

First differing element 0:
(5, 5)
(4, 5)

Second list contains 1 additional elements.
First extra element 1:
(5, 5)

- [(5, 5)]
+ [(4, 5), (5, 5)]

--

Ran 10 tests in 2.120s

FAILED (failures=1)
test test_epoll failed
(...)
Total duration: 49.3 sec
Tests result: FAILURE

--

___
Python tracker 

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



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-09-17 Thread STINNER Victor


STINNER Victor  added the comment:

Code of the test with a comment on the line which fails:

def test_control_and_wait(self):
client, server = self._connected_pair()

ep = select.epoll(16)
ep.register(server.fileno(),
select.EPOLLIN | select.EPOLLOUT | select.EPOLLET)
ep.register(client.fileno(),
select.EPOLLIN | select.EPOLLOUT | select.EPOLLET)

now = time.monotonic()
events = ep.poll(1, 4)
then = time.monotonic()
self.assertFalse(then - now > 0.1, then - now)

events.sort()
expected = [(client.fileno(), select.EPOLLOUT),
(server.fileno(), select.EPOLLOUT)]
expected.sort()

self.assertEqual(events, expected)

events = ep.poll(timeout=2.1, maxevents=4)
self.assertFalse(events)

client.send(b"Hello!")
server.send(b"world!!!")

now = time.monotonic()
events = ep.poll(1, 4)
then = time.monotonic()
self.assertFalse(then - now > 0.01)

events.sort()
expected = [(client.fileno(), select.EPOLLIN | select.EPOLLOUT),
(server.fileno(), select.EPOLLIN | select.EPOLLOUT)]
expected.sort()

self.assertEqual(events, expected) # <== FAIL HERE

ep.unregister(client.fileno())
ep.modify(server.fileno(), select.EPOLLOUT)
now = time.monotonic()
events = ep.poll(1, 4)
then = time.monotonic()
self.assertFalse(then - now > 0.01)

expected = [(server.fileno(), select.EPOLLOUT)]
self.assertEqual(events, expected)

--

___
Python tracker 

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



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-09-17 Thread STINNER Victor


New submission from STINNER Victor :

test_epoll.test_control_and_wait() failed once on aarch64 RHEL8 Refleaks 3.9:
https://buildbot.python.org/all/#/builders/247/builds/32

This buildbot runs test_epoll 6 times in a row and the system load was quite 
high (10.39).

0:03:01 load avg: 10.39 [ 97/425/1] test_epoll failed -- running: 
test_multiprocessing_fork (3 min), test_gdb (46.3 sec), test_peg_generator (1 
min 25 sec), test_capi (2 min 26 sec), test_weakref (2 min 1 sec), 
test_statistics (1 min 6 sec), test_multiprocessing_spawn (2 min 44 sec), 
test_io (1 min 53 sec)
beginning 6 repetitions
123456
...test test_epoll failed -- Traceback (most recent call last):
  File 
"/home/buildbot/buildarea/3.9.cstratak-RHEL8-aarch64.refleak/build/Lib/test/test_epoll.py",
 line 199, in test_control_and_wait
self.assertEqual(events, expected)
AssertionError: Lists differ: [(5, 5)] != [(4, 5), (5, 5)]

First differing element 0:
(5, 5)
(4, 5)

Second list contains 1 additional elements.
First extra element 1:
(5, 5)

- [(5, 5)]
+ [(4, 5), (5, 5)]

--
components: Tests
messages: 377059
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 
Refleaks 3.9
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



[issue41798] [C API] Revisit usage of the PyCapsule C API with multi-phase initialization API

2020-09-17 Thread hai shi


Change by hai shi :


--
nosy: +shihai1991

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2020-09-17 Thread amiir mascud


amiir mascud  added the comment:

Can you share the robot file that you are using for your website?
I am using the default robot file for my site https://meilleurdumoniteur.fr/

--
nosy: +amiir.mascud

___
Python tracker 

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



[issue41803] Robots.txt

2020-09-17 Thread Eric V. Smith


Eric V. Smith  added the comment:

It's not clear what bug you're describing, or how it relates to Python. Can you 
provide more information, and show what behavior your seeing, and what behavior 
you're expecting?

--
nosy: +eric.smith

___
Python tracker 

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



[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2020-09-17 Thread Irit Katriel


Irit Katriel  added the comment:

This issue can be closed now.

--

___
Python tracker 

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



[issue41803] Robots.txt

2020-09-17 Thread Skyreka Agence Web


New submission from Skyreka Agence Web :

I can't  documentation about it, but all of the robots.txt checkers I find 
behave like this. You can test on this site: http://www.skyreka.com/robots.txt, 
I believe that this is how it's implemented now in most parsers ?

--
messages: 377055
nosy: admin2
priority: normal
severity: normal
status: open
title: Robots.txt

___
Python tracker 

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



[issue41802] Missing documentation for 'PyDict_DelItem' behavior

2020-09-17 Thread Campbell Barton


Campbell Barton  added the comment:

Edit:

When calling 'PyDict_DelItem' on a key that isn't in the dictionary, a 
'KeyError' is raised. This is not documented.

>From reading the current documentation, it only seems as if an error is raised 
>if the key can't be hashed.

--

___
Python tracker 

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



[issue41802] Missing documentation for 'PyDict_DelItem' behavior

2020-09-17 Thread Campbell Barton


New submission from Campbell Barton :

When calling 'PyDict_DelItem' on a key that isn't in the hash a KeyError is 
raised. This is not documented.

--
components: C API
messages: 377053
nosy: ideasman42
priority: normal
severity: normal
status: open
title: Missing documentation for 'PyDict_DelItem' behavior
versions: Python 3.10, 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



[issue41801] 23 tests failed for 3.9.0b2-64 installed on Windows 10

2020-09-17 Thread Terry J. Reedy


New submission from Terry J. Reedy :

Win10, master repository 32-debug build: test_locale and test__locale fail as 
they have for a year.  test_compileall test_asyncio failed as they have before, 
but not a few weels ago.

*** PermissionError: [WinError 5] Access is denied: 
'f:\\dev\\3xlib\\__pycache__\\quopri.cpython-310.pyc.39387352' -> 
'f:\\dev\\3xlib\\__pycache__\\quopri.cpython-310.pyc'

test test_asyncio failed -- Traceback (most recent call last):
  File "f:\dev\3x\lib\test\test_asyncio\test_sendfile.py", line 464, in 
test_sendfile_close_peer_in_the_middle_of_receiving
self.assertTrue(1024 <= self.file.tell() < len(self.DATA),
AssertionError: False is not true : 131088
 

Installed 64-bit  3.9.0b2 has 19 more (same after 'repair'):

12 failed with 
ModuleNotFoundError: No module named '_testinternalcapi'

test_buffer test_capi test_deque test_fstring test_grammar
test_keyword test_memoryio test_parser test_string_literals
test_struct test_syntax test_traceback

7 failed otherwise, usually with multiple errors

test_array test_exceptions test_flufl test_itertools 
test_ordered_dict test_pickle test_sys test_xml_etree_c

--
components: Installation, Windows
messages: 377052
nosy: lukasz.langa, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: 23 tests failed for 3.9.0b2-64 installed on Windows 10
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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-17 Thread Mark Shannon


Mark Shannon  added the comment:

I agree with Serhiy, that `PyGen_` is a bad prefix.

Unless a function takes generator objects and *only* generators objects, then 
it shouldn't have a `PyGen` prefix.

The API function is the C equivalent of obj.send(val).
The first parameter is an object.

Coroutines do not inherit from generators.
That the the C implementations are so coupled is an unfortunate historical 
accident, and may well be changed.

Regardless of how this is implemented internally, any API function's signature 
should reflect the equivalent Python code.
And please use an enum, not an int, as the return value. It's a huge boon for 
readability.

I would suggest:
`PySendResult PyIter_Send(PyObject *obj, PyObject *arg, PyObject **result);`

--

___
Python tracker 

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



[issue39452] Improve the __main__ module documentation

2020-09-17 Thread Géry

Géry  added the comment:

I agree with you Terry. Another thing that bothers me: in the current document, 
the __main__ module is reduced to its environment (aka context or dictionary), 
whereas a module object has other important attributes such as its code.

So how about adding the following changes?

- :mod:`__main__` --- Top-level code environment
- ==
+ :mod:`__main__` --- Startup module
+ ==

-:synopsis: The environment where top-level code is run.
+:synopsis: The first module from which the code is executed at startup.

- ``'__main__'`` is the name of the environment where top-level code is run.
+ ``'__main__'`` is the name of the startup module.

- A module can discover whether or not it is running in the main environment
+ A module can discover whether or not it is initialized as the :mod:`__main__` 
module

--

___
Python tracker 

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



[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2020-09-17 Thread Tal Einat


Tal Einat  added the comment:

Ping?

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

___
Python tracker 

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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-17 Thread Tal Einat


Change by Tal Einat :


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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-17 Thread Tal Einat


Tal Einat  added the comment:

I just ran into this too on Ubuntu 20.04.

I don't recommend changing /etc/ssl/openssl.cnf. Instead, make a local copy, 
for example at $HOME/cpython-dev-openssl.cnf, with the changes suggested by 
Vladyslav Bondar. Then run the tests with:

OPENSSL_CONF=$HOME/openssl-cpython-dev.cnf ./python -m test

--
nosy: +taleinat

___
Python tracker 

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



[issue41662] Bugs in binding parameters in sqlite3

2020-09-17 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



[issue37328] remove deprecated HTMLParser.unescape

2020-09-17 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset a33f2c2bae759fc9d06e1c032fd2026135f2df45 by Serhiy Storchaka in 
branch 'master':
bpo-27032, bpo-37328: Document removing HTMLParser.unescape(). (GH-22288)
https://github.com/python/cpython/commit/a33f2c2bae759fc9d06e1c032fd2026135f2df45


--

___
Python tracker 

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



[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2020-09-17 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset a33f2c2bae759fc9d06e1c032fd2026135f2df45 by Serhiy Storchaka in 
branch 'master':
bpo-27032, bpo-37328: Document removing HTMLParser.unescape(). (GH-22288)
https://github.com/python/cpython/commit/a33f2c2bae759fc9d06e1c032fd2026135f2df45


--

___
Python tracker 

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



[issue37105] Add deprecated-remove information on stream doc

2020-09-17 Thread Irit Katriel


Irit Katriel  added the comment:

I think this issue can be closed because the deprecation info was added. If 
it's staying open for the actual removal in 3.10, should the title change 
accordingly?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue32218] add __iter__ to enum.Flag members

2020-09-17 Thread Ethan Furman


Change by Ethan Furman :


--
components: +Library (Lib)
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10 -Python 3.8

___
Python tracker 

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



[issue41800] Python installation fails when run under system account if there is already an existing installation on the system already

2020-09-17 Thread Jurko Gospodnetić

Change by Jurko Gospodnetić :


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



[issue41800] Python installation fails when run under system account if there is already an existing installation on the system already

2020-09-17 Thread Jurko Gospodnetić

Change by Jurko Gospodnetić :


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



[issue37529] Mimetype module duplicates

2020-09-17 Thread Danny Lin


Danny Lin  added the comment:

It doesn't seem so... In Python 3.8.5 this code is still seen in mimetypes.py 
(line 492-504):

'.bmp': 'image/bmp',
'.gif': 'image/gif',
'.ief': 'image/ief',
'.jpg': 'image/jpeg',
'.jpe': 'image/jpeg',
'.jpeg'   : 'image/jpeg',
'.png': 'image/png',
'.svg': 'image/svg+xml',
'.tiff'   : 'image/tiff',
'.tif': 'image/tiff',
'.ico': 'image/vnd.microsoft.icon',
'.ras': 'image/x-cmu-raster',
'.bmp': 'image/x-ms-bmp',

--
nosy: +danny87105

___
Python tracker 

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



[issue41800] Python installation fails when run under system account if there is already an existing installation on the system already

2020-09-17 Thread Jurko Gospodnetić

Jurko Gospodnetić  added the comment:

Some other potentially related issues:
- https://bugs.python.org/issue25164
- https://bugs.python.org/issue32966
- https://bugs.python.org/issue37756

And some other related links:
- 
https://docs.microsoft.com/en-us/troubleshoot/windows-server/application-management/msi-installation-error-1603
- 
https://superuser.com/questions/1238473/cant-uninstall-python-3-6-on-windows-10
- https://www.programmersought.com/article/41342430755/
- https://www.programmersought.com/article/41342430755/

And I'm attaching some of the Python installer logs I found from one of the 
debugging sessions researching this problem. It contains logs from a  few 
installation runs and you can see there from the first log file in each batch 
and from the names of the other log files that the initial two failed while the 
last one was presumably done after an uninstall and worked.

--
Added file: https://bugs.python.org/file49461/Python 3.8.3 
(32-bit)_20200723053832.7z

___
Python tracker 

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



[issue41662] Bugs in binding parameters in sqlite3

2020-09-17 Thread miss-islington


miss-islington  added the comment:


New changeset f76a3889d1fc6c5514323866a047b642c6da4e9b by Miss Islington (bot) 
in branch '3.9':
bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)
https://github.com/python/cpython/commit/f76a3889d1fc6c5514323866a047b642c6da4e9b


--

___
Python tracker 

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



[issue29033] Windows Python installer rolls back when run under SYSTEM account (SCCM)

2020-09-17 Thread Jurko Gospodnetić

Jurko Gospodnetić  added the comment:

This seems related to https://bugs.python.org/issue41800.

--
nosy: +Jurko.Gospodnetić

___
Python tracker 

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



[issue41800] Python installation fails when run under system account if there is already an existing installation on the system already

2020-09-17 Thread Jurko Gospodnetić

Jurko Gospodnetić  added the comment:

This also seems related to https://bugs.python.org/issue29033.

--

___
Python tracker 

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



[issue41800] Python installation fails when run under system account if there is already an existing installation on the system already

2020-09-17 Thread Jurko Gospodnetić

New submission from Jurko Gospodnetić :

This issue seems to affect all Python 3 Windows installers.

Reproduced on:
- various Windows 10 systems
- one Windows 8 system
- one Windows 7 system
- all tested Python 3+ installers up to and including 3.8.5

Scenario:
1. there is already an existing Python 3+ installation on a Windows system, 
installed for all users
2. you run a Python 3+ installer (any version, even the one matching the 
already installed Python version) under the `systemprofile` Windows user 
account, targeting all users and the same target folder that the currently 
existing installation is located in
- example how to do this manually:
- using the Microsoft/SysInternals `psexec` utility to open a command 
prompt running under the `systemprofile` Windows user account:
  `psexec -i -s cmd`
- run the Python installer from that command-prompt, in our case it was the 
following command:
  `python-3.8.5.exe /passive TargetDir=C:\Python38 InstallAllUsers=1 
PrependPath=1`
3. result will be any of the following at random:
- failed installation with different Windows error codes, including totally 
opaque 0x80070643 `Fatal Error during installation`
- successful installation
- seemingly successful installation that does not really install all the Python 
components, e.g. the whole `Lib` folder may end up being empty
- seemingly successful installation that then can not be uninstalled as the 
uninstaller reports that it can not find the existing installation on the system
  - this effect can often, but not always, be fixed by rerunning the installer 
and then running the uninstaller
- you can run the uninstaller from the command-line using something like:
  `python-3.8.5.exe /uninstall /passive`

Additional notes on produced results:
- each installation seems to generate differently named log files in the 
`C:\Windows\Temp` folder, i.e. the `systemprofile` user account's `%TEMP%` 
folder
- the log file names indicate whether each specific component is being 
installed for the current-user or all-user variants, and those seem to be 
chosen at random in our problematic scenario
- it seems like the components whose log files are marked as being installed 
for the current user are not getting installed at all, or may possibly be 
getting installed to some other undisclosed location

The same does not occur if any of the following is true:
- if the installation is run from an regular end-user account
- if there is no Python currently installed on the system

A workaround we found in our case (Python gets installed as a step in one of 
our installers) is to basically do (uninstall, install) in a loop with some 
hand-crafted checking to see if the existing installation is ok (includes 
running some Python code + checking for some specific Python distribution files 
we've found to be missing in some scenarios).

--
components: Installation
messages: 377039
nosy: Jurko.Gospodnetić
priority: normal
severity: normal
status: open
title: Python installation fails when run under system account if there is 
already an existing installation on the system already
versions: Python 3.5

___
Python tracker 

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



[issue41662] Bugs in binding parameters in sqlite3

2020-09-17 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue41715] REDoS in c_analyzer

2020-09-17 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



[issue41662] Bugs in binding parameters in sqlite3

2020-09-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21343
pull_request: https://github.com/python/cpython/pull/22290

___
Python tracker 

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



[issue41662] Bugs in binding parameters in sqlite3

2020-09-17 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 0b419b791077414bbc011a412698ebb362b63761 by Serhiy Storchaka in 
branch 'master':
bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)
https://github.com/python/cpython/commit/0b419b791077414bbc011a412698ebb362b63761


--

___
Python tracker 

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



[issue41715] REDoS in c_analyzer

2020-09-17 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset dcfaa520c4638a67052a4ff4a2a820be68750ad7 by Serhiy Storchaka in 
branch 'master':
bpo-41715: Fix potential catastrofic backtracking in c_analyzer. (GH-22091)
https://github.com/python/cpython/commit/dcfaa520c4638a67052a4ff4a2a820be68750ad7


--

___
Python tracker 

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



[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2020-09-17 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It was already removed in issue37328. The only not applied part of the patch is 
adding a What's New entry.

--
nosy: +inada.naoki

___
Python tracker 

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



[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2020-09-17 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
versions: +Python 3.10, 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



[issue37328] remove deprecated HTMLParser.unescape

2020-09-17 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +serhiy.storchaka
nosy_count: 2.0 -> 3.0
pull_requests: +21341
pull_request: https://github.com/python/cpython/pull/22288

___
Python tracker 

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



[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2020-09-17 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +21340
pull_request: https://github.com/python/cpython/pull/22288

___
Python tracker 

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



[issue39452] Improve the __main__ module documentation

2020-09-17 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The main issue I have with the existing doc is its use of 'top-level' to mean 
the main, initial, startup module that first executes the user code for a 
python 'program'.  We routinely use 'top-level' instead for the global scope of 
a module.  Example: https://docs.python.org/3/glossary.html, 'qualified name' 
entry, line 2: "For top-level functions and classes, ..."  Within '__main__', 
some code is top-level, but class and function bodies are not.

But this does not have to be part of this PR.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue41761] multiprocessing.Queue prevents program exit when containing a reasonable amount of data

2020-09-17 Thread Dominik Schmid


Change by Dominik Schmid :


--
nosy: +davin, pitrou

___
Python tracker 

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