[issue25655] Python errors related to failures loading DLL's lack information

2020-09-23 Thread Philippe Ombredanne


Philippe Ombredanne  added the comment:

> I wouldn't refuse a docs PR to add a short section pointing to
> this page and explaining its relevance: 
> https://docs.microsoft.com/cpp/build/reference/dependents

Steve,
would you see this as a note in 
https://docs.python.org/3/library/ctypes.html?highlight=ctypes#loading-shared-libraries

What about something like this?

class ctypes.CDLL
.

Note: On Windows a call to CDLL(name) may fail even if the DLL name exists when 
a dependent DLL of this DLL is found. This will lead to an OSErrror error with 
the message "[WinError 126] The specified module could not be found".

This error message does not contains the name of the missing DLL because the 
Windows API does not return this information making this error hard to diagnose.

To resolve this error and determine which DLL is missing, you need to find the 
list of dependent DLLs using Windows debugging and tracing tools.

See https://docs.microsoft.com/cpp/build/reference/dependents for some 
explanations.

--

___
Python tracker 

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



[issue25655] Python errors related to failures loading DLL's lack information

2020-09-23 Thread Philippe Ombredanne


Change by Philippe Ombredanne :


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

___
Python tracker 

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



[issue41838] Value error is showing in docset python (class)

2020-09-23 Thread Mohit Kumar


New submission from Mohit Kumar :

https://github.com/python/bugs.python.org/issues/55

--
assignee: docs@python
components: Documentation
messages: 377362
nosy: docs@python, mkay6122
priority: normal
severity: normal
status: open
title: Value error is showing in docset python (class)
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue41839] Fix error checking in sched_get_priority_ functions

2020-09-23 Thread Jakub Kulik


New submission from Jakub Kulik :

Python presumes that any negative number returned from sched_get_priority_min 
or sched_get_priority_max indicates that error has occurred. However, neither 
Linux manual pages nor POSIX.1-2001 specification forbids negative values to be 
returned; only -1 has a special meaning for error.

On Solaris, sched_get_priority_min can, in some instances, return -60, and 
while this is a legitimate scheduling priority value, Python throws an OSError. 
Checking for -1 rather than all negative values fixes this issue.

--
components: Library (Lib)
messages: 377363
nosy: kulikjak
priority: normal
severity: normal
status: open
title: Fix error checking in sched_get_priority_ functions
type: behavior
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



[issue41839] Fix error checking in sched_get_priority_ functions

2020-09-23 Thread Jakub Kulik


Change by Jakub Kulik :


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

___
Python tracker 

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



[issue41839] Fix error checking in sched_get_priority_ functions

2020-09-23 Thread Jakub Kulik


Change by Jakub Kulik :


--
versions: +Python 3.8

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 83de110dce94a9196dccc01d526628615714e362 by Mohamed Koubaa in 
branch 'master':
bpo-1635741: Port _lsprof extension to multi-phase init (PEP 489) (GH-0)
https://github.com/python/cpython/commit/83de110dce94a9196dccc01d526628615714e362


--

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ddc0dd001a4224274ba6f83568b45a1dd88c6fc6 by Mohamed Koubaa in 
branch 'master':
bpo-1635741, unicodedata: add ucd_type parameter to UCD_Check() macro (GH-22328)
https://github.com/python/cpython/commit/ddc0dd001a4224274ba6f83568b45a1dd88c6fc6


--

___
Python tracker 

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



[issue41821] Printing specific Unicode characters causes unwanted beeping in Windows 7 console

2020-09-23 Thread john_miller


john_miller  added the comment:

>In Windows 10, the console doesn't even support OEM "Raster Fonts", unless the 
>option is selected to use the legacy console.

So the setting could still be changed if a user decides to modify the setting 
in order to run some legacy-software.

A single sentence about the beeping and the recommendation to use a True Type 
Font instead of the OEM raster font in the console section of "Using Windows" 
might not hurt.

Seeing as there are lots of legacy features in the console that still work, 
setting a raster font might probably even be a compatibility option in future 
Windows versions.

--

___
Python tracker 

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



