[issue34822] Simplify AST for slices

2020-03-06 Thread Guido van Rossum

Guido van Rossum  added the comment:

Haven’t looked at the code but I welcome the simplification.

--
nosy: +gvanrossum

___
Python tracker 

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



[issue39886] Remove unused arg in config_get_stdio_errors in Python/initconfig.c

2020-03-06 Thread Andy Lester


Change by Andy Lester :


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

___
Python tracker 

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



[issue39886] Remove unused arg in config_get_stdio_errors in Python/initconfig.c

2020-03-06 Thread Andy Lester


New submission from Andy Lester :

config_get_stdio_errors(const PyConfig *config) does not use its arg.  Delete 
it.

--
components: Interpreter Core
messages: 363582
nosy: petdance
priority: normal
severity: normal
status: open
title: Remove unused arg in config_get_stdio_errors in Python/initconfig.c

___
Python tracker 

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



[issue39885] IDLE right click should clear any selection

2020-03-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I believe the following is true: when only one selection is allowed, the cursor 
is normally at one end or the other, and any cursor movement either clear the 
selection or changes its range.

--

___
Python tracker 

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



[issue39885] IDLE right click should clear any selection

2020-03-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

(Mozilla) Thunderbird, unlike (Mozilla) Firefox, has move/clear right clicks.

--
title: IDLE right click should unselect -> IDLE right click should clear any 
selection

___
Python tracker 

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



[issue39852] IDLE: Goto should remove selection and update the status bar

2020-03-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Agreed about right clicks.  See new issue #39885.

--

___
Python tracker 

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



[issue39885] IDLE right click should unselect

2020-03-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Spinoff from #39852.  At least the selection clear code added there should be 
pulled into a module level function and tested.

--

___
Python tracker 

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



[issue39885] IDLE right click should unselect

2020-03-06 Thread Terry J. Reedy


New submission from Terry J. Reedy :

In text editors, right click commonly brings up a context menu, often including 
Cut, Copy, Paste, and Delete, with inapplicable entries grayed out.  There are 
at least 2 'standard' behaviors (at least on Windows) with respect to the 
cursor and selections. 

0 (Examples: Windows Notepad and Firefox entry box).  The cursor stays where it 
is and a selection stays selected, even if one has scrolled the cursor and 
possible selection off the screen with mousewheel or scrollbar. Paste inserts 
at the possibly hidden cursor, deleting any possibly hidden selection.  The 
view jumps back to the cursor after Paste but not after Copy and Close (Esc).

1 (Examples: Windows Notepad++ and Libre Office).  The cursor jumps to the spot 
of the click, the same as with a left click.  Any selection, possibly not 
visible, is unselected, the same as with a left click.  Exception: a right 
click within an exception leaves the selection and cursor (at one of the ends) 
alone.

IDLE follows a bit of each pattern and neither.  Right click always moves the 
cursor, even within a selection, but never clears a selection.  I believe that 
this is an accident of history.  Originally, context menus only had 'Go to 
file/line' in Shell and grep output and 'Set/Clear Breakpoint' in editors.  
There was no reason to touch a selection even if the cursor was moved.  
Cut/Copy/Paste were added in 2012 because they are standard.

To really be standard, right click should consistently act like left click and 
unselect.  This prevents accidental deletion.  This would also be consistent 
with making 'Go to line' act the same.

Also, right click within a selection should not move the cursor.

--
assignee: terry.reedy
components: IDLE
messages: 363577
nosy: terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: IDLE right click should unselect
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue39878] Remove unused args in Python/formatter_unicode.c

2020-03-06 Thread Andy Lester


Change by Andy Lester :


--
pull_requests: +18181
pull_request: https://github.com/python/cpython/pull/18822

___
Python tracker 

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



[issue14126] Speed up list comprehensions by preallocating the list where possible

2020-03-06 Thread Ammar Askar


Ammar Askar  added the comment:

I believe this was implemented in issue33234

--
nosy: +ammar2
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed
superseder:  -> Improve list() pre-sizing for inputs with known lengths

___
Python tracker 

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



[issue39884] "SystemError: bad call flags" exceptions added as part of BPO-33012 are difficult to debug

