[issue44106] [sqlite3] don't use politicians in examples/docs

2021-05-11 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

Berker, the following files are not included by Doc/library/sqlite3.rst:

- Doc/includes/sqlite3/countcursors.py
- Doc/includes/sqlite3/createdb.py # never referenced by docs
- Doc/includes/sqlite3/execsql_fetchonerow.py
- Doc/includes/sqlite3/execsql_printall_1.py
- Doc/includes/sqlite3/parse_colnames.py
- Doc/includes/sqlite3/shared_cache.py
- Doc/includes/sqlite3/simple_tableprinter.py

All but createdb.py were referenced by doc/usage-guide.txt (pysqlite repo), 
which was deleted by pysqlite commit 64c9600 (2008-03-24) when pysqlite 
switched to Sphinx documentation.

Can I purge these in PR 26027, or do you want a separate issue/PR for this?

--

___
Python tracker 

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



[issue44106] [sqlite3] don't use politicians in examples/docs

2021-05-11 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

Ditto for Doc/includes/sqlite3/insert_more_people.py

--

___
Python tracker 

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



[issue44099] [c-api] Introduce a new slot in PyModuleDef to hold the classes

2021-05-11 Thread Shreyan Avigyan


Change by Shreyan Avigyan :


--
title: Introduce a new slot in PyModuleDef to hold the classes -> [c-api] 
Introduce a new slot in PyModuleDef to hold the classes

___
Python tracker 

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



[issue44105] tempfile.TemporaryDirectory deleted after sleep in threads

2021-05-11 Thread Colas Le Guernic


Colas Le Guernic  added the comment:

Actually, it has nothing to do with subprocess.run, replacing that line with 
sleep(random()) exhibits the same behavior.

--
title: tempfile.TemporaryDirectory deleted after call to subprocess.run in 
threads -> tempfile.TemporaryDirectory deleted after sleep in threads
Added file: https://bugs.python.org/file50036/mwe.py

___
Python tracker 

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



[issue44105] tempfile.TemporaryDirectory deleted after sleep in threads

2021-05-11 Thread Colas Le Guernic


Change by Colas Le Guernic :


--
versions: +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



[issue44105] tempfile.TemporaryDirectory deleted after sleep in threads

2021-05-11 Thread Colas Le Guernic


Colas Le Guernic  added the comment:

I guess this will be a `won't fix` as python3.8 is now in security-fix only 
mode.
I was misled by https://www.python.org/downloads/ that still indicates a bugfix 
maintenance status.

--

___
Python tracker 

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



[issue28708] Low FD_SETSIZE limit on Windows

2021-05-11 Thread Nicole Allen


Nicole Allen  added the comment:

Thanks for putting that all together. Besides for amazing digital marketing 
plans visit us now https://www.seobrisk.com/locations/seo-detroit/

--
nosy: +nicoleallen

___
Python tracker 

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



[issue40222] "Zero cost" exception handling

2021-05-11 Thread Mark Shannon


Mark Shannon  added the comment:

I know PyCode_NewWithPosOnlyArgs is declared as "PyAPI_FUNC" but that can't 
make it part of the ABI unless it has stable behavior.
It can't have stable behavior because its inputs are complex, undefined, have 
altered semantics and are interlinked in complex ways.

Passing the same arguments to PyCode_NewWithPosOnlyArgs for both 3.9 and 3.10 
will cause one or other version to crash (interpreter crash, not just program 
crash).


We need to stop adding "PyAPI_FUNC" to everything.
Adding a PyAPI_FUNC does not magically make for ABI compatibility, there is a 
lot more to it than that.

The only sane ways to construct a code object are to load it from disk, to 
compile an AST, or to use
codeobject.replace(). Any purported ABI compatibility claims are just 
misleading and a trap.


I can revert the API changes and add a new function, but I think that is 
dangerously misleading. A compilation error is preferable to an interpreter 
crash.

--

___
Python tracker 

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



[issue21501] docs: mmap example for use in documentation

2021-05-11 Thread Douwe Hoekstra


Douwe Hoekstra  added the comment:

Hi! I'd like to convert this to reST for the documentation. Additionally,
I think this example would benefit from additional explanation about how it 
functions.

--
nosy: +dhoekstra

___
Python tracker 

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



[issue36216] CVE-2019-9636: urlsplit does not handle NFKC normalization

