[issue39279] Don't allow non-Ascii digits in platform.py

2020-01-22 Thread Mark Dickinson


Mark Dickinson  added the comment:

> If you think I need to come up with a specific example where this can be 
> misused

I think so, yes. :-)

We shouldn't change this (and risk other breakage) without evidence that 
there's an actual problem.

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue39407] Bitfield Union does not work for bit widths greater than 8 bits

2020-01-22 Thread Ammar Askar


Change by Ammar Askar :


--
nosy: +vinay.sajip

___
Python tracker 

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



[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue39295] usage of bitfields in ctypes structures changed between 3.7.5 and 3.7.6

2020-01-22 Thread Vinay Sajip


Change by Vinay Sajip :


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



[issue38921] Max Recursion Depth Reached in Logging Library

2020-01-22 Thread Vinay Sajip


Vinay Sajip  added the comment:

@yang, thanks for the analysis - spot on. Closing, as this is a bug in the 
reporter's code and not in logging.

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



[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

2020-01-22 Thread Vinay Sajip


Vinay Sajip  added the comment:

> This *should* reside in the bin directory

That's your opinion, but there are other views. As Paul Moore said in this 
comment:

https://github.com/python/cpython/pull/18083#issuecomment-577278587

Having things in bin *and* Scripts is more confusing than "on Windows use 
Scripts, on POSIX use bin".

--

___
Python tracker 

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



[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread miss-islington


miss-islington  added the comment:


New changeset 545fc51d950558ecec9ff64cb2f9c11469051524 by Miss Islington (bot) 
in branch '3.8':
bpo-32989: IDLE - remove unneeded parameter  (GH-18138)
https://github.com/python/cpython/commit/545fc51d950558ecec9ff64cb2f9c11469051524


--

___
Python tracker 

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



[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread miss-islington


miss-islington  added the comment:


New changeset 36968c13cb9800559dbb90686933da7daf52c788 by Miss Islington (bot) 
in branch '3.7':
bpo-32989: IDLE - remove unneeded parameter  (GH-18138)
https://github.com/python/cpython/commit/36968c13cb9800559dbb90686933da7daf52c788


--

___
Python tracker 

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



[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset f9e07e116c32b6dc4561d0bdeb452ccde13b0e7c by Terry Jan Reedy in 
branch 'master':
bpo-32989: IDLE - remove unneeded parameter  (GH-18138)
https://github.com/python/cpython/commit/f9e07e116c32b6dc4561d0bdeb452ccde13b0e7c


--

___
Python tracker 

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



[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17525
pull_request: https://github.com/python/cpython/pull/18139

___
Python tracker 

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



[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17526
pull_request: https://github.com/python/cpython/pull/18140

___
Python tracker 

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



[issue39279] Don't allow non-Ascii digits in platform.py

2020-01-22 Thread Ezio Melotti


Ezio Melotti  added the comment:

Do you know/can you verify if Chinese versions of Windows/Linux/MacOS  include 
non-ASCII version numbers (e.g. fullwidth digits)?

--

___
Python tracker 

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



[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +17524
pull_request: https://github.com/python/cpython/pull/18138

___
Python tracker 

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



[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Tim, idlelib.pyparse has this definition:

# Find what looks like the start of a popular statement.
_synchre = re.compile(r"""
^
[ \t]*
(?: while
|   else
|   def
|   return
|   assert
|   break
|   class
|   continue
|   elif
|   try
|   except
|   raise
|   import
|   yield
)
\b
""", re.VERBOSE | re.MULTILINE).search

You are credited with adding 'yield' to David Sherer's original list:
  "Taught IDLE's autoident parser that "yield" is a keyword that begins
   a stmt." --tim_one (found via git blame)

Do you know if there is any reason to not add 'if', 'for', and now 'with'?

--
nosy: +tim.peters

___
Python tracker 

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



[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Cheryl, sorry to take so long.  I will look at and probably remove the _synchre 
parameter, on this issue.  Feel free to pursue any of the other possible 
followups.

--
versions: +Python 3.9 -Python 3.6

___
Python tracker 

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



[issue39050] The "Help" button in IDLE's config dialog does not work

2020-01-22 Thread miss-islington


miss-islington  added the comment:


New changeset 3b7618809df647574e8aad4c2d869a1d55df147c by Miss Islington (bot) 
in branch '3.8':
bpo-39050: The Help button in IDLE's config menu works again (GH-17611)
https://github.com/python/cpython/commit/3b7618809df647574e8aad4c2d869a1d55df147c


--

___
Python tracker 

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



[issue39050] The "Help" button in IDLE's config dialog does not work

2020-01-22 Thread miss-islington


miss-islington  added the comment:


New changeset ba83d1eb1c7b5e8eab17da364a6324b0b0e0932b by Miss Islington (bot) 
in branch '3.7':
bpo-39050: The Help button in IDLE's config menu works again (GH-17611)
https://github.com/python/cpython/commit/ba83d1eb1c7b5e8eab17da364a6324b0b0e0932b


--
nosy: +miss-islington

___
Python tracker 

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



[issue39050] The "Help" button in IDLE's config dialog does not work

2020-01-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17523
pull_request: https://github.com/python/cpython/pull/18137

___
Python tracker 

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



[issue39050] The "Help" button in IDLE's config dialog does not work

2020-01-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 2e43b64c94e49f7133b9c26e84c9519935c49063 by Terry Jan Reedy 
(Zackery Spytz) in branch 'master':
bpo-39050: The Help button in IDLE's config menu works again (GH-17611)
https://github.com/python/cpython/commit/2e43b64c94e49f7133b9c26e84c9519935c49063


--

___
Python tracker 

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



[issue39050] The "Help" button in IDLE's config dialog does not work

2020-01-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17522
pull_request: https://github.com/python/cpython/pull/18136

___
Python tracker 

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



[issue39298] add BLAKE3 to hashlib

2020-01-22 Thread Jack O'Connor


Jack O'Connor  added the comment:

Version 0.1.3 of the official BLAKE3 repo includes some significant performance 
improvements:

- The x86 implementations include explicit prefetch instructions, which helps 
with long inputs. (commit b8c33e1)
- The C implementation now uses the same parallel parent hashing strategy that 
the Rust implementation uses. (commit 163f522)

When I repeat the benchmarks above with TurboBoost on, here's what I see now:

BLAKE3 Rust  2578 MB/s
BLAKE3 C (clang -O3) 2502 MB/s
BLAKE3 C (gcc -O2)   2223 MB/s
K12 C (gcc -O2)  2175 MB/s

Larry, if you have time to repeat your benchmarks with the latest C code, I'd 
be curious to see if you get similar results.

--

___
Python tracker 

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



[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-22 Thread Ned Deily


Change by Ned Deily :


--
nosy: +ned.deily

___
Python tracker 

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



[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-22 Thread Ned Deily


Change by Ned Deily :


--
priority: normal -> deferred blocker

___
Python tracker 

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



[issue39279] Don't allow non-Ascii digits in platform.py

2020-01-22 Thread Xiang Zhang


Xiang Zhang  added the comment:

I can't understand the rational for rejecting localized digits though I don't 
know who will use them in practise. I'd rather fix it until there is a real 
problem with it.

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue29435] Allow to pass fileobj to is_tarfile

2020-01-22 Thread William Woodruff


William Woodruff  added the comment:

Thanks to you to!

--

___
Python tracker 

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



[issue29435] Allow to pass fileobj to is_tarfile

2020-01-22 Thread Ethan Furman


Ethan Furman  added the comment:

Thanks, William!

--
assignee:  -> ethan.furman
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



[issue29435] Allow to pass fileobj to is_tarfile

2020-01-22 Thread Ethan Furman


Ethan Furman  added the comment:


New changeset dd754caf144009f0569dda5053465ba2accb7b4d by Ethan Furman (William 
Woodruff) in branch 'master':
bpo-29435: Allow is_tarfile to take a filelike obj (GH-18090)
https://github.com/python/cpython/commit/dd754caf144009f0569dda5053465ba2accb7b4d


--

___
Python tracker 

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



[issue39395] The os module should unset() environment variable at exit

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

Clearing environment variables at exit has a drawback: it changes the behavior 
in code executed after Python finalization (Py_FinalizeEx() call). It may cause 
regression.

So I proposed PR 18135 to fix this issue differently: on non-Windows platforms, 
Python now requires setenv() to build. This PR has no backward compatibility 
issue: it doesn't unset environment variables at exit.

--

___
Python tracker 

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



[issue39395] The os module should unset() environment variable at exit

2020-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +17521
pull_request: https://github.com/python/cpython/pull/18135

___
Python tracker 

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



[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-22 Thread Steve Dower


Steve Dower  added the comment:

Agreed, we can just search System32 for this. Thanks for doing the patch!

For future reference, and for anyone else reading this, we generally prefer 
unavoidable DLL hijacking bugs to come to the Python Security Response Team 
first (secur...@python.org).

--

___
Python tracker 

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



[issue39412] Install launcher for all users

2020-01-22 Thread Steve Dower


Steve Dower  added the comment:

It's also a little bit historical - there was no way to *remove* the Python 3.4 
launcher (always in C:\Windows), and it wasn't going to find many 3.5 installs, 
so we stomp on it.

At this stage, it's potentially safe to turn it into a per-user install by 
default, but I'm not convinced it's a big enough issue to make the change. The 
only "complaints" I've ever heard have been like this one.

--

___
Python tracker 

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



[issue39412] Install launcher for all users

2020-01-22 Thread Steve Dower


Change by Steve Dower :


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



[issue39427] python -X options are not documented in the CLI --help

2020-01-22 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +17520
pull_request: https://github.com/python/cpython/pull/18134

___
Python tracker 

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



[issue39427] python -X options are not documented in the CLI --help

2020-01-22 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +17519
pull_request: https://github.com/python/cpython/pull/18133

___
Python tracker 

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



[issue39429] Add a new "Python Development Mode" page to the documentation

2020-01-22 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue39427] python -X options are not documented in the CLI --help

2020-01-22 Thread miss-islington


miss-islington  added the comment:


New changeset 41f0ef6abbd304409c55612a08788cdd59fbc8a3 by Miss Islington (bot) 
(Pablo Galindo) in branch 'master':
bpo-39427: Document -X opt options in the CLI --help and the man page (GH-18131)
https://github.com/python/cpython/commit/41f0ef6abbd304409c55612a08788cdd59fbc8a3


--
nosy: +miss-islington

___
Python tracker 

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



[issue39429] Add a new "Python Development Mode" page to the documentation

2020-01-22 Thread STINNER Victor


New submission from STINNER Victor :

Currently, the Python Development Mode is under-documented. The documentation 
lives in the documentation of the -X command line option which doesn't give 
much space to elaborate on effects of the development mode, how it should be 
used, suggest ways to get more information, etc.

Attached PR adds a new "Python Development Mode" page to the documentation to 
suggest more advices and add examples.

--
assignee: docs@python
components: Documentation
messages: 360527
nosy: docs@python, vstinner
priority: normal
severity: normal
status: open
title: Add a new "Python Development Mode" page to the documentation
versions: Python 3.9

___
Python tracker 

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



[issue39336] Immutable module type can't be used as package in custom loader

2020-01-22 Thread Dino Viehland


Change by Dino Viehland :


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



[issue39336] Immutable module type can't be used as package in custom loader

2020-01-22 Thread Dino Viehland


Dino Viehland  added the comment:


New changeset 9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8 by Dino Viehland in 
branch 'master':
bpo-39336: Allow packages to not let their child modules be set on them (#18006)
https://github.com/python/cpython/commit/9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8


--

___
Python tracker 

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



[issue39389] gzip metadata fails to reflect compresslevel

2020-01-22 Thread William Chargin


William Chargin  added the comment:

My pleasure; thanks for the triage and review!

--

___
Python tracker 

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



[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2020-01-22 Thread Miro Hrončok

Miro Hrončok  added the comment:

For the record, looking at https://docs.python.org/3.9/whatsnew/3.9.html I had 
an impression that this also affects regular imports, as described in 
https://bugzilla.redhat.com/show_bug.cgi?id=1791769#c2 -- if that's not that 
case, I'm sorry.

Anyway, I get your point of "next 30 years of Python".

--

___
Python tracker 

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



[issue39428] allow creation of "symtable entry" objects from Python

2020-01-22 Thread Carl Meyer


New submission from Carl Meyer :

Currently the "symtable entry" extension type (PySTEntry_Type) defined in 
`Python/symtable.c` defines no `tp_new` or `tp_init`, making it impossible to 
create instances of this type from Python code.

I have a use case for pickling symbol tables (as part of a cache subsystem for 
a static analyzer), but the inability to create instances of symtable entries 
from attributes makes this impossible, even with custom pickle support via 
dispatch_table or copyreg.

If the idea of making instances of this type creatable from Python is accepted 
in principle, I can submit a PR for it.

Thanks!

--
messages: 360522
nosy: carljm
priority: normal
severity: normal
status: open
title: allow creation of "symtable entry" objects from Python
type: enhancement

___
Python tracker 

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



[issue35182] Popen.communicate() breaks when child closes its side of pipe but not exits

2020-01-22 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

backport automation appears unhappy at the moment.  I'm keeping this open and 
assigned to me to manually run cherry_picker on this for 3.8 and 3.7 (if still 
open for non-security fixes).

--
assignee:  -> gregory.p.smith
stage: patch review -> backport needed
versions:  -Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue35182] Popen.communicate() breaks when child closes its side of pipe but not exits

2020-01-22 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset d3ae95e1e945ed20297e1c38ba43a18b7a868ab6 by Gregory P. Smith 
(Alex Rebert) in branch 'master':
bpo-35182: fix communicate() crash after child closes its pipes (GH-17020) 
(GH-18117)
https://github.com/python/cpython/commit/d3ae95e1e945ed20297e1c38ba43a18b7a868ab6


--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread Martin Panter


Martin Panter  added the comment:

Building and verifying the checksum in "RTA protocol" that uses this: 
.
 But I understand CRC-CCITT is one of the two popular 16-bit CRC polynomials, 
used in many other places, according to 
.

--

___
Python tracker 

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



[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

> Is there a recommended replacement for calculating CRC-CCITT? Do it yourself 
> in Python code, or use a particular external module?

What is your use case?

--

___
Python tracker 

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



[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread Martin Panter


Martin Panter  added the comment:

Is there a recommended replacement for calculating CRC-CCITT? Do it yourself in 
Python code, or use a particular external module?

--
nosy: +martin.panter

___
Python tracker 

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



[issue39427] python -X options are not documented in the CLI --help

2020-01-22 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue39427] python -X options are not documented in the CLI --help

2020-01-22 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

When running python --help there is no documentation on the -X opt options 
available. It just says:

-X opt : set implementation-specific option

without what 'opt' can be.

--
assignee: pablogsal
components: Interpreter Core
messages: 360516
nosy: pablogsal, vstinner
priority: normal
severity: normal
status: open
title: python -X options are not documented in the CLI --help
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



[issue39425] list.count performance regression

2020-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +17516
pull_request: https://github.com/python/cpython/pull/18130

___
Python tracker 

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



[issue39395] The os module should unset() environment variable at exit

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

I closed bpo-39406: os.putenv() is now implemented with setenv() if available. 
The internal putenv_dict is no longer used on Windows and if setenv() is 
available.

Now only non-Windows platforms without setenv() are affected by this issue.

--

___
Python tracker 

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



[issue39366] Remove deprecated nntplib method

2020-01-22 Thread Berker Peksag


Berker Peksag  added the comment:

Thanks for the PR! I'm glad these previously deprecated functions are now gone.

--
components: +Library (Lib)
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> enhancement

___
Python tracker 

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



[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

The initial issue has been fixed, so I close the issue. Big thanks to Eryk Sun 
for your great help, thanks also Serhiy Storchaka.

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

___
Python tracker 

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



[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

Serhiy:
> Maybe use SetEnvironmentVariable() on Windows?

In bpo-39413, I implemented os.unsetenv() on Windows using 
SetEnvironmentVariable(), but Eryk reported that SetEnvironmentVariable() does 
not update the CRT API (_environ, _wenviron, getenv, etc.). So I reverted my 
change. See bpo-39413 for the details.


Eryk:
> Windows ucrt copies the buffer that's passed to _[w]putenv.

Thank you for checking manually. I pushed commit 
0852c7dd52ac42e7843ddfef44571494e4c86070 to avoid putenv_dict on Windows.

--

___
Python tracker 

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



[issue39366] Remove deprecated nntplib method

2020-01-22 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset 1f0f102dec506fd06f912b74dd2be64a7fba0d3f by Berker Peksag 
(Dong-hee Na) in branch 'master':
bpo-39366: Remove xpath() and xgtitle() methods of NNTP (GH-18035)
https://github.com/python/cpython/commit/1f0f102dec506fd06f912b74dd2be64a7fba0d3f


--
nosy: +berker.peksag

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> The following result is a little bit surprising:

haha, I went to exactly the same journey when reviewing this PR :)

--

___
Python tracker 

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



[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b477d19a6b7751b0c933b239dae4fc96dbcde9c4 by Victor Stinner in 
branch 'master':
bpo-39406: Implement os.putenv() with setenv() if available (GH-18128)
https://github.com/python/cpython/commit/b477d19a6b7751b0c933b239dae4fc96dbcde9c4


--

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

> In fact, PyObject_RichCompareBool() has a fast path if the two object 
> pointers are equal

It's documented:

https://docs.python.org/dev/c-api/object.html?highlight=pyobject_richcomparebool#c.PyObject_RichCompareBool

--

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

The following result is a little bit surprising:

>>> nan=float("nan"); ([nan]*5).count(nan)
5
>>> nan == nan
False

But in fact, the optimization doesn't change the value. It was already 5 
previously.

In fact, PyObject_RichCompareBool() has a fast path if the two object pointers 
are equal:

/* Quick result when objects are the same.
   Guarantees that identity implies equality. */
if (v == w) {
if (op == Py_EQ)
return 1;
else if (op == Py_NE)
return 0;
}

In short, the optimization is good: thank you ;-)

--

___
Python tracker 

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



[issue39411] pyclbr rewrite using AST

2020-01-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

A separate doc change issue and PR would be fine.  Should we add a note 
explaining the module name as a contraction of an originally restricted scope?  
Make me nosy and invite review.

Actually, a doc issue for the module as is should *fully* explain readmodule_ex 
first (its entry is now incomplete), and then explain readmodule as a filtered 
version kept for back compatibility.  This could be a separate PR on the same 
issue, written by one of us, if too much for your friend.

I understood limits of this PR. I should have said change notes were intended 
for your 'second PR'. 

Changing the return value to a Module should mean a third function, which would 
then become the main function, as readmodule_ex would then be Module.children.

I have thought about making it possible to browse non-source modules, at least 
for the module being browsed.  I might implement that first in IDLE.

--

___
Python tracker 

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



[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +17515
pull_request: https://github.com/python/cpython/pull/18128

___
Python tracker 

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



[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 0852c7dd52ac42e7843ddfef44571494e4c86070 by Victor Stinner in 
branch 'master':
bpo-39406: os.putenv() avoids putenv_dict on Windows (GH-18126)
https://github.com/python/cpython/commit/0852c7dd52ac42e7843ddfef44571494e4c86070


--

___
Python tracker 

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



[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier

2020-01-22 Thread R. David Murray


R. David Murray  added the comment:

Thanks for the PR, but I've noted an issue on the review.  In any case we 
should agree on what goes in the repr here in this issue before actually 
implementing anything.

--

___
Python tracker 

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



[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier

2020-01-22 Thread Zackery Spytz


Change by Zackery Spytz :


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



[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier

2020-01-22 Thread Zackery Spytz


Change by Zackery Spytz :


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

___
Python tracker 

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



[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +17513
pull_request: https://github.com/python/cpython/pull/18126

___
Python tracker 

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



[issue39413] Implement os.unsetenv() on Windows

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b73dd02ea744288831f71363a7467552c09875ea by Victor Stinner in 
branch 'master':
Revert "bpo-39413: Implement os.unsetenv() on Windows (GH-18104)" (GH-18124)
https://github.com/python/cpython/commit/b73dd02ea744288831f71363a7467552c09875ea


--

___
Python tracker 

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



[issue39361] [C API] Document PyTypeObject.tp_print removal in What's New In Python 3.9

2020-01-22 Thread Ammar Askar


Change by Ammar Askar :


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

___
Python tracker 

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



[issue39413] Implement os.unsetenv() on Windows

2020-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +17511
pull_request: https://github.com/python/cpython/pull/18124

___
Python tracker 

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



[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

> I agree with deprecating binhex.

Good :-) It's now deprecated.

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



[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset beea26b57e8c80f1eff0f967a0f9d083a7dc3d66 by Victor Stinner in 
branch 'master':
bpo-39353: Deprecate the binhex module (GH-18025)
https://github.com/python/cpython/commit/beea26b57e8c80f1eff0f967a0f9d083a7dc3d66


--

___
Python tracker 

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



[issue38076] Make struct module PEP-384 compatible

2020-01-22 Thread Dino Viehland


Dino Viehland  added the comment:

With either fix, or with both, on Linux I still see this hang at shutdown.  
Victor mentioned the fact that he had to hit Ctrl-C on Linux to see this, and I 
have to do the same thing. Then with the fixes in place the original test case 
still hangs on shutdown.  

On Python 3.7 (I don't readily have 3.8 available) at least this just runs and 
completes with no ctrl-C and no crashes.  So while either of the fixes may be 
good to prevent the crashes, there's still probably some underlying issue in 
multiprocessing.  I haven't tested on Mac OS/X.

It looks like the clearing was originally introduced here: 
https://bugs.python.org/issue10241  Interestingly there was a similar issue w/ 
_tkinter, which also used PyType_FromSpec (although it sounds like it was just 
a ref count issue on the type).  Unfortunately there's no associated test cases 
added to verify the behavior.  Antoine and Neil are both now on the PR which 
removes the collection behavior so hopefully they can chime in on the safety of 
that fix.

--

___
Python tracker 

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



[issue39400] pydoc: Use of MANPAGER variable is incorrect

2020-01-22 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue39426] Pickler docstring misstates default and highest protocols

2020-01-22 Thread Mark Dickinson


Change by Mark Dickinson :


--
assignee: docs@python -> mark.dickinson

___
Python tracker 

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



[issue39426] Pickler docstring misstates default and highest protocols

2020-01-22 Thread Mark Dickinson


Mark Dickinson  added the comment:

> Do you want to submit a PR?

Not immediately. I'll add it to my to-do list, but definitely won't complain if 
someone else gets there first.

--

___
Python tracker 

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



[issue39426] Pickler docstring misstates default and highest protocols

2020-01-22 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Good catch.  Do you want to submit a PR?

--

___
Python tracker 

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



[issue39426] Pickler docstring misstates default and highest protocols

2020-01-22 Thread Mark Dickinson


New submission from Mark Dickinson :

>From the pickle.Pickler docstring:

> The optional *protocol* argument tells the pickler to use the given
> protocol; supported protocols are 0, 1, 2, 3 and 4.  The default
> protocol is 3; a backward-incompatible protocol designed for Python 3.

That's out of date since Python 3.8, where the default protocol is 4 and the 
highest available is 5. For future-proofing, it may be worth rewording the 
docstring to refer directly to the DEFAULT_PROTOCOL and HIGHEST_PROTOCOL 
constants.

--
assignee: docs@python
components: Documentation
messages: 360497
nosy: docs@python, mark.dickinson, pitrou
priority: normal
severity: normal
status: open
title: Pickler docstring misstates default and highest protocols
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



[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2020-01-22 Thread Brett Cannon


Brett Cannon  added the comment:

The problem with the hybrid exception is that importlib would then still raise 
a different exception from import itself, so the discrepancy would persist. And 
if you updated import you could then break people in another way where they 
were catching ValueError and ImportError separately for different cases and now 
they would potentially catch the wrong exception for that ValueError case.

Basically changing what exceptions get raised sucks as someone is almost 
inevitably broken. But since import and importlib strive to mirror each other 
as much as possible and be drop-in replacements, the consistency for the next 
30 years of Python's life is more important I think than the case of:

1. Someone using importlib.import_module()
2. Who is specifically worried about relative imports going too far and no 
other import-related import and thus only catching ValueError and not 
ImportError
3. And are supporting older versions of Python
4. And will have a difficult time updating their `except` clause to now also 
capture ImportError

--

___
Python tracker 

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



[issue39422] datetime.datetime.strptime incorrectly interpretting format '%Y%m%d'

2020-01-22 Thread Cleland Loszewski


Cleland Loszewski  added the comment:

You're right, I did mean the second string to report '20200106'.  
Looking closer, I see that I was reading the documentation incorrectly and 
getting hung up on an introduced ambiguity.
```python
from datetime import datetime
print(datetime.strptime('2020016', '%Y%m%d'))
print(datetime.strptime('20200106', '%Y%m%d'))
print(datetime.strptime('202016', '%Y%m%d'))
print(datetime.strptime('2020106', '%Y%m%d'))
```

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

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 9e06d61af30bac4fcacb7973f826147ccc010392 by Pablo Galindo (Miss 
Islington (bot)) in branch '3.7':
bpo-39425: Fix list.count performance regression (GH-18119) (GH-18121)
https://github.com/python/cpython/commit/9e06d61af30bac4fcacb7973f826147ccc010392


--

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Thanks for the PR, Dong-hee Na :)

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



[issue39425] list.count performance regression

2020-01-22 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset fdb21609d944941f0732df72dc3d07a7a9a7efea by Pablo Galindo (Miss 
Islington (bot)) in branch '3.8':
bpo-39425: Fix list.count performance regression (GH-18119) (GH-18120)
https://github.com/python/cpython/commit/fdb21609d944941f0732df72dc3d07a7a9a7efea


--

___
Python tracker 

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



[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

2020-01-22 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



[issue39390] shutil.copytree - 3.8 changed argument types of the ignore callback

2020-01-22 Thread Manuel Barkhau


Change by Manuel Barkhau :


--
pull_requests: +17509
pull_request: https://github.com/python/cpython/pull/18122

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17507
pull_request: https://github.com/python/cpython/pull/18120

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread miss-islington


miss-islington  added the comment:


New changeset 14d80d0b605d8b148e14458e4c1853a940071462 by Miss Islington (bot) 
(Dong-hee Na) in branch 'master':
bpo-39425: Fix list.count performance regression (GH-18119)
https://github.com/python/cpython/commit/14d80d0b605d8b148e14458e4c1853a940071462


--
nosy: +miss-islington

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17508
pull_request: https://github.com/python/cpython/pull/18121

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread Dong-hee Na


Change by Dong-hee Na :


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



[issue39420] Windows: convertenviron() doesn't parse environment variables properly

2020-01-22 Thread Eryk Sun


Eryk Sun  added the comment:

> The problem is that the _wputenv() function allows to insert variable 
> names containing the "=" character 

No, it does not. Your experiments uncovered bugs elsewhere with the 
implementations of _wgetenv and WINAPI GetEnvironmentVariableW, but this isn't 
one of them. _wputenv(L"victor==secret") updates the OS environment by calling 
SetEnvironmentVariableW(L"victor", L"=secret"). That is the only correct 
result. A variable name is only allowed to contain "=" as the first character, 
where it is unambiguous. The first "=" beyond the first character must be the 
value delimiter.

--
nosy: +eryksun

___
Python tracker 

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



[issue38495] print built-in function docs bug

2020-01-22 Thread Julien Palard

Julien Palard  added the comment:

PR 17062 about stating it's a space by default has been rejected.

I also feel we should just enhance the space width in the prototype.

I personally see the space, but as it's in italic, I can understand it's very 
easy to miss it.

I like the `font-family: monospace, sans-serif; font-style: normal;` a lot, it 
make it clear, see screenshot, but it's an issue for python-docs-theme, opening 
it there: https://github.com/python/python-docs-theme/issues/42

--
keywords: +easy -patch
nosy: +mdk
Added file: https://bugs.python.org/file48859/Screenshot_2020-01-22 Fonctions 
natives — Documentation Python 3 8 1.png

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +inada.naoki, pablogsal, vstinner

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread Dong-hee Na


Change by Dong-hee Na :


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

___
Python tracker 

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



[issue39425] list.count performance regression

2020-01-22 Thread Dong-hee Na


New submission from Dong-hee Na :

./python.exe -m pyperf timeit -s 'a = [1]*100'  'a.count(1)'

Current Master: Mean +- std dev: 1.05 us +- 0.03 us
My patch: Mean +- std dev: 423 ns +- 11 ns

This is the side-effect of pr 17022.

--
assignee: corona10
messages: 360488
nosy: corona10
priority: normal
severity: normal
status: open
title: list.count performance regression
type: performance
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



[issue39422] datetime.datetime.strptime incorrectly interpretting format '%Y%m%d'

2020-01-22 Thread SilentGhost


SilentGhost  added the comment:

They do not "report same datetime output". Did you mean to use '20200106' as 
the second input string? Because, leading zeros being optional for certain 
format specifiers is a documented feature of strptime.

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

___
Python tracker 

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



[issue39424] test_signal: test_pidfd_send_signal() uses deprecated assertRaisesRegexp() method

2020-01-22 Thread STINNER Victor


New submission from STINNER Victor :

test_signal.test_pidfd_send_signal() should use assertRaisesRegex() rather than 
assertRaisesRegexp():

$ ./python -Werror -m test -v test_signal -m test_pidfd_send_signal 
(...)
==
ERROR: test_pidfd_send_signal (test.test_signal.PidfdSignalTest)
--
Traceback (most recent call last):
  File "/home/vstinner/python/master/Lib/test/test_signal.py", line 1292, in 
test_pidfd_send_signal
with self.assertRaisesRegexp(TypeError, "^siginfo must be None$"):
  File "/home/vstinner/python/master/Lib/unittest/case.py", line 1390, in 
deprecated_func
warnings.warn(
DeprecationWarning: Please use assertRaisesRegex instead.

--
components: Tests
keywords: newcomer friendly
messages: 360486
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_signal: test_pidfd_send_signal() uses deprecated 
assertRaisesRegexp() method
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



[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2020-01-22 Thread Anthony Sottile


Anthony Sottile  added the comment:

sure, it's the standard PATHEXT (basically a fresh vm from modern.ie) -- the 
only reason I noticed this is I was reading the source: 
https://github.com/python/cpython/blob/5bbac8cbdf140ebce446ea4e7db2b20a5d7b8402/Lib/shutil.py#L1367-L1373



C:\Users\IEUser>echo %PATHEXT%
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW

--

___
Python tracker 

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



[issue39421] Use-after-free in heappushpop() of heapq module

2020-01-22 Thread Dong-hee Na


Dong-hee Na  added the comment:

@pablogsal

I agree with hotfix is needed and also for discussion.
I left a comment for PR 18118. Please take a look :)

--

___
Python tracker 

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



[issue39423] Process finished with exit code -1073741819 (0xC0000005) when trying to access data from a pickled file

2020-01-22 Thread mapf


mapf  added the comment:

I forgot to mention that sometimes, when I dump and load the data in the same 
session and try to access / use the data in question, I get the following Error:

"Fatal Python error: GC object already tracked"

--

___
Python tracker 

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



[issue39422] datetime.datetime.strptime incorrectly interpretting format '%Y%m%d'

2020-01-22 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +belopolsky, p-ganssle

___
Python tracker 

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



  1   2   >