2020-03-06 Thread Enji Cooper


New submission from Enji Cooper :

When a body of C extensions needs to be ported from python <3.8 to 3.8, one of 
the issues one might run into is improperly defined methods in a C extension, 
which results in SystemErrors stating:

>>> SystemError: bad call flags

This new behavior was added as part of Issue # 33012.

While the issues definitely need to be resolved in the C extensions, where to 
start is not completely clear. I had to put `printfs` in PyCFunction_NewEx and 
PyDescr_NewMethod to track down the issues, e.g.,

>>> printf("method name: %s\n", method->ml_name);

While this might be misleading for duplicate method definitions, it definitely 
helps narrow down the offending code.

Adding the method name to the SystemError would be a big step in the right 
direction in terms of making it easier to resolve these issues.

PS I realize that this might be masked by casting PyCFunction on methods or by 
not using gcc 8+, but I'd argue that C extensions need to have developer issues 
like this be clearer to the end-reader.

--
components: Extension Modules
messages: 363575
nosy: ngie
priority: normal
severity: normal
status: open
title: "SystemError: bad call flags" exceptions added as part of BPO-33012 are 
difficult to debug
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



[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2020-03-06 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

Python 2 is done.

--
nosy: +benjamin.peterson
resolution:  -> rejected
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



[issue39127] _Py_HashPointer's void * argument should be const

2020-03-06 Thread Benjamin Peterson


Change by Benjamin Peterson :


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



[issue39883] Use BSD0 license for code in docs

2020-03-06 Thread Todd Jennings


New submission from Todd Jennings :

Currently using code examples and recipes from the documentation is complicated 
by the fact that they are all under the Python 2.0 license.  Putting them under 
a more permissive license, particular the BSD0 license, would make them much 
easier to use in other projects.

--
assignee: docs@python
components: Documentation
messages: 363573
nosy: docs@python, toddrjen
priority: normal
pull_requests: 18180
severity: normal
status: open
title: Use BSD0 license for code in docs
type: enhancement

___
Python tracker 

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



[issue39867] randrange(N) for N's in same dyadic blocs have excessive correlations when sharing identical seeds

2020-03-06 Thread Tim Peters


Tim Peters  added the comment:

I've been involved - usually very lightly, but sometimes deeply - with PRNGs 
for over 40 years.  I've never seen anyone raise the kinds of concerns you're 
raising here, and, frankly, they don't make sense to me.

But on the chance that I've missed recent fundamental developments, I did some 
searching.  The state of the art for uniform selection from a range appears to 
be what the Go language recently adopted, shown as Algorithm 5 in this paper 
(which also surveys what other languages do):

https://arxiv.org/pdf/1805.10941.pdf

Nobody gives a rip about "correlations" when reusing an internal state.  What 
they're aiming at is a combination of "no bias" and "peak speed".

Python's job is harder, because we couldn't care less what the native machine 
word size is.  For example, randrange(10**500) works fine.  Approaches based on 
chopping back multiplication with a "random" C double can't get more than 53 
bits (on most machines), the limit of IEEE-754 format double precision.  Python 
dropped that approach not only because it was slightly biased, but also because 
it didn't scale to unbounded ranges.

The Go approach works like this Python code, where NBITS would be hard coded in 
C to 32 or 64, depending on the machine word size.  Its advantage is that it 
_usually_ needs no arbitrary divisions (implied by "%") at all, just masking 
and shifting.  At worst, it _may_ need one for-real division.  But it's built 
to work with native machine integer precision, and requires full double-width 
integer multiplication:

from random import randrange
NBITS = 64 # need NBITS x NBITS full-precision multiply
POWER = 1 << NBITS
MASK = POWER - 1

def rr(s):  # uniform random int in range(s)
assert 0 < s <= POWER
x = randrange(POWER) # i.e., a random bitstring with NBITS bits
m = x * s # full double-width product
r = m & MASK
if r < s:
t = (POWER - s) % s  # the expensive line
while r < t:
x = randrange(POWER)
m = x * s
r = m & MASK
return m >> NBITS

In a nutshell, in each [i * POWER, (i+1) * POWER) clopen interval, it rejects 
the first POWER % s values, leaving exactly floor(POWER/s) multiples of s in 
the interval.

Of course that suffers "correlations" too if you reuse the seed - although not 
of the exact microscopic kind you're talking about.

You haven't responded to questions about why that specific test is thought to 
be especially important, or to why you believe you can't do an obvious thing 
instead (use different seeds, or don't reset the seed at all).

As to who's making raw assertions here, the situation isn't symmetric ;-)  If 
you want a change, you have to _make a case_ for it.  And a good one.  Every 
core Python developer who has knowledge of this code has now told you they 
personally don't see any case for it.  So, sorry, but the status quo is always 
favored in the absence of compelling reason to change.  There were compelling 
reasons to switch to the current scheme.  As you said yourself:

"""
And I understand the puzzlement about my test file setting the same random seed 
and then complaining about correlations. 
"""

That was insightful.  The difference is we never got over that puzzlement ;-)