2021-05-11 Thread Kubilay Kocak


Kubilay Kocak  added the comment:

Fix meta (not incl 2.7 which is no longer available to select).

--
components: +Unicode -FreeBSD
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



[issue44107] HTTPServer can't close http client completely

2021-05-11 Thread ueJone


New submission from ueJone <775844...@qq.com>:

# HTTP Server
from http.server import HTTPServer, SimpleHTTPRequestHandler  
 
port = 80  

httpd = HTTPServer(('', port), SimpleHTTPRequestHandler)
print("Starting simple_httpd on port: " + str(httpd.server_port))  
httpd.serve_forever()

#
HTTP client(192.168.1.8) close the socket when http request is done.But the 
http server(192.168.1.168) does't send 'TCP_FIN' message.

--
files: Dingtalk_20210511174335.jpg
messages: 393451
nosy: ueJone
priority: normal
severity: normal
status: open
title: HTTPServer can't close http client completely
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file50037/Dingtalk_20210511174335.jpg

___
Python tracker 

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



[issue44108] [sqlite3] normalise SQL quoted literals in sqlite3 test suite

2021-05-11 Thread Erlend E. Aasland


New submission from Erlend E. Aasland :

Most of the SQL statements in the sqlite3 test suite correctly uses single 
quote literals, except test_unicode_content in Lib/sqlite3/test/hooks.py, which 
uses double quote literals (not ANSI SQL compatible, IIRC). Adapting this test 
to also use single quote literals makes the sqlite3 test suite compatible with 
SQLite libraries compiled with SQLITE_DQS=0.


See also:
- https://sqlite.org/compile.html
- https://sqlite.org/quirks.html#dblquote

--
components: Tests
keywords: easy
messages: 393452
nosy: berker.peksag, erlendaasland
priority: low
severity: normal
status: open
title: [sqlite3] normalise SQL quoted literals in sqlite3 test suite
type: enhancement
versions: Python 3.11

___
Python tracker 

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



[issue44108] [sqlite3] normalise SQL quoted literals in sqlite3 test suite

2021-05-11 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


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

___
Python tracker 

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



[issue44108] [sqlite3] normalise SQL quoted literals in sqlite3 test suite

2021-05-11 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

Digression: test_unicode_content should be named test_trace_unicode_content, in 
order to express the purpose of the test more clearly, should it fail.

--

___
Python tracker 

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



[issue44109] missing dataclass decorator in match-statement example

2021-05-11 Thread Ahmet Burak


New submission from Ahmet Burak :

Using Point class as in the documentation example, raises TypeError: Point() 
takes no arguments
https://docs.python.org/3.10/whatsnew/3.10.html#patterns-and-classes

Also there is same example in the PEP 636's latests parts, Point class used 
with dataclass decorator and works perfectly.
https://www.python.org/dev/peps/pep-0636/

--
assignee: docs@python
components: Documentation
messages: 393454
nosy: ahmetveburak, docs@python
priority: normal
severity: normal
status: open
title: missing dataclass decorator in match-statement example
type: behavior
versions: Python 3.10

___
Python tracker 

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



[issue40222] "Zero cost" exception handling

2021-05-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I agree with you but we already went through this when I added positional-only 
arguments and everyone complained that Cython and other projects were broken 
and we changed a stable API function so I am just mentioning that we are here 
again.

Honestly, I think what you describe makes sense and this constructor should 
never be stable (as the Python one is not stable). If we add column offsets 
that's another parameter more than we would need to add. But in any case that's 
just my opinion and we should reach some conclusion collectively, that's why I 
mentioned this here.

--

___
Python tracker 

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



[issue40222] "Zero cost" exception handling

2021-05-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

In any case, if we decide to let it stay, at the very least this behaviour 
(that these functions are not stable) needs to be documented everywhere: what's 
new, C-API docs...etc And probably we need to somehow add it to the future 
deprecations of 3.10 for visibility.

As I mentioned, I simphatise with your argument and I think it makes sense, but 
we cannot just do it in a BPO issue, I'm afraid.

--

___
Python tracker 

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



[issue39766] unittest's assertRaises removes locals from tracebacks

2021-05-11 Thread Jackson Riley


Jackson Riley  added the comment:

+1 - I was surprised not to be able to get locals from many of the frames in 
pdb upon an unexpected exception being raised inside an assertRaises. Thanks 
for raising this issue Daniel.