[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-09-23 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +21414
pull_request: https://github.com/python/cpython/pull/22375

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-09-23 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +21415
pull_request: https://github.com/python/cpython/pull/22376

___
Python tracker 

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



[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-09-23 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +21416
pull_request: https://github.com/python/cpython/pull/22377

___
Python tracker 

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



[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-09-23 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +21417
pull_request: https://github.com/python/cpython/pull/22378

___
Python tracker 

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



[issue41834] Remove _Py_CheckRecursionLimit variable

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 19c3ac92bf73f1902cff846988552fd7bb8a8621 by Victor Stinner in 
branch 'master':
bpo-41834: Remove _Py_CheckRecursionLimit variable (GH-22359)
https://github.com/python/cpython/commit/19c3ac92bf73f1902cff846988552fd7bb8a8621


--

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 7f413a5d95e6d7d6e2c9844c33594d6288f4 by Victor Stinner in 
branch 'master':
bpo-40521: Fix PyUnicode_InternInPlace() (GH-22376)
https://github.com/python/cpython/commit/7f413a5d95e6d7d6e2c9844c33594d6288f4


--

___
Python tracker 

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



[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 71f2ff4ccf4ff8bdb56cc30d115ca2ddc602b12f by Victor Stinner in 
branch 'master':
bpo-40941: Fix fold_tuple_on_constants() compiler warnings (GH-22378)
https://github.com/python/cpython/commit/71f2ff4ccf4ff8bdb56cc30d115ca2ddc602b12f


--

___
Python tracker 

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



[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b7d8d8dbfe83040087a63662e0b908f4b5ac24b0 by Victor Stinner in 
branch 'master':
bpo-40941: Fix stackdepth compiler warnings (GH-22377)
https://github.com/python/cpython/commit/b7d8d8dbfe83040087a63662e0b908f4b5ac24b0


--

___
Python tracker 

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



[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:

The main change is merged, and I fixed compiler warnings. It seems like there 
is no remaining thing to do, so I close the issue.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 97d15ae1d8411b49b1fcdc0c67c51849dccce9c9 by Victor Stinner in 
branch 'master':
bpo-40170: Use inline _PyType_HasFeature() function (GH-22375)
https://github.com/python/cpython/commit/97d15ae1d8411b49b1fcdc0c67c51849dccce9c9


--

___
Python tracker 

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



[issue41840] [regression] symtable.Symbol.is_local() is no longer True for bound global symbols

2020-09-23 Thread CendioOssman


New submission from CendioOssman :

So Issue40196 (and PR 19391) broke things for us here as Symbol.is_local() no 
longer works properly for symbols on the global/module scope.

Previously it would return True for all global symbols that were bound. Now it 
only returns True when the symbol is not used in any other scope. This means we 
cannot tell the difference between globals that are from the module itself, and 
globals that come in via imports.

This also seems to contradict this part of the language reference:

"(The variables of the module code block are local and global.)"

https://docs.python.org/3/reference/executionmodel.html

I don't see any clean workaround as there is no Symbol.is_bound() that could be 
used instead.

(inb4 https://xkcd.com/1172/)

--
components: Library (Lib)
messages: 377373
nosy: CendioOssman
priority: normal
severity: normal
status: open
title: [regression] symtable.Symbol.is_local() is no longer True for bound 
global symbols
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



[issue37779] configparser: add documentation about several read() behaviour

2020-09-23 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 48b0b1b121f26f811265f9eb06f195a3df38ef4b by sblondon in branch 
'master':
bpo-37779 : Add information about the overriding behavior of ConfigParser.read 
(GH-15177)
https://github.com/python/cpython/commit/48b0b1b121f26f811265f9eb06f195a3df38ef4b


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2020-09-23 Thread Terry J. Reedy


New submission from Terry J. Reedy :

Master became 3.10 as of 3.9.0 beta 1: Monday, 2020-05-18.
However, backported IDLE issues continued going under What's New 3.9
on both master and 3.9 until 3.9.0rc1, Tuesday, 2020-08-11.
Subsequent merges go under
What's New 3.10.0 on master
What's New 3.9.1 on 3.9

In other words, News is handled as if master were still branched off as of 
.0rc1.  This is different from the changelog attached to What's New in 3.x.

Release peps -- needed for proposed and actual release dates.
3.8 PEP 569 https://www.python.org/dev/peps/pep-0569/
3.9 PEP 596 https://www.python.org/dev/peps/pep-0596/
3.10 PEP 619 https://www.python.org/dev/peps/pep-0619/

--
assignee: terry.reedy
components: IDLE
messages: 377375
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: idlelib/NEWS.txt for 3.10.0 and backports
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



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

2020-09-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Continue with #41841 for 3.10.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
superseder:  -> idlelib/NEWS.txt for 3.10.0 and backports

___
Python tracker 

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



[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-23 Thread STINNER Victor


New submission from STINNER Victor :

Writing an unit test on the Python codecs machinery is facing a practical 
problem: there is no C nor Python API to unregister a codec search function.

It's even documented in a note of the codecs.register() function:

"Note: Search function registration is not currently reversible, which may 
cause problems in some cases, such as unit testing or module reloading."

https://docs.python.org/dev/library/codecs.html#codecs.register

test_codecs contains a long comment about that:

# There's no way to unregister a codec search function, so we just
# ensure we render this one fairly harmless after the test
# case finishes by using the test case repr as the codec name
# The codecs module normalizes codec names, although this doesn't
# appear to be formally documented...
# We also make sure we use a truly unique id for the custom codec
# to avoid issues with the codec cache when running these tests
# multiple times (e.g. when hunting for refleaks)

See bpo-22166 which fixed memory leaks in test_codecs.

In 2011, a Python user requested the function
https://mail.python.org/pipermail/python-dev/2011-September/113588.html

Marc-Andre Lemburg explained:

"There is no API to unregister a codec search function, since deregistration
would break the codec cache used by the registry to speedup codec
lookup."

One simple solution would be to clear the cache 
(PyInterpreterState.codec_search_cache) when codecs.unregister() removes a 
search function. I expect that calling unregister() is an uncommon operation, 
so the performance is not a blocker issue.

--
components: Library (Lib), Unicode
messages: 377377
nosy: ezio.melotti, vstinner
priority: normal
severity: normal
status: open
title: Add codecs.unregister() to unregister a codec search function
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



[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:

> Writing an unit test on the Python codecs machinery is facing a practical 
> problem: there is no C nor Python API to unregister a codec search function.

For example, see PR 19069 of bpo-39337.

--

___
Python tracker 

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



[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:

Hai Shi wrote PR 22360 to implement codecs.unregister().

--

___
Python tracker 

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



Re: [issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-23 Thread M.-A. Lemburg
On 23.09.2020 14:56, STINNER Victor wrote:
> Marc-Andre Lemburg explained:
> 
> "There is no API to unregister a codec search function, since deregistration
> would break the codec cache used by the registry to speedup codec
> lookup."
> 
> One simple solution would be to clear the cache 
> (PyInterpreterState.codec_search_cache) when codecs.unregister() removes a 
> search function. I expect that calling unregister() is an uncommon operation, 
> so the performance is not a blocker issue.

+1

BTW: While you're at it, having a way to access the search function
list from Python would be nice as well, since this would then open
up the possibility to reorder search functions.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, Sep 23 2020)
>>> Python Projects, Coaching and Support ...https://www.egenix.com/
>>> Python Product Development ...https://consulting.egenix.com/


::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   https://www.egenix.com/company/contact/
 https://www.malemburg.com/

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



Re: [issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-23 Thread M.-A. Lemburg
Just found an internal API which already takes care of
unregistering a search function: _PyCodec_Forget().

All that needs to be done is to expose this as codecs.unregister()
and add the clearing of the lookup cache.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, Sep 23 2020)
>>> Python Projects, Coaching and Support ...https://www.egenix.com/
>>> Python Product Development ...https://consulting.egenix.com/


::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   https://www.egenix.com/company/contact/
 https://www.malemburg.com/

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



[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-09-23 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

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



[issue41826] test_peg_generator compilation warnings

2020-09-23 Thread Skip Montanaro


Skip Montanaro  added the comment:

> This is because the types of the grammars in
Lib/test/test_peg_generator/test_c_parser.py needs to be updated to use the
new sequences

I'm sorry, that doesn't mean much to me. Is it simply a matter of applying
suitable casts to the various parameters in the C code fragments in those?
For example:

*** /tmp/ediffGoXpTW 2020-09-23 08:06:38.671061988 -0500
---
/home/skip/src/python/cpython/Lib/test/test_peg_generator/test_c_parser.py
2020-09-21 15:54:43.106258797 -0500
***
*** 325,331 
  compound_stmt[stmt_ty]: with_stmt
  with_stmt[stmt_ty]: (
  a='with' '(' b=','.with_item+ ')' ':' c=block {
! _Py_With(b, _PyPegen_singleton_seq(p, c), NULL, EXTRA) }
  )
  with_item[withitem_ty]: (
  e=NAME o=['as' t=NAME { t }] { _Py_withitem(e,
_PyPegen_set_expr_context(p, o, Store), p->arena) }
--- 325,331 
  compound_stmt[stmt_ty]: with_stmt
  with_stmt[stmt_ty]: (
  a='with' '(' b=','.with_item+ ')' ':' c=block {
! _Py_With((asdl_withitem_seq *)b, *(asdl_stmt_seq
*)*_PyPegen_singleton_seq(p,
c), NULL, EXTRA) }
  )
  with_item[withitem_ty]: (
  e=NAME o=['as' t=NAME { t }] { _Py_withitem(e,
_PyPegen_set_expr_context(p, o, Store), p->arena) }

If so, that's pretty mechanical. Even a dummy like me could produce a patch.

--

___
Python tracker 

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



[issue41843] Reenable sendfile in shutil.copyfile() on Solaris

2020-09-23 Thread Jakub Kulik


New submission from Jakub Kulik :

The use of sendfile() in shutil.copyfile() on Solaris was previously disabled 
in #36610 due to slightly different behavior. This difference was recently 
accounted for in #41687, and I observed no other unexpected 
problems/differences with sendfile.

Can we get this reenabled? I can prepare PR, however, I am not sure whether 
#36610 should be reverted (hence enabling sendfile in copyfile on every system 
where it is available) or whether I should just add Solaris to _USE_CP_SENDFILE 
condition.

--
components: Library (Lib)
messages: 377383
nosy: giampaolo.rodola, kulikjak
priority: normal
severity: normal
status: open
title: Reenable sendfile in shutil.copyfile() on Solaris
type: performance
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



[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +21419
pull_request: https://github.com/python/cpython/pull/22380

___
Python tracker 

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



[issue40564] Using zipfile.Path with several files prematurely closes zip

2020-09-23 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I've released zipp 3.2.0 that includes a fix for this issue (option 2). Please 
test it out.

Because this change affects the user's expectation about the effect of what's 
passed in, I'm hesitant to backport it to 3.8 and 3.9. It's too late to go into 
3.9.0, so the earliest it can appear is in 3.9.1.

Please advise - does the undesirable behavior warrant a bugfix backport, or is 
it sufficient to direct users impacted by this issue prior to Python 3.10 to 
use the `zipp` backport?

--

___
Python tracker 

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



[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +21420
pull_request: https://github.com/python/cpython/pull/22381

___
Python tracker 

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



[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2020-09-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 7af072c3b60dd3aac2835122bc37454f0973351e by Terry Jan Reedy in 
branch 'master':
bpo-41841: Prepare IDLE News for 3.10 (GH-22379)
https://github.com/python/cpython/commit/7af072c3b60dd3aac2835122bc37454f0973351e


--

___
Python tracker 

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



[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2020-09-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset d7a4e5d330df49774019e25313e0c1c4e9bf505d by Terry Jan Reedy in 
branch '3.9':
[3.9] bpo-41841: Prepare IDLE News for 3.9 (GH-22380)
https://github.com/python/cpython/commit/d7a4e5d330df49774019e25313e0c1c4e9bf505d


--

___
Python tracker 

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



[issue41844] IDLE subsection of What's New 3.9

2020-09-23 Thread Terry J. Reedy


New submission from Terry J. Reedy :

Following #33821, master issue for IDLE entries in Doc/whatsnew/3.8.rst.  This 
doc has a section 'Improved Modules' with a subsection 'idlelib and IDLE'.  The 
initial unlabeled subsubsection includes important enhancements to IDLE since 
3.7.0.

Because of IDLE's special backport policy (PEP 434), this initial part 
concludes with "The changes above have been backported to 3.7 maintenance 
releases."  Future subsubsections 'New in 3.8.z:', z >= 1, will follow for 
backports to 3.8.z.  This issue will close after the last 3.8 maintenance 
release.

This file will always exists in the master branch.  Changes are applied to 
master and backported as needed at the time.  Entries will be the same in the 
What's New x.y for all x.y branches that get the enhancement.  However, each 
file needs different backports.  Hence separate PRs are needed for auto 
backport to work.  It seems convenient to have separate issues for each.

--
assignee: terry.reedy
components: IDLE
messages: 377387
nosy: terry.reedy
priority: normal
severity: normal
status: open
title: IDLE subsection of What's New 3.9
type: enhancement
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



[issue33821] IDLE subsection of What's New 3.7

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
superseder:  -> IDLE subsection of What's New 3.8

___
Python tracker 

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



[issue41844] IDLE subsection of What's New 3.9

2020-09-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Following #33822, master issue for IDLE entries in Doc/whatsnew/3.9.rst.  This 
doc has a section 'Improved Modules' with a subsection 'idlelib and IDLE'.  The 
initial unlabeled subsubsection includes important enhancements to IDLE since 
3.8.0.

Because of IDLE's special backport policy (PEP 434), this initial part 
concludes with "The changes above have been backported to 3.8 maintenance 
releases."  Future subsubsections 'New in 3.9.z:', z >= 1, will follow for 
backports to 3.9.z.  These can precede the backport message as long as it is 
true. This issue will close after the last 3.9 maintenance release.

This file will always exists in the master branch.  Changes are applied to 
master and backported as needed at the time.  Entries will be the same in the 
What's New x.y for all x.y branches that get the enhancement.  However, each 
file needs different backports.  Hence separate PRs are needed for auto 
backport to work.  It seems convenient to have separate issues for each.

--

___
Python tracker 

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



[issue41846] IDLE subsection of What's New 3.10

2020-09-23 Thread Terry J. Reedy


New submission from Terry J. Reedy :

Following #41844, master issue for IDLE entries in Doc/whatsnew/3.10.rst.  This 
doc has a section 'Improved Modules' with a subsection 'idlelib and IDLE'.  The 
initial unlabeled subsubsection includes important enhancements to IDLE since 
3.9.0.

Because of IDLE's special backport policy (PEP 434), this initial part 
concludes with "The changes above have been backported to 3.9 maintenance 
releases."  Future subsubsections 'New in 3.10.z:', z >= 1, will follow for 
backports to 3.10.z.  These can precede the backport message as long as it is 
true. This issue will close after the last 3.10 maintenance release.

This file will always exists in the master branch.  Changes are applied to 
master and backported as needed at the time.  Entries will be the same in the 
What's New x.y for all x.y branches that get the enhancement.  However, each 
file needs different backports.  Hence separate PRs are needed for auto 
backport to work.  It seems convenient to have separate issues for each.

--
assignee: terry.reedy
components: IDLE
messages: 377390
nosy: terry.reedy
priority: normal
severity: normal
status: open
title: IDLE subsection of What's New 3.10
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



[issue41844] IDLE subsection of What's New 3.9

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue41844] IDLE subsection of What's New 3.9

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
superseder:  -> IDLE subsection of What's New 3.10

___
Python tracker 

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



[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2020-09-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 0a2e11aecfb300615ab813f5d2d77a799f6e852c by Terry Jan Reedy in 
branch '3.8':
[3.8] bpo-41841: Prepare IDLE News for 3.8.7 (GH-22381)
https://github.com/python/cpython/commit/0a2e11aecfb300615ab813f5d2d77a799f6e852c


--

___
Python tracker 

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +21421
pull_request: https://github.com/python/cpython/pull/22382

___
Python tracker 

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



[issue41845] Promote PyObject_GenericGetDict to the stable API

2020-09-23 Thread Alex Gaynor


New submission from Alex Gaynor :

Currently PyObject_GenericSetDict is part of the stable API, but 
PyObject_GenericGetDict is not. I noticed this while working on 
https://github.com/PyO3/pyo3/pull/1207

Because of the symmetry here, it seems appropriate to promote Get.

--
components: C API
messages: 377388
nosy: alex, benjamin.peterson
priority: normal
severity: normal
status: open
title: Promote PyObject_GenericGetDict to the stable API
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



[issue41844] IDLE subsection of What's New 3.9

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -21421

___
Python tracker 

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +21423
pull_request: https://github.com/python/cpython/pull/22383

___
Python tracker 

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



[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:

> Just found an internal API which already takes care of
> unregistering a search function: _PyCodec_Forget().
>
> All that needs to be done is to expose this as codecs.unregister()
> and add the clearing of the lookup cache.

Yeah, I saw this function, but it's related to the cache, not to the list of 
search functions.


> BTW: While you're at it, having a way to access the search function
> list from Python would be nice as well, since this would then open
> up the possibility to reorder search functions.

I didn't hear anyone (ok, apart you) who requested to order search functions.

I dislike the idea of exposing it, since it introduces the risk that someone 
"unregisters" a search function simply by removing it from the list, without 
invalidating the cache.

I prefer to hide the internals to ensure that the cache remains consistent.

--

___
Python tracker 

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



[issue41838] Value error is showing in docset python (class)

2020-09-23 Thread Eric V. Smith


Eric V. Smith  added the comment:

It would be helpful if you can:
- simplify the example
- attach the simplified code to this issue
- show how the code runs with no errors, and how you invoke it
- show how you invoke the code when it does have errors

Please do no attach images: they are not friendly to users using accessibility 
software, and they're impossible to copy/paste/search.

--
nosy: +eric.smith

___
Python tracker 

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



[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-23 Thread hai shi


Change by hai shi :


--
keywords: +patch
nosy: +shihai1991
nosy_count: 3.0 -> 4.0
pull_requests: +21424
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22360

___
Python tracker 

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



[issue41844] IDLE subsection of What's New 3.9

2020-09-23 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue41844] IDLE subsection of What's New 3.9

2020-09-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 22b7616f26694ac707fd53ece500febfad665426 by Terry Jan Reedy in 
branch 'master':
bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)
https://github.com/python/cpython/commit/22b7616f26694ac707fd53ece500febfad665426


--

___
Python tracker 

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +21425
pull_request: https://github.com/python/cpython/pull/22382

___
Python tracker 

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 9c4eac7f02ddcf32fc1cdaf7c08c37fe9718c1fb by Terry Jan Reedy in 
branch 'master':
bpo-33822: Update IDLE section of What's New 3.8 (GH-22383)
https://github.com/python/cpython/commit/9c4eac7f02ddcf32fc1cdaf7c08c37fe9718c1fb


--

___
Python tracker 

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21427
pull_request: https://github.com/python/cpython/pull/22385

___
Python tracker 

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21428
pull_request: https://github.com/python/cpython/pull/22386

___
Python tracker 

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread miss-islington


miss-islington  added the comment:


New changeset e678ca960b44ec3ddf2ac01fdb333018646ed8dd by Miss Islington (bot) 
in branch '3.8':
bpo-33822: Update IDLE section of What's New 3.8 (GH-22383)
https://github.com/python/cpython/commit/e678ca960b44ec3ddf2ac01fdb333018646ed8dd


--

___
Python tracker 

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



[issue41835] Speed up dict vectorcall creation using keywords

2020-09-23 Thread Marco Sulla


Marco Sulla  added the comment:

> `dict(**o)` is not common use case. Could you provide some other benchmarks?

You can do

python -m timeit -n 200 "dict(key1=1, key2=2, key3=3, key4=4, key5=5, 
key6=6, key7=7, key8=8, key9=9, key10=10)"

or with pyperf. In this case, since the dict is little, I observed a speedup of 
25%.

--

___
Python tracker 

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread miss-islington


miss-islington  added the comment:


New changeset e33fe6c3d793688d46edf7c2e31a88fc2e719d65 by Miss Islington (bot) 
in branch '3.9':
bpo-33822: Update IDLE section of What's New 3.8 (GH-22383)
https://github.com/python/cpython/commit/e33fe6c3d793688d46edf7c2e31a88fc2e719d65


--

___
Python tracker 

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



[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-09-23 Thread Mark Shannon


Mark Shannon  added the comment:

Thanks Victor.
Sorry I didn't get round to this sooner

--

___
Python tracker 

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



[issue25655] Python errors related to failures loading DLL's lack information

2020-09-23 Thread Steve Dower


Steve Dower  added the comment:

> would you see this as a note in 
https://docs.python.org/3/library/ctypes.html?highlight=ctypes#loading-shared-libraries

Haven't looked at the PR, but it probably needs to be somewhere in the 
import docs as well, to do with native extension modules. That's where 
most people run into this. And in general the solution is either going 
to involve moving/renaming files or calling os.add_dll_directory, so a 
link to the latter may also be useful.

I think we've got a Sphinx tag for platform-specific information? If we 
do, it should use that. (Unless I'm just thinking of the "API 
availability" tag rather than a "Note" style box.)

--

___
Python tracker 

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



[issue41654] Segfault when raising MemoryError

2020-09-23 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +21429
pull_request: https://github.com/python/cpython/pull/22387

___
Python tracker 

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



[issue41844] IDLE subsection of What's New 3.9

2020-09-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 57e7d5c19e934f450f5a3539eff48162a78af994 by Miss Islington (bot) 
in branch '3.9':
bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)
https://github.com/python/cpython/commit/57e7d5c19e934f450f5a3539eff48162a78af994


--

___
Python tracker 

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



[issue41428] PEP 604 -- Allow writing union types as X | Y

2020-09-23 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
nosy: +vstinner
nosy_count: 3.0 -> 4.0
pull_requests: +21430
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22388

___
Python tracker 

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



[issue41840] [regression] symtable.Symbol.is_local() is no longer True for bound global symbols

2020-09-23 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +pablogsal

___
Python tracker 

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



[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:

No problem. These warnings are only visible on 64-bit Windows. I spotted them 
waiting looking at some Windows errors.

--

___
Python tracker 

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -21425

___
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-23 Thread Bug Reporter


Bug Reporter  added the comment:

Is it worth comparing openssl vanilla code and configs with Ubuntu's version?

--

___
Python tracker 

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



[issue41845] Promote PyObject_GenericGetDict to the stable API

2020-09-23 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It was moved out from the limited API in issue13903 
(7d95e4072169911b228c9e42367afb5f17fd3db0). I think it was error.

--
nosy: +Mark.Shannon, serhiy.storchaka

___
Python tracker 

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



[issue41833] threading.Thread: use target name if the name parameter is omitted

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:

I rewrote my PR to generate names like "Thread-3 (func)", rather than just 
"func". So if two target functions have the same name, or if two threads use 
the same target, it remains possible to distinguish the two threads.

--

___
Python tracker 

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



[issue41845] Promote PyObject_GenericGetDict to the stable API

2020-09-23 Thread Mark Shannon


Mark Shannon  added the comment:

It wasn't removed in 7d95e4072169911b228c9e42367afb5f17fd3db0,
just moved from object.h to dictobject.h
It was still part of the API at that point, I think.

--

___
Python tracker 

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



[issue41833] threading.Thread: use target name if the name parameter is omitted

2020-09-23 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Ideally, I would prefer separate counters for different names, and omitting a 
number for the first thread with unique name:

  doit
  doit-2
  Thread-1
  Thread-2
  print
  print-2
  doit-3

But it is not feasible. It would require supporting a cache which can grow with 
every new thread and non-trivial code to avoid race conditions. So I am fine 
with Ammar's idea.

--

___
Python tracker 

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



[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-23 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

On 23.09.2020 16:49, STINNER Victor wrote:
> 
> STINNER Victor  added the comment:
> 
>> Just found an internal API which already takes care of
>> unregistering a search function: _PyCodec_Forget().
>>
>> All that needs to be done is to expose this as codecs.unregister()
>> and add the clearing of the lookup cache.
> 
> Yeah, I saw this function, but it's related to the cache, not to the list of 
> search functions.

Ah, right. I just looked at the first occurance of codec_search_path :-)

>> BTW: While you're at it, having a way to access the search function
>> list from Python would be nice as well, since this would then open
>> up the possibility to reorder search functions.
> 
> I didn't hear anyone (ok, apart you) who requested to order search functions.

This has come up in the past from people who wanted to override
builtin codecs with their own versions.

> I dislike the idea of exposing it, since it introduces the risk that someone 
> "unregisters" a search function simply by removing it from the list, without 
> invalidating the cache.
> 
> I prefer to hide the internals to ensure that the cache remains consistent.

Sure, a function would merely return a tuple with the entries,
not the list itself, e.g. in pseudo code:

def get_search_path():
return tuple(interp->codec_search_path)

For replacing the vanilla setup, this is not needed, since only
one search function gets registered (the builtin one), so rather
low priority, I guess.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, Sep 23 2020)
>>> Python Projects, Coaching and Support ...https://www.egenix.com/
>>> Python Product Development ...https://consulting.egenix.com/


::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   https://www.egenix.com/company/contact/
 https://www.malemburg.com/

--

___
Python tracker 

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



[issue25278] Unexpected socket exception on SFTP 'STOR' command

2020-09-23 Thread Lars Schellhas


Lars Schellhas  added the comment:

I am pretty sure that it is connected to issue 19500. And somehow that issue 
still isn't resolved although there are already solutions provided.

--
nosy: +larsschellhas

___
Python tracker 

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



[issue41845] Promote PyObject_GenericGetDict to the stable API

2020-09-23 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It was moved into the "#ifndef Py_LIMITED_API" block and therefore was 
effectively excluded from the limited API.

We should fix this error in all maintained versions.

--
versions: +Python 3.8, Python 3.9

___
Python tracker 

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



[issue41833] threading.Thread: use target name if the name parameter is omitted

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:

> Ideally, I would prefer separate counters for different names

IMO if you want to go at the level of details, I suggest you to generate 
yourself thread names:

threads = [threading.Thread(name=f"MyThread-{i}") for i in range(1, 6)]

Maintaining a list of thread names sounds overkill to me. It would be quite 
complicated and would increase the memory footprint, for little benefit.

--

___
Python tracker 

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



[issue19500] ftplib: Add client-side SSL session resumption

2020-09-23 Thread Lars Schellhas


Lars Schellhas  added the comment:

Excuse me, but why is this issue still open and unfixed? There are already 
proposed fixes and this issue has been around for nearly 7 years now. 
Filezilla has forwarded the responsibility to us for this issue 
(https://trac.filezilla-project.org/ticket/10700), so please, let's just fix it.

--
nosy: +larsschellhas

___
Python tracker 

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



[issue19500] ftplib: Add client-side SSL session resumption

2020-09-23 Thread Stephen Ash


Change by Stephen Ash :


--
nosy:  -Stephen Ash

___
Python tracker 

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



[issue40608] PY3.8 GC segfault (Py_TRASHCAN_SAFE_BEGIN/END are not backwards compatible)

2020-09-23 Thread Irit Katriel


Irit Katriel  added the comment:

Have you had a chance to look into this?

It took some debugging to get to the bottom of this problem in our system 
(nothing in the "what's new in python 3.8" doc gave any hint). 

The solution I went for was to replace the old macros with the new ones. If 
it's not easy or desirable to fix the old macros, should they not be removed?

--

___
Python tracker 

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



[issue19500] ftplib: Add client-side SSL session resumption

2020-09-23 Thread Christian Heimes


Christian Heimes  added the comment:

I have provided necessary infrastructure for TLS 1.2 session resumption in the 
ssl module a couple of releases ago. But nobody has taken ownership of this 
ftplib issue and provided a full fix with regression tests and documentation 
update.

If you like to see ftplib enhanced to support session resumption, please 
provide a PR with regression tests. Demanding a fix won't accelerate work on 
the issue.

--
stage: patch review -> needs patch
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



[issue25655] Python errors related to failures loading DLL's lack information

2020-09-23 Thread Philippe Ombredanne


Philippe Ombredanne  added the comment:

So the other locations to add docs would be petinetially

- https://docs.python.org/3/library/os.html?#os.add_dll_directory
- https://docs.python.org/3/extending/windows.html
- https://docs.python.org/3/faq/windows.html#is-a-pyd-file-the-same-as-a-dll
- https://docs.python.org/3/using/windows.html#finding-modules

Which ones would be the best?

Also AFAIK there is no Windows Sphinx tag beyond .. availability::

--

___
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-23 Thread Christian Heimes


Christian Heimes  added the comment:

Yes, that would be useful. I suspect tls1.2-min-seclevel2.patch from the patch 
set https://launchpad.net/ubuntu/+source/openssl/1.1.1f-1ubuntu2 might be the 
cause of this issue.

--

___
Python tracker 

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



[issue30155] Add ability to get tzinfo from a datetime instance in C API

2020-09-23 Thread Paul Ganssle


Paul Ganssle  added the comment:


New changeset 2e4dd336e5b50fd30947fdecb605ddcd71f7f6f5 by Zackery Spytz in 
branch 'master':
bpo-30155: Add macros to get tzinfo from datetime instances (GH-21633)
https://github.com/python/cpython/commit/2e4dd336e5b50fd30947fdecb605ddcd71f7f6f5


--

___
Python tracker 

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



[issue25655] Python errors related to failures loading DLL's lack information

2020-09-23 Thread Steve Dower


Steve Dower  added the comment:

Thanks for doing the search :)

 > - 
https://docs.python.org/3/faq/windows.html#is-a-pyd-file-the-same-as-a-dll

Probably not here.

 > - https://docs.python.org/3/using/windows.html#finding-modules

Perhaps it is best to put a new section here like what you posted above 
(but more generic for ctypes and imports), and then link to it from the 
other places?

 > - https://docs.python.org/3/library/os.html?#os.add_dll_directory

e.g. "This function may be used to work around  errors"

 > - https://docs.python.org/3/extending/windows.html

e.g. "If your extension module relies on any DLLs other than those 
included with Windows or CPython, you will need to include them or else 
users may receive 'module not found' errors. See  for more 
details."

(Some of that text may already be there, been a while since I read that 
one.)

 > Also AFAIK there is no Windows Sphinx tag beyond .. availability::

Yeah, I think I was thinking of a different project. But if it's all in 
Windows-specific sections anyway, and pointing towards the Windows doc 
page, then it won't matter.

--

___
Python tracker 

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



[issue19500] ftplib: Add client-side SSL session resumption

2020-09-23 Thread Lars Schellhas


Lars Schellhas  added the comment:

@Christian Heimes, you are absolutely right. I'm sorry if I came off rude. 

Actually, I just had a rough day at work with the end of it being the 
realisation that this missing fix would solve my day-filling issue from today.

Furthermore, I've actually returned here, just to read through the whole thread 
again, hoping to find a way to contribute to it's resolution.
However, this is my first time contributing to Python, but I'm eager to learn 
and dive into the necessary resources.
Could you give me a hint about where to start?

--

___
Python tracker 

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



[issue29940] Add follow_wrapped=True option to help()

2020-09-23 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
pull_requests: +21431
pull_request: https://github.com/python/cpython/pull/22390

___
Python tracker 

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



[issue38776] rlock_count<0

2020-09-23 Thread Irit Katriel


Irit Katriel  added the comment:

rlock_count is an unsigned long, so it can't be negative.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41833] threading.Thread: use target name if the name parameter is omitted

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 98c16c991d6e70a48f4280a7cd464d807bdd9f2b by Victor Stinner in 
branch 'master':
bpo-41833: threading.Thread now uses the target name (GH-22357)
https://github.com/python/cpython/commit/98c16c991d6e70a48f4280a7cd464d807bdd9f2b


--

___
Python tracker 

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



[issue41833] threading.Thread: use target name if the name parameter is omitted

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:

I merged my change with "Thread-1 (func)" format: add the target name, but keep 
"Thread-3" to distinguish two different threads with the same target name.

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



[issue41654] Segfault when raising MemoryError

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset bbeb223e9a5e9f9374df384efa386b4068a65c0e by Victor Stinner in 
branch 'master':
bpo-41654: Fix compiler warning in MemoryError_dealloc() (GH-22387)
https://github.com/python/cpython/commit/bbeb223e9a5e9f9374df384efa386b4068a65c0e


--

___
Python tracker 

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



[issue41428] PEP 604 -- Allow writing union types as X | Y

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset d67de0a30d76c6a28056bae22fd7d13f2e111b77 by Victor Stinner in 
branch 'master':
bpo-41428: Fix compiler warnings in unionobject.c (GH-22388)
https://github.com/python/cpython/commit/d67de0a30d76c6a28056bae22fd7d13f2e111b77


--

___
Python tracker 

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



[issue38776] rlock_count<0

2020-09-23 Thread STINNER Victor


STINNER Victor  added the comment:

> rlock_count is an unsigned long, so it can't be negative.

Right, so I don't see the point of replacing "== 0" with "<= 0".

I close the issue.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue40042] Enum Flag: psuedo-members have None for name attribute

2020-09-23 Thread Irit Katriel


Irit Katriel  added the comment:

I believe this is what Rahul means:

import enum
class Color(enum.Flag):
RED = enum.auto()
BLUE = enum.auto()
GREEN = enum.auto()

white = Color.RED | Color.BLUE | Color.GREEN
assert white.name is None

#  Note, however that:
assert str(Color.RED | Color.BLUE | Color.GREEN) == "Color.GREEN|BLUE|RED"

--
nosy: +iritkatriel

___
Python tracker 

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



[issue40608] PY3.8 GC segfault (Py_TRASHCAN_SAFE_BEGIN/END are not backwards compatible)

2020-09-23 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Hi Irit,

Could you kindly check if PR 12607 solves this issue in any way?

--

___
Python tracker 

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



[issue41840] [regression] symtable.Symbol.is_local() is no longer True for bound global symbols

2020-09-23 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue41840] [regression] symtable.Symbol.is_local() is no longer True for bound global symbols

2020-09-23 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Hi Cendio Ossman and thanks for the report.

Indeed, there are a bunch of problems here taking into account the language 
reference "The variables of the module code block are local and global". PR 
22391 fixes those and also the repr-generation for module-level that was also 
broken

--

___
Python tracker 

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



[issue41826] test_peg_generator compilation warnings

2020-09-23 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> I'm sorry, that doesn't mean much to me. Is it simply a matter of applying
suitable casts to the various parameters in the C code fragments in those?

Yep, and in the capture variables and in the rule types. Check 
https://github.com/python/cpython/pull/3 for more info (changes in 
Grammar/python.gram file).

--

___
Python tracker 

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



  1   2   >