--

___
Python tracker 

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



[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-06 Thread miss-islington


miss-islington  added the comment:


New changeset d692d52f4aaeb6feaabb18f18d49907dd578fbeb by Miss Islington (bot) 
in branch '3.8':
bpo-39837: Disable macOS tests on Azure Pipelines (GH-18818)
https://github.com/python/cpython/commit/d692d52f4aaeb6feaabb18f18d49907dd578fbeb


--

___
Python tracker 

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



[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-06 Thread miss-islington


miss-islington  added the comment:


New changeset 47b7c227048f2cb019cc3ec2fef7e867f1b232f3 by Miss Islington (bot) 
in branch '3.7':
bpo-39837: Disable macOS tests on Azure Pipelines (GH-18818)
https://github.com/python/cpython/commit/47b7c227048f2cb019cc3ec2fef7e867f1b232f3


--

___
Python tracker 

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



[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-06 Thread Steve Dower


Steve Dower  added the comment:

I've disabled macOS builds on Pipelines, so now they're essentially advisory 
through the GitHub Actions build.

I also pinged some contacts about the not-very-useful behaviour of required 
checks vs. path filters. So will see what they say.

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



[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-06 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18179
pull_request: https://github.com/python/cpython/pull/18821

___
Python tracker 

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



[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-06 Thread Steve Dower


Steve Dower  added the comment:


New changeset 31350f9af09dcff7cf6ff4b0a0a7ea595942372e by Steve Dower in branch 
'master':
bpo-39837: Disable macOS tests on Azure Pipelines (GH-18818)
https://github.com/python/cpython/commit/31350f9af09dcff7cf6ff4b0a0a7ea595942372e


--

___
Python tracker 

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



[issue39882] Py_FatalError(): log automatically the function name

2020-03-06 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 9e5d30cc99e34f4c3e7b2cd851de20816c9d1927 by Victor Stinner in 
branch 'master':
bpo-39882: Py_FatalError() logs the function name (GH-18819)
https://github.com/python/cpython/commit/9e5d30cc99e34f4c3e7b2cd851de20816c9d1927


--

___
Python tracker 

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



[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-06 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 7b3c252dc7f44d4bdc4c7c82d225ebd09c78f520 by Victor Stinner in 
branch 'master':
bpo-39877: _PyRuntimeState.finalizing becomes atomic (GH-18816)
https://github.com/python/cpython/commit/7b3c252dc7f44d4bdc4c7c82d225ebd09c78f520


--

___
Python tracker 

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



[issue39882] Py_FatalError(): log automatically the function name

2020-03-06 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue39882] Py_FatalError(): log automatically the function name

2020-03-06 Thread STINNER Victor


New submission from STINNER Victor :

Attached PR modify Py_FatalError() to log automatically the function name.

--
components: C API
messages: 363565
nosy: vstinner
priority: normal
severity: normal
status: open
title: Py_FatalError(): log automatically the function name
versions: Python 3.9

___
Python tracker 

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



[issue39573] Make PyObject an opaque structure in the limited C API

2020-03-06 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 557287075c264d2458cd3e1b45e9b8ee5341e0a1 by Andy Lester in branch 
'master':
 bpo-39573: Use Py_IS_TYPE() macro to check for types (GH-18809)
https://github.com/python/cpython/commit/557287075c264d2458cd3e1b45e9b8ee5341e0a1


--

___
Python tracker 

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



[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-06 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +18176
pull_request: https://github.com/python/cpython/pull/18818

___
Python tracker 

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



[issue18834] Add Clang to distutils to build C/C++ extensions

2020-03-06 Thread Ryan Gonzalez


Ryan Gonzalez  added the comment:

Oh my god this was still open? I think you can just use the CC variable, not 
sure what 6-years-younger-and-more-stupid me was thinking here. Sorry about the 
noise.

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



[issue21031] [patch] Add AlpineLinux to the platform module's supported distributions list

2020-03-06 Thread SilentGhost


Change by SilentGhost :


--
versions: +Python 3.9 -Python 3.5

___
Python tracker 

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



[issue39861] French doc __futur__: Bad URL

2020-03-06 Thread SilentGhost


Change by SilentGhost :


--
assignee: docs@python -> 
components:  -2to3 (2.x to 3.x conversion tool), Documentation
resolution:  -> third party
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



[issue39881] Multiple Interpreters in the Stdlib (PEP 554) - High-level Implementation

2020-03-06 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


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

___
Python tracker 

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



[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-06 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +18174
pull_request: https://github.com/python/cpython/pull/18816

___
Python tracker 

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



[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-06 Thread Brandt Bucher


Brandt Bucher  added the comment:

Great. Just replacing the TODO line with your new description (and maybe an 
example) should be perfect!

--
keywords:  -patch
stage: patch review -> 

___
Python tracker 

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



[issue39880] string.lstrip() with leading '3's

2020-03-06 Thread Steven D'Aprano


Change by Steven D'Aprano :


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



[issue39881] Multiple Interpreters in the Stdlib (PEP 554) - High-level Implementation

2020-03-06 Thread Joannah Nanjekye


New submission from Joannah Nanjekye :

This is to track the high-level implementation of PEP 554.

Please see the PEP here: https://www.python.org/dev/peps/pep-0554/

*** Note: PEP not accepted yet.

--
assignee: nanjekyejoannah
components: Interpreter Core
messages: 363561
nosy: eric.snow, nanjekyejoannah, ncoghlan, vstinner
priority: normal
severity: normal
status: open
title: Multiple Interpreters in the Stdlib (PEP 554) - High-level Implementation
versions: Python 3.9

___
Python tracker 

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



[issue39127] _Py_HashPointer's void * argument should be const

2020-03-06 Thread Andy Lester


Andy Lester  added the comment:

Is there more to do here or can it be closed?

--

___
Python tracker 

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



[issue27793] Double underscore variables in module are mangled when used in class

2020-03-06 Thread R. David Murray


R. David Murray  added the comment:

You are welcome to open a doc-enhancement issue for the global docs.  For the 
other, as noted already if you want to advocate for a change to this behavior 
you need to start on python-ideas, but I don't think you will get any traction.

Another possible enhancement you could propose (in a new issue) is to have the 
global statement check for variables that start with '__' and do something 
appropriate such as issue a warning...although I don't really know how hard 
that would be to implement.

--

___
Python tracker 

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



[issue39880] string.lstrip() with leading '3's

2020-03-06 Thread László Kiss Kollár

László Kiss Kollár  added the comment:

The argument in lstrip() is a set of characters which are stripped from the 
string and not a full substring. As the documentation states: "The chars 
argument is not a prefix; rather, all combinations of its values are stripped" 
See https://docs.python.org/3/library/stdtypes.html#str.lstrip.

--
nosy: +lkollar

___
Python tracker 

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



[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-06 Thread Luca


Luca  added the comment:

The issue has been fixed in `typeshed`, so the following is now allowed:

width = min(80, shutil.get_terminal_size().columns - 2)
formatter_class = lambda prog: argparse.RawDescriptionHelpFormatter(prog, 
width=width)

https://github.com/python/typeshed/issues/3806#event-3104796040

--

___
Python tracker 

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



[issue39791] New `files()` api from importlib_resources.

2020-03-06 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

The latest release, 1.3.0, includes extensibility support and has been merged 
with the cpython branch of the importlib_resources project. I believe that code 
is now synced with this project and ready to be applied here. I'm hoping 
benthayer can apply the changes and submit the pr.

--

___
Python tracker 

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



[issue39861] French doc __futur__: Bad URL

2020-03-06 Thread Matheus Vieira Portela


Matheus Vieira Portela  added the comment:

The PR has already been merged.

--

___
Python tracker 

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



[issue39880] string.lstrip() with leading '3's

2020-03-06 Thread Clayton Bingham


New submission from Clayton Bingham :

Code to reproduce the behavior:

```
string = 
'h.pt3dadd(.994527806812,7310.741605031661,-152.492,0.2815384615384615,sec=sectionList[1396])\n'
print(string.lstrip('h.pt3dadd(').split(','))
```

The lstrip method removed 'h.pt3dadd(' but also removes the 3's before the 
first decimal in the remaining string.

--
messages: 363555
nosy: Clayton Bingham
priority: normal
severity: normal
status: open
title: string.lstrip() with leading '3's
versions: Python 3.6

___
Python tracker 

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



[issue27793] Double underscore variables in module are mangled when used in class

2020-03-06 Thread Jan Christoph


Jan Christoph  added the comment:

In particular, this might conflict with the documentation of global, which 
states:

> If the target is an identifier (name):
>
>If the name does not occur in a global statement in the current code 
> block: the name is bound to the object in the current local namespace.
>
>Otherwise: the name is bound to the object in the current global namespace.

There is no exception of names that are within the body of a class object and 
start (but not end) with double underscores.

--

___
Python tracker 

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



[issue38894] Path.glob() sometimes misses files that match

2020-03-06 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue38894] Path.glob() sometimes misses files that match

2020-03-06 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Ok, I managed to reproduce. 

This seems a regression introduced by 
https://github.com/python/cpython/pull/11988 in issue 
https://bugs.python.org/issue36035.

--

___
Python tracker 

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



[issue38894] Path.glob() sometimes misses files that match

2020-03-06 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue14126] Speed up list comprehensions by preallocating the list where possible

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon
status: pending -> open

___
Python tracker 

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



[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon
status: pending -> open

___
Python tracker 

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



[issue12238] Readline module loading in interactive mode

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon
status: pending -> open

___
Python tracker 

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



[issue21031] [patch] Add AlpineLinux to the platform module's supported distributions list

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue19941] python -m imports non-ASCII .py file without encoding declaration

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue37497] Add inspect.Signature.from_text().

2020-03-06 Thread Yury Selivanov


Yury Selivanov  added the comment:

I'd be fine with `Signature.from_text()`, but not with `Signature` constructor 
/ `signature()` function accepting both callable and string arguments. Overall, 
I think that we ought to have a real need to add this new API, so unless 
there's a good (or any, really) use case I'd say we shouldn't merge this now.

--

___
Python tracker 

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



[issue19698] Implement _imp.exec_builtin and exec_dynamic

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
assignee: docs@python -> brett.cannon

___
Python tracker 

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



[issue19533] Unloading docstrings from memory if -OO is given

2020-03-06 Thread Brett Cannon


Brett Cannon  added the comment:

Do note that .pyc files now encode their optimization levels, so the only thing 
to potentially do here is change the compiler to toss docstrings out and make 
sure they are freed when they are parsed to avoid holding on to them.

--

___
Python tracker 

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



[issue19533] Unloading docstrings from memory if -OO is given

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue19531] Loading -OO bytecode files if -O was requested can lead to problems

2020-03-06 Thread Brett Cannon


Brett Cannon  added the comment:

.pyc files now include their optimization levels in their file names.

--
resolution:  -> fixed
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



[issue38894] Path.glob() sometimes misses files that match

2020-03-06 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:

I fail to reproduce this last example:

~/github/python/master master*
❯ mkdir tmp

~/github/python/master master*
❯ cd tmp 

~/github/python/master/tmp master*
❯ touch 1.txt

~/github/python/master/tmp master*
❯ ln -s subdir/file 2.txt   

~/github/python/master/tmp master*
❯ touch 3.txt

~/github/python/master/tmp master*
❯ python3.8 -c "import pathlib; print(list(pathlib.Path('.').glob('*')))" 

[PosixPath('1.txt'), PosixPath('3.txt'), PosixPath('2.txt')]

~/github/python/master/tmp master*
❯ mkdir subdir

~/github/python/master/tmp master*
❯ python3.8 -c "import pathlib; print(list(pathlib.Path('.').glob('*')))"  
[PosixPath('1.txt'), PosixPath('subdir'), PosixPath('3.txt'), 
PosixPath('2.txt')]

~/github/python/master/tmp master*
❯ chmod 000 subdir

~/github/python/master/tmp master*
❯ python3.8 -c "import pathlib; print(list(pathlib.Path('.').glob('*')))"
[PosixPath('1.txt'), PosixPath('subdir'), PosixPath('3.txt')]

--
keywords: +3.7regression, 3.8regression
versions: +Python 3.7, Python 3.9

___
Python tracker 

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



[issue19298] Use __attribute__(cleanup ...) to detect refleaks

2020-03-06 Thread Brett Cannon


Brett Cannon  added the comment:

This is still a neat idea. :)

--

___
Python tracker 

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



[issue18862] Implement __subclasshook__() for Finders and Loaders in importlib.abc

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue18961] Non-UTF8 encoding line

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue18831] importlib.import_module() bypasses builtins.__import__

2020-03-06 Thread Brett Cannon


Brett Cannon  added the comment:

I'm calling it and saying people are not expecting these semantics.

--
resolution:  -> not a bug
stage: test needed -> 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



[issue18307] Relative path in co_filename for zipped modules

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue18269] Add new parameter format for converter function w/ position number

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue17848] can't compile with clang and build a shared lib due to libffi

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue38894] Path.glob() sometimes misses files that match