--
nosy: +jacksonriley

___
Python tracker 

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



[issue40222] "Zero cost" exception handling

2021-05-11 Thread Petr Viktorin


Petr Viktorin  added the comment:

PyCode_NewWithPosOnlyArgs is not part of the stable ABI. It is OK to break its 
ABI in a minor version (i.e. 3.11).

The PyAPI_FUNC makes it part of the public *API*. It needs to be source- 
compatible; the number of arguments can't change. Could yo u add a new function?

I wouldn't remove PyCode_NewWithPosOnlyArgs from the public C API, which can be 
CPython-specific and used by projects like Cython that need some low-level 
access for performance. But PEP 387 applies, so if it is deprecated in 3.11, it 
can be removed in 3.13.

--

___
Python tracker 

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



[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-05-11 Thread Miro Hrončok

Miro Hrončok  added the comment:

A Cython issue report: https://github.com/cython/cython/issues/4153

--

___
Python tracker 

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



[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-05-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24681
pull_request: https://github.com/python/cpython/pull/26034

___
Python tracker 

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



[issue40222] "Zero cost" exception handling

2021-05-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> The PyAPI_FUNC makes it part of the public *API*. It needs to be source- 
> compatible; the number of arguments can't change. Could yo u add a new 
> function?

Unfortunately, no: new functions cannot be added easily because the new field 
that receives is needed and is a complicated field created by the compiler. The 
old API is not enough anymore and making a compatibility layer is a huge 
complexity.

--

___
Python tracker 

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



[issue40222] "Zero cost" exception handling

2021-05-11 Thread Petr Viktorin


Petr Viktorin  added the comment:

Then, according to PEP 387, "The steering council may grant exceptions to this 
policy."

I think API breaks like this do need coordination at the project level.

--

___
Python tracker 

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



[issue36216] CVE-2019-9636: urlsplit does not handle NFKC normalization

2021-05-11 Thread Larry Hastings


Change by Larry Hastings :


--
nosy:  -larry

___
Python tracker 

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



[issue40222] "Zero cost" exception handling

2021-05-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> I think API breaks like this do need coordination at the project level.

Absolutely, that's why I said before:

> As I mentioned, I simphatise with your argument and I think it makes 
 sense, but we cannot just do it in a BPO issue, I'm afraid.

--

___
Python tracker 

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



[issue28708] Low FD_SETSIZE limit on Windows

2021-05-11 Thread Zachary Ware


Change by Zachary Ware :


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

___
Python tracker 

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



[issue40222] "Zero cost" exception handling

2021-05-11 Thread Mark Shannon


Mark Shannon  added the comment:

It is very little effort to add back the old function, so that isn't the 
problem. It won't work properly, but it never did anyway. So I guess that's 
sort of compatible.

Maybe the best thing is to put a big red warning in the docs and hope that 
warns away people from using it?

--

___
Python tracker 

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



[issue40222] "Zero cost" exception handling

2021-05-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> It is very little effort to add back the old function, so that isn't the 
> problem. It won't work properly, but it never did anyway. So I guess that's 
> sort of compatible.

It won't work properly is an incompatible change. Before, if you extract all 
fields from a code object and pass it down to the constructor, everything will 
work.

> Maybe the best thing is to put a big red warning in the docs and hope that 
> warns away people from using it?

I think code object constructors must be part of the private CAPI due to what 
we are experiencing. But again, this is something we cannot decide on this bpo 
issue. Either a python-dev thread needs to be open or a Steering Council 
request in the https://github.com/python/steering-council repo needs to be 
opened.

--

___
Python tracker 

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



[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-05-11 Thread Filipe Laíns

Filipe Laíns  added the comment:

Another idea, would it be possible to add a flag to turn on reproducibility, 
sacrificing performance? This flag could be set when generating bytecode, where 
the performance hit shouldn't be that relevant.

--

___
Python tracker 

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



[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.11 -Python 3.8

___
Python tracker 

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



[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +24682
pull_request: https://github.com/python/cpython/pull/26035

___
Python tracker 

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



[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24683
pull_request: https://github.com/python/cpython/pull/26036

___
Python tracker 

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



[issue44069] pathlib.Path.glob's generator is not a real generator

2021-05-11 Thread Elijah Rippeth


Change by Elijah Rippeth :


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



[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-05-11 Thread Stefan Behnel


Stefan Behnel  added the comment:

For the same reason that motivated this ticket, I think the functions should be 
inline functions. They should also take the current thread-state as argument, 
because that's probably known on the caller side already.

I guess a macro would be fine, too. :)

Cython previously used "use_tracing" directly because it needs to implement the 
exact same tracing/profiling behaviour as CPython, regardless of who called a 
Cython implemented function (Cython or CPython).

Naming nit: Get/Is/UsesTracing?

Also, given that a common use case seems to be "make sure tracing is disabled, 
do something, enable tracing if it was enabled", I think DisableTracing() 
should return the previous state.

--
nosy: +scoder

___
Python tracker 

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



[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset 7bef7a180da56e0399f4dec2c992bb101470fc73 by Miss Islington (bot) 
in branch '3.10':
bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation 
(GH-23192) (#26035)
https://github.com/python/cpython/commit/7bef7a180da56e0399f4dec2c992bb101470fc73


--

___
Python tracker 

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



[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset bde14f7fbd5f11bb40d9c314bd74eaa231236c6b by Miss Islington (bot) 
in branch '3.9':
bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation 
(GH-23192) (#26036)
https://github.com/python/cpython/commit/bde14f7fbd5f11bb40d9c314bd74eaa231236c6b


--

___
Python tracker 

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



[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread Irit Katriel


Change by Irit Katriel :


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



[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread Senthil Kumaran


Senthil Kumaran  added the comment:

Does anyone know what the return value 768 signify here?

--
nosy: +orsenthil

___
Python tracker 

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



[issue40222] "Zero cost" exception handling

2021-05-11 Thread Stefan Behnel


Stefan Behnel  added the comment:

Just a comment regarding the change to "PyCode_NewWithPosOnlyArgs()". As Pablo 
mentioned, this has happened before. And that's OK! Exactly because this has 
happened before, it's clearly not a part of the API that is meant to be stable.

I can easily adapt Cython to make this work in the next patch-level release of 
CPython 3.11 (or the current one, since alpha-1 seems not so close), but any 
adaptation will be patch-level dependent. Meaning, for each such change, there 
will be a couple of weeks or months until the C preprocessor makes the code 
compile again. And during that time, people won't be able to test their code to 
report issues.

So, I'd rather have compatibility broken and stay that way, than going one way 
now and changing it back later, thus going through the same adaptation period 
twice.

That being said, any such change means that maintainers will have to rebuild 
their packages with a new Cython release to adapt them to Py3.11. Many will, 
but some won't, for whatever reason.

--
nosy: +scoder

___
Python tracker 

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



[issue21261] Teach IDLE to Autocomplete dictionary keys

2021-05-11 Thread Tal Einat


Change by Tal Einat :


--
pull_requests: +24684
pull_request: https://github.com/python/cpython/pull/26039

___
Python tracker 

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



[issue21261] Teach IDLE to Autocomplete dictionary keys

2021-05-11 Thread Tal Einat


Tal Einat  added the comment:

Note that I've created a new version of the latest PR, with support for dict 
keys of type bytes removed.

--

___
Python tracker 

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



[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-11 Thread Tomasz Magulski


Change by Tomasz Magulski :


--
nosy: +magul

___
Python tracker 

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



[issue21261] Teach IDLE to Autocomplete dictionary keys

2021-05-11 Thread Tal Einat


Change by Tal Einat :


--
keywords: +patch

___
Python tracker 

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



[issue21261] Teach IDLE to Autocomplete dictionary keys

2021-05-11 Thread Tal Einat


Change by Tal Einat :


--
keywords:  -easy, patch

___
Python tracker 

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



[issue44107] HTTPServer can't close http client completely

2021-05-11 Thread Jonathan Schweder


Jonathan Schweder  added the comment:

@ueJone according to the 
(RFC)[https://datatracker.ietf.org/doc/html/rfc6455#section-1.4] the FIN/ACK is 
not normative, in other words is recommended but not required, I've checked the 
syscalls of the server, see it below:

```
...
1561 15143 write(2, "127.0.0.1 - - [11/May/2021 20:08"..., 60) = 60$
1562 15143 sendto(4, "HTTP/1.0 200 OK\r\nServer: SimpleH"..., 154, 0, NULL, 0) 
= 154$
1563 15143 sendto(4, "

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



[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24686
pull_request: https://github.com/python/cpython/pull/26041

___
Python tracker 

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



[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +24685
pull_request: https://github.com/python/cpython/pull/26040

___
Python tracker 

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



[issue44110] Improve string's __getitem__ error message

2021-05-11 Thread Miguel Brito


New submission from Miguel Brito :

I noticed that __getitem__ message, although helpful, could be improved a bit 
further. This will also make it consistent with other error messages such as 
the ones raised by `str.count`, `str.split`, `str.endswith` and so many others.

Currently, the error message goes like this: "TypeError: string indices must be 
integers" but we could specify the type of the object passed as argument to 
__getitem__. So, for example:

```
>>> idx = '1'
>>> s = 'abcde'
>>> s[idx]
Traceback (most recent call last):
  File "", line 1, in 
TypeError: string indices must be integers, not 'str'
```

This makes easier to debug and it is also consistent with other methods:

>>> "alala".count(8)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: must be str, not int

>>> "lala|helo".split(1)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: must be str or None, not int

>>> 1 in "lala"
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'in ' requires string as left operand, not int

>>> "lala|helo".split(object())
Traceback (most recent call last):
  File "", line 1, in 
TypeError: must be str or None, not object

--
components: Interpreter Core
messages: 393473
nosy: miguendes
priority: normal
severity: normal
status: open
title: Improve string's __getitem__ error message
type: enhancement
versions: Python 3.10, Python 3.11

___
Python tracker 

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



[issue44110] Improve string's __getitem__ error message

2021-05-11 Thread Miguel Brito


Change by Miguel Brito :


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

___
Python tracker 

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



[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread Senthil Kumaran


Senthil Kumaran  added the comment:


New changeset 6fc6f4366d02412e3424d2a6da43a28d8f479d7b by Miss Islington (bot) 
in branch '3.10':
bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016) 
(GH-26040)
https://github.com/python/cpython/commit/6fc6f4366d02412e3424d2a6da43a28d8f479d7b


--

___
Python tracker 

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



[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread Senthil Kumaran


Change by Senthil Kumaran :


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



[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread Senthil Kumaran


Senthil Kumaran  added the comment:


New changeset 390bfe044531a813722919933116ed37fe321861 by Miss Islington (bot) 
in branch '3.9':
bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016) 
(GH-26041)
https://github.com/python/cpython/commit/390bfe044531a813722919933116ed37fe321861


--

___
Python tracker 

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



[issue28528] Pdb.checkline()

2021-05-11 Thread Irit Katriel


Change by Irit Katriel :


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



[issue28528] Pdb.checkline() attribute error when 'curframe' is missing

2021-05-11 Thread Irit Katriel


Change by Irit Katriel :


--
title: Pdb.checkline() -> Pdb.checkline() attribute error when 'curframe' is 
missing

___
Python tracker 

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



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

2021-05-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24689
pull_request: https://github.com/python/cpython/pull/26045

___
Python tracker 

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



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

2021-05-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +24688
pull_request: https://github.com/python/cpython/pull/26044

___
Python tracker 

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



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

2021-05-11 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.11 -Python 3.8

___
Python tracker 

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



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

2021-05-11 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset c9049cf0aa9917abfd51b27e4258c395c5f66ff4 by Miss Islington (bot) 
in branch '3.9':
bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26045)
https://github.com/python/cpython/commit/c9049cf0aa9917abfd51b27e4258c395c5f66ff4


--

___
Python tracker 

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



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

2021-05-11 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset 1e4ca09d825cc8059bbf80c8137164816b84cfe7 by Miss Islington (bot) 
in branch '3.10':
bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26044)
https://github.com/python/cpython/commit/1e4ca09d825cc8059bbf80c8137164816b84cfe7


--

___
Python tracker 

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



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

2021-05-11 Thread Irit Katriel


Change by Irit Katriel :


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



[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread Irit Katriel


Change by Irit Katriel :


--
title: Pdb.checkline() attribute error when 'curframe' is missing -> 
Pdb.checkline() attribute error when 'curframe' is None

___
Python tracker 

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



[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +24690
pull_request: https://github.com/python/cpython/pull/26050

___
Python tracker 

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



[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24691
pull_request: https://github.com/python/cpython/pull/26051

___
Python tracker 

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



[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-11 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +24692
pull_request: https://github.com/python/cpython/pull/26052

___
Python tracker 

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



[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-11 Thread Steve Dower

Steve Dower  added the comment:

Thanks for the patch!

I don't think this meets the 3.8 bar now, but if Łukasz wants it then it should 
be easy.

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



[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset c90ed8e2e79ebd64f72c621b5a2ab06ec4c7210c by Miss Islington (bot) 
in branch '3.10':
bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. 
(GH-25438) (#26050)
https://github.com/python/cpython/commit/c90ed8e2e79ebd64f72c621b5a2ab06ec4c7210c


--
nosy: +iritkatriel

___
Python tracker 

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



[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread Irit Katriel


Irit Katriel  added the comment:

The 3.9 backport failed because of test failures like:

==
ERROR: test_checkline_is_not_executable (test.test_pdb.ChecklineTests)
--
Traceback (most recent call last):
  File "D:\a\cpython\cpython\lib\test\test_pdb.py", line 1752, in tearDown
os_helper.unlink(os_helper.TESTFN)
NameError: name 'os_helper' is not defined

--

--

___
Python tracker 

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



[issue44002] Use functools.lru_cache in urllib.parse instead of 1996 custom caching

2021-05-11 Thread Gregory P. Smith


Change by Gregory P. Smith :


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

___
Python tracker 

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



[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-05-11 Thread Ned Batchelder


Ned Batchelder  added the comment:

BTW, I created a separate issue about this: https://bugs.python.org/issue44088 
because I wasn't sure if I should continue on this one, sorry.  Feel free to 
close either one.

--

___
Python tracker 

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



[issue44107] HTTPServer can't close http client completely

2021-05-11 Thread ueJone


ueJone <775844...@qq.com> added the comment:

The HTTPServers run on win10 20H2. The HTTP client is a embed device.


The client often fails to connect to the HTTP server when reboot after close 
socket. Test as follows:

1. The client close socket when HTTP_GET request is done.(Now you can see that 
HTTPServer not send 'FIN', it means the server not close socket completely)
2. The client reboot and send HTTP_GET request again, but it can't connect to 
the HTTPServer as shown in the attachment.

In addition, every request is successful if the client not reboot.

I think the problem may be caused by the HTTPServer not closing the previous 
connection completely.

--
resolution:  -> remind

___
Python tracker 

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



[issue44111] 404 link on python webpage

2021-05-11 Thread Unknown Simonsen


New submission from Unknown Simonsen <0lsimon...@tawacollege.school.nz>:

https://www.python.org/community-landing/diversity shows 404 
The page is shown when going python.org > Community > Diversity Statement

--
assignee: docs@python
components: Documentation
messages: 393483
nosy: 0lsimonsen, docs@python
priority: normal
severity: normal
status: open
title: 404 link on python webpage

___
Python tracker 

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



[issue44111] 404 link on python webpage

2021-05-11 Thread Unknown Simonsen


Change by Unknown Simonsen <0lsimon...@tawacollege.school.nz>:


--
components:  -Documentation
type:  -> behavior

___
Python tracker 

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



[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-05-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Unfortunately commit b05955d6f5f149523b5855a335444b7c6324bdb7 has broken all 
refleak buildbots:

https://buildbot.python.org/all/#/builders/259/builds/25/steps/5/logs/stdio

See example:

--
Ran 53 tests in 5.629s
OK (skipped=1)
..
test_tools leaked [251, 251, 251] references, sum=753
test_tools leaked [91, 91, 91] memory blocks, sum=273
1 test failed again:
test_tools

Per our buildbot policy, it will be reverted if is not fixed in 24h to avoid 
masking other errors.

--
nosy: +pablogsal

___
Python tracker 

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



[issue43220] Argparse: Explicit default required arguments with add_mutually_exclusive_group are rejected

2021-05-11 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
assignee: rhettinger -> paul.j3

___
Python tracker 

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



[issue44111] 404 link on python webpage

2021-05-11 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

python.org > Community > Diversity Statement links to 
https://www.python.org/community/diversity/ renders the page properly. I don't 
see any links to /community-landing/diversity in the source code.

If this is an issue I guess this is something that must be reported to 
https://github.com/python/pythondotorg and looks like a third-party issue to me.

--
nosy: +xtreak

___
Python tracker 

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