2020-03-06 Thread Matt Wozniski


Matt Wozniski  added the comment:

A simple test case for this issue:

~>mkdir tmp
~>cd tmp
tmp>touch 1.txt
tmp>ln -s subdir/file 2.txt
tmp>touch 3.txt
tmp>ls -l
total 0
-rw-rw-r-- 1 mwoznisk general  0 Mar  6 14:52 1.txt
lrwxrwxrwx 1 mwoznisk general 11 Mar  6 14:52 2.txt -> subdir/file
-rw-rw-r-- 1 mwoznisk general  0 Mar  6 14:52 3.txt
tmp>python3.8 -c "import pathlib; print(list(pathlib.Path('.').glob('*')))"
[PosixPath('1.txt'), PosixPath('2.txt'), PosixPath('3.txt')]
tmp>mkdir subdir
tmp>python3.8 -c "import pathlib; print(list(pathlib.Path('.').glob('*')))"
[PosixPath('1.txt'), PosixPath('2.txt'), PosixPath('3.txt'), 
PosixPath('subdir')]

So far so good, but if the subdirectory isn't readable, things fall apart:

tmp>chmod 000 subdir
tmp>python3.8 -c "import pathlib; print(list(pathlib.Path('.').glob('*')))"
[PosixPath('1.txt')]

Looks like this is caused by entry.is_dir() in pathlib._WildcardSelector 
raising a PermissionError when trying to check if a symlink pointing into an 
unreadable directory is or isn't a directory.  EACCESS isn't in IGNORED_ERROS 
(sic) and so the loop over directory entries is broken out of, and the "except 
PermissionError:" block in _select_from swallows the exception so that the 
failure is silent.

--
nosy: +Matt Wozniski
versions: +Python 3.8 -Python 3.7

___
Python tracker 

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



[issue17296] Cannot unpickle classes derived from 'Exception'

2020-03-06 Thread Brett Cannon


Brett Cannon  added the comment:

As this was fixed in 3.3 that means all actively maintained versions have the 
fix, and so closing as fixed.

--
resolution:  -> fixed
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



[issue17231] Mark __del__ not being called in cycles as an impl detail

2020-03-06 Thread Brett Cannon


Brett Cannon  added the comment:

I believe this is covered in the latest docs for (at least) 3.9.

--
resolution:  -> fixed
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



[issue39875] urllib.request.urlopen sends POST data as query string

2020-03-06 Thread henrik242


henrik242  added the comment:

Root cause for this seems to be https://bugs.python.org/issue12849

--

___
Python tracker 

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



[issue19257] Sub-optimal error message when importing a non-package

2020-03-06 Thread Brett Cannon


Brett Cannon  added the comment:

I'm going to make a call and say the chained exception should stay. If people 
want to start the discussion again they can.

--
resolution:  -> rejected
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



[issue12849] Cannot override 'connection: close' in urllib2 headers

2020-03-06 Thread henrik242


henrik242  added the comment:

That mandatory "Connection: close" makes it impossible to POST a data request 
to Solr, as described in https://bugs.python.org/issue39875

It would be very helpful if it could be made optional.

--
nosy: +henrik242
versions: +Python 3.7

___
Python tracker 

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



[issue19081] zipimport behaves badly when the zip file changes while the process is running

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue18834] Add Clang to distutils to build C/C++ extensions

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue18717] test for request.urlretrieve

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue18275] Make isinstance() work with super type instances

2020-03-06 Thread Brett Cannon


Brett Cannon  added the comment:

After 6 years and no really movement I don't think we are going to bother to 
change the semantics for this. :)

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



[issue17716] From ... import fails when parent package failed but child module succeeded, yet works in std import case

2020-03-06 Thread Brett Cannon


Brett Cannon  added the comment:

Import now has proper messaging of the failure in the package and not an error 
about being unable to import the submodule.

--
resolution:  -> fixed
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



[issue18114] Update PyImport_ImportFrozenModuleObject() to set __package__

2020-03-06 Thread Brett Cannon


Brett Cannon  added the comment:

Since there's work to drop __package__, closing as "won't fix".

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



[issue17620] Python interactive console doesn't use sys.stdin for input

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue38894] Path.glob() sometimes misses files that match

2020-03-06 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
assignee:  -> pablogsal
nosy: +pablogsal

___
Python tracker 

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



[issue17004] Expand zipimport to include other compression methods

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue16981] ImportError hides real error when there too many open files during an import

2020-03-06 Thread Brett Cannon


Brett Cannon  added the comment:

Now that importlib is import and it would raise OSError I'm closing this as 
fixed.

--
resolution:  -> fixed
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



[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue16891] Fix docs about module search order

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue16845] warnings.simplefilter should validate input

2020-03-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue39810] Generic script for finding bugs in get_source_segment

2020-03-06 Thread Ivan Levkivskyi


Change by Ivan Levkivskyi :


--
nosy: +levkivskyi

___
Python tracker 

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



[issue36144] Dictionary union. (PEP 584)

2020-03-06 Thread Brandt Bucher


Change by Brandt Bucher :


--
pull_requests: +18172
pull_request: https://github.com/python/cpython/pull/18814

___
Python tracker 

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



[issue37497] Add inspect.Signature.from_text().

2020-03-06 Thread Eric Snow


Eric Snow  added the comment:

Honestly, I don't recall exactly the concrete use case for which I opened this. 
:)  I *think* it was related to applying a more restrictive signature onto an 
existing function (e.g. with a decorator).

--

___
Python tracker 

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



[issue17422] language reference should specify restrictions on class namespace

2020-03-06 Thread Eric Snow


Eric Snow  added the comment:

Thanks for fixing that, Caleb!

FWIW, I've opened a separate issue (#39879) for adding a note in the language 
reference about dict ordering.  Sorry for the confusion.

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



[issue39879] Update language reference to specify that dict is insertion-ordered.

2020-03-06 Thread Eric Snow


New submission from Eric Snow :

As of 3.7 [1], dict is guaranteed to preserve insertion order:

  the insertion-order preservation nature of dict
  objects has been declared to be an official part
  of the Python language spec.

However, at least one key part of the language reference [2] was not updated to 
reflect this:  "3.2. The standard type hierarchy" > "Mappings" > "Dictionaries".

Note that the library docs [3] *were* updated.


[1] https://docs.python.org/3/whatsnew/3.7.html#summary-release-highlights
[2] https://docs.python.org/3/reference/datamodel.html#index-30
[3] https://docs.python.org/3/library/stdtypes.html#typesmapping

--
assignee: docs@python
components: Documentation
keywords: easy
messages: 363533
nosy: docs@python, eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: Update language reference to specify that dict is insertion-ordered.
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue17422] language reference should specify restrictions on class namespace

2020-03-06 Thread miss-islington


miss-islington  added the comment:


New changeset 6df0c47669031c6a8e9b1a07ec2c5813e4c10ee0 by Miss Islington (bot) 
in branch '3.8':
bpo-17422: slightly more precise language (GH-18682)
https://github.com/python/cpython/commit/6df0c47669031c6a8e9b1a07ec2c5813e4c10ee0


--

___
Python tracker 

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



[issue17422] language reference should specify restrictions on class namespace

2020-03-06 Thread miss-islington


miss-islington  added the comment:


New changeset f1b79645cf18b2c212cd26d547cd1762fd534d4b by Miss Islington (bot) 
in branch '3.7':
bpo-17422: slightly more precise language (GH-18682)
https://github.com/python/cpython/commit/f1b79645cf18b2c212cd26d547cd1762fd534d4b


--

___
Python tracker 

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



[issue17422] language reference should specify restrictions on class namespace

2020-03-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18170
pull_request: https://github.com/python/cpython/pull/18812

___
Python tracker 

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



[issue17422] language reference should specify restrictions on class namespace

2020-03-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18171
pull_request: https://github.com/python/cpython/pull/18813

___
Python tracker 

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



[issue17422] language reference should specify restrictions on class namespace

2020-03-06 Thread miss-islington


miss-islington  added the comment:


New changeset e59334ebc9308b0f3ad048ef293c6b49e6456d1a by Caleb Donovick in 
branch 'master':
bpo-17422: slightly more precise language (GH-18682)
https://github.com/python/cpython/commit/e59334ebc9308b0f3ad048ef293c6b49e6456d1a


--

___
Python tracker 

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



[issue39873] Debug mode: check if objects are valid

2020-03-06 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 9a73705a1d0cb8b89d0a20add2ffa2c4d32950ed by Victor Stinner in 
branch 'master':
bpo-39873: Cleanup _PyObject_CheckConsistency() (GH-18807)
https://github.com/python/cpython/commit/9a73705a1d0cb8b89d0a20add2ffa2c4d32950ed


--

___
Python tracker 

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



[issue36144] Dictionary union. (PEP 584)

2020-03-06 Thread Brandt Bucher


Brandt Bucher  added the comment:

My brother will have a ChainMap PR up soon. I'm just finishing up 
MappingProxyType, myself. Probably both this weekend.

Then I'll move on to OrderedDict, which looks like it could be tricky. I'll 
need to familiarize myself with the implementation better (unless there's 
somebody who is already familiar with it who wants to take over). It looks 
well-commented, though.

I think we can pass on the http.cookies subclasses since there don't appear to 
be any experts/maintainers for that module.

--

___
Python tracker 

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



[issue36144] Dictionary union. (PEP 584)

2020-03-06 Thread Guido van Rossum


Guido van Rossum  added the comment:

Still waiting for ChainMap -- what else?

--

___
Python tracker 

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



[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-06 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +18169
pull_request: https://github.com/python/cpython/pull/18811

___
Python tracker 

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



[issue36144] Dictionary union. (PEP 584)

2020-03-06 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 57c9d1725689dde068a7fccaa7500772ecd16d2e by Brandt Bucher in 
branch 'master':
bpo-36144: Implement defaultdict union (GH-18729)
https://github.com/python/cpython/commit/57c9d1725689dde068a7fccaa7500772ecd16d2e


--

___
Python tracker 

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



[issue39878] Remove unused args in Python/formatter_unicode.c

2020-03-06 Thread Andy Lester


Change by Andy Lester :


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

___
Python tracker 

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



[issue39878] Remove unused args in Python/formatter_unicode.c

2020-03-06 Thread Andy Lester


New submission from Andy Lester :

The following functions have unused args:

calc_number_widths -> PyObject *number

fill_number -> Py_ssize_t d_end

--
components: Interpreter Core
messages: 363525
nosy: petdance
priority: normal
severity: normal
status: open
title: Remove unused args in Python/formatter_unicode.c

___
Python tracker 

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



  1   2   >