[issue40832] hi param in bisect module should not accept negative values

2020-05-31 Thread Vikash Raja Samuel Selvin


Vikash Raja Samuel Selvin  added the comment:

Thanks for your comments. Just to make sure I understood correctly, even though 
something like  bisect.bisect_right(l, 5.1, 0, -2) [This returns 0 which is 
wrong] is allowed, since it is not common / intended it is ok to not check for 
negative values for hi.

--

___
Python tracker 

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



[issue40788] Build issue Solaris 10 Sparc

2020-05-31 Thread Warren Hardy


Warren Hardy  added the comment:

here is the config.log, had to gzip it to upload

--
Added file: https://bugs.python.org/file49207/config.log.gz

___
Python tracker 

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



[issue40788] Build issue Solaris 10 Sparc

2020-05-31 Thread Warren Hardy


Warren Hardy  added the comment:

not to sound like an idiot, where do i find the compile log?

--

___
Python tracker 

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



[issue40788] Build issue Solaris 10 Sparc

2020-05-31 Thread Dong-hee Na


Dong-hee Na  added the comment:

Please submit the compile error log you met :)
It will be helpful to maintainers

--
nosy: +corona10

___
Python tracker 

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



[issue40759] Deprecate the symbol module

2020-05-31 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


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



[issue40836] logging.fatal() and logging.Logger.fatal() should raise a DeprecationWarning

2020-05-31 Thread Vinay Sajip


Vinay Sajip  added the comment:

Well, I'm not planning to actually deprecate and then remove them - as they're 
not documented, it's unlikely that new code will use them, and there's no 
particular reason to break old code that happens to use them.

--
nosy: +vinay.sajip

___
Python tracker 

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



[issue40776] Python 3.7.6 installation issue on mac os x 10.6.8

2020-05-31 Thread Asmi Ariv


Asmi Ariv  added the comment:

Thanks a lot for your reply! Much appreciated!

Regards
Asmi Ariv
Data Science & Business Analytics Expert

On Wed, 27 May, 2020, 8:42 am Ned Deily,  wrote:

>
> Ned Deily  added the comment:
>
> Thanks for your report. Because of very low usage and the increasing
> difficulty of supporting new features and bug fixes on very old versions of
> macOS, like 10.6.x, we no longer provide binary installers on python.org
> for macOS versions earlier than 10.9. On top of that, there was a specific
> problem with using the last several 10.6+ installers on 10.6 itself, due to
> changes in Apple packaging tools. This is the problem you are seeing and
> was first reported and tracked in Issue36890. As noted there, there is a
> link to a 3.7.4 installer that will work on macOS 10.6. However, we do not
> recommend you use it as the most recent release of Python 3.7 is now 3.7.7
> with the final bugfix release of 3.7.x coming next month; Python 3.8.3 is
> now current.
>
> Instead, if you expect to continue using 10.6 Snow Leopard, I would
> strongly suggest you look at installing Python(s) from the MacPorts
> project.  They do an excellent job of providing up-to-date versions of open
> source software, like Python, for multiple versions of macOS, including
> 10.6. They have pre-built packages of the most recent versions of python37
> and python38 for 10.6.  See
> https://www.macports.org/install.php#installing for a link to their base
> package installer for 10.6. You can then install Python with:
>
> sudo port selfupdate
> sudo port install python37
> or
> sudo port install python38
>
> Many third-party Python packages have also been ported and pre-built. You
> can search for them with:
>
> sudo port search py37  # (or py38)
>
> or on their website at https://ports.macports.org
>
> Good luck!
>
> --
> nosy: +ned.deily
> resolution:  -> duplicate
> stage:  -> resolved
> status: open -> closed
> superseder:  -> python-3.7.3-macosx10.6.pkg verification error on macOS
> 10.6 Snow Leopard
> type: compile error ->
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue40837] email.utils.encode_rfc2231(string, None, None) returns broken value

2020-05-31 Thread SpaceOne


New submission from SpaceOne :

`encode_rfc2231()` must not change the returned value if no transformation of 
the input was done.
This is also mentioned in the docstring of that function.

Actual behavior:
encode_rfc2231('foo bar', None, None)
'foo%20bar'

Expected behavior:
encode_rfc2231('foo bar', None, None)
'foo bar'

--
components: Library (Lib)
messages: 370526
nosy: spaceone
priority: normal
pull_requests: 19805
severity: normal
status: open
title: email.utils.encode_rfc2231(string, None, None) returns broken value
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue40457] Python fails to compile/load _ssl module if OpenSSL is compiled with no-tls1-method

2020-05-31 Thread Manuel Jacob

Manuel Jacob  added the comment:

For the record, I’ve added a comment to the pull request about that 
ssl.PROTOCOL_TLSv1_1 / ssl.PROTOCOL_TLSv1_2 are now defined unconditionally.

https://github.com/python/cpython/commit/6e8cda91d92da72800d891b2fc2073ecbc134d98#r39569316

--
nosy: +mjacob

___
Python tracker 

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



[issue35859] Capture behavior depends on the order of an alternation

2020-05-31 Thread Ma Lin


Ma Lin  added the comment:

Is there hope to merge to 3.9 branch?

--

___
Python tracker 

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



[issue40836] logging.fatal() and logging.Logger.fatal() should raise a DeprecationWarning

2020-05-31 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


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

___
Python tracker 

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



[issue40790] Python should enable computed gotos on Mac by default

2020-05-31 Thread laike9m


laike9m  added the comment:

Thanks Ronald. I wrote an answer to summarize what I got so far:

https://stackoverflow.com/a/62037189/2142577

There's nothing wrong with the current behavior, so nothing really needs to be 
changed. But we still lack a way for users to check whether computed gotos is 
enabled out of the box, and `HAVE_COMPUTED_GOTOS` can't do the job either since 
it only detects the compiler's capability.

--

___
Python tracker 

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



[issue40836] logging.fatal() and logging.Logger.fatal() should raise a DeprecationWarning

2020-05-31 Thread Rémi Lapeyre

New submission from Rémi Lapeyre :

Both are not documented and synonymous for critical() but don't raise a 
DeprecationWarning.

--
components: Library (Lib)
messages: 370522
nosy: remi.lapeyre
priority: normal
severity: normal
status: open
title: logging.fatal() and logging.Logger.fatal() should raise a 
DeprecationWarning
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue39314] (readline) Autofill the closing parenthesis during auto-completion for functions which accept no arguments at all

2020-05-31 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
keywords: +patch
nosy: +remi.lapeyre
nosy_count: 1.0 -> 2.0
pull_requests: +19803
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20562

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread miss-islington


miss-islington  added the comment:


New changeset 0a674638a3de14dc86b5294a5db067e0c2177a51 by Miss Islington (bot) 
in branch '3.9':
bpo-17005: Move topological sort functionality to its own module (GH-20558)
https://github.com/python/cpython/commit/0a674638a3de14dc86b5294a5db067e0c2177a51


--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 2f172d8f1525defe9bba4d49e967fdfc69151731 by Pablo Galindo in 
branch 'master':
bpo-17005: Move topological sort functionality to its own module (GH-20558)
https://github.com/python/cpython/commit/2f172d8f1525defe9bba4d49e967fdfc69151731


--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 19.0 -> 20.0
pull_requests: +19802
pull_request: https://github.com/python/cpython/pull/20561

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Opened https://github.com/python/cpython/pull/20558. I have *initially* 
proposed "graphlib" as it feels more in-line with other stdlib module names and 
as Jim pointed it does not collide with anything major. Also, I have proposed 
this initial name to not keep the scope too short in case we want to add new 
things in the future (although we can always say "no" and just keep this 
functionality).

--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +19801
pull_request: https://github.com/python/cpython/pull/20558

___
Python tracker 

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



[issue40759] Deprecate the symbol module

2020-05-31 Thread miss-islington


miss-islington  added the comment:


New changeset 96d91071c0279fe3b10f97b581970a85ccba9ebe by Miss Islington (bot) 
in branch '3.9':
bpo-40759: Deprecate the symbol module (GH-20364)
https://github.com/python/cpython/commit/96d91071c0279fe3b10f97b581970a85ccba9ebe


--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Jim Fasarakis-Hilliard


Jim Fasarakis-Hilliard  added the comment:

Another option, `graphlib`[1], does exist on PyPI but is not maintained and 
currently read-only by the author. Other flavors[2][3] of the same name also 
don't seem to have much adoption so they shouldn't confuse if a name like 
`graphlib` was chosen.

[1] https://github.com/bruth/graphlib/
[2] https://github.com/MengLiuPurdue/graph_lib
[3] https://github.com/EmileTrotignon/GraphLib

--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Eric V. Smith


Eric V. Smith  added the comment:

I'd prefer a new module just for this. As for names, I like toposort over 
topsort.

I already have a library on PyPI named toposort. Personally, I don't have a 
problem with the stdlib taking over that name, and I'd just deprecate mine at 
3.9, or whatever. I'm not sure if there are any ramifications of doing that, 
however.

Or, pick another unused name, like toposortlib or something.

--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I checked and from the list of proposed names with "graph" prefixes, only 
"graphutils" is not colliding with something on Pypi.

For the record "cslib" and "misclib" are also available but the scope of those 
feel much much bigger.

I am going to open a PR to move this to "graphutils" for now. We can discuss 
better in the PR for better names given that seems that there is an agreement 
on moving this out of functools.

--

___
Python tracker 

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



[issue40759] Deprecate the symbol module

2020-05-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19800
pull_request: https://github.com/python/cpython/pull/20557

___
Python tracker 

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



[issue40759] Deprecate the symbol module

2020-05-31 Thread miss-islington


miss-islington  added the comment:


New changeset cf88871d6a9c12e7b7e5f4d65abc2ec6e2fe952e by Batuhan Taskaya in 
branch 'master':
bpo-40759: Deprecate the symbol module (GH-20364)
https://github.com/python/cpython/commit/cf88871d6a9c12e7b7e5f4d65abc2ec6e2fe952e


--
nosy: +miss-islington

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I vote for it being in its own module (like difflib).  That would also be a 
good place to put my proposed tsort() function with its simpler API.

--

___
Python tracker 

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



[issue40755] Add missing multiset predicates to collections.Counter

2020-05-31 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset b7d79b4f36787874128c439d38397fe95c48429b by Raymond Hettinger in 
branch 'master':
bpo-40755: Add rich comparisons to Counter (GH-20548)
https://github.com/python/cpython/commit/b7d79b4f36787874128c439d38397fe95c48429b


--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Tim Peters


Tim Peters  added the comment:

`functools` is clearly a poor place for this. `imath` would also be. 
`graph_stuff_probably_limited_to_a_topsort` is the only accurate name ;-) 
Off-the-wall possibilities include `misclib` (stuff that just doesn't fit 
anywhere else - yet) and `cslib` (Computer Science-y stuff).

Whichever name wins, we should probably look to ensure the name isn't also of a 
package already in (non-trivial) use.

--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Ben Mares


Ben Mares  added the comment:

dependencytools?

But I don't think it qualifies yet for the plural...

--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I would like to hear Raymond and Tim advise on what the best name for the new 
module should be :)

--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> The downside I see with any graph prefixed names is the fact that it implies 
> a larger collection of graph operations.

I don't see that an issue. In the general term is better to have a general name 
and discuss further improvements than just name the module "topological_sort" 
and now being cornered if we ever want to add new graph-related stuff.

We can always say "no" to new functionality but changing the name of the module 
is not possible once is released.

--

___
Python tracker 

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



[issue40835] Incorrect handling for msgctxt in msgfmt.py

2020-05-31 Thread Doug Addy


Doug Addy  added the comment:

And a patch:

After the end of a message entry the options for the next line are:
1. A comment - we already reset msgctxt to None here
2. A blank line - we can have empty lines anywhere we want, so do nothing
3. A new msgctxt line - Set msgctxt to the new context
4. A msgid - This is the current failing behaviour. Fix sets msgctxt back to 
None.

--
keywords: +patch
Added file: https://bugs.python.org/file49206/40835.patch

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Jim Fasarakis-Hilliard


Jim Fasarakis-Hilliard  added the comment:

The downside I see with any graph prefixed names is the fact that it implies a 
larger collection of graph operations.

Add that to the fact that people might be more tempted to propose many  graph 
related algorithms/utilities to a module with the same name.

A more localized name solves that.

--

___
Python tracker 

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



[issue22167] iglob() has misleading documentation (does indeed store names internally)

2020-05-31 Thread Guido van Rossum


Guido van Rossum  added the comment:

I hope some volunteer will submit a doc PR.

In the meantime, throwing out one more idea: perhaps my first idea, to make
_glob1() an iterator, could work if we only do it for leaves of the
pattern, so for the a*/b*/c* example, only for the c* part.

--

___
Python tracker 

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



[issue40835] Incorrect handling for msgctxt in msgfmt.py

2020-05-31 Thread Doug Addy


Doug Addy  added the comment:

Test po file included

--
Added file: https://bugs.python.org/file49205/test.po

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread gaborbernat


gaborbernat  added the comment:

I like graphutils for what it's worth.

--

___
Python tracker 

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



[issue40835] Incorrect handling for msgctxt in msgfmt.py

2020-05-31 Thread Doug Addy


New submission from Doug Addy :

Running msgfmt.py with the attached po file will produce an incorrect context 
for the entry "test".

Looking at the script, we require a comment to follow a contexted section for 
the context to be cleared. The gettext documentation makes clear that all 
comments are optional, so this is not desired behaviour.

My reading of the gettext documentation has a "msgctxt" line applying only to 
the current entry, so it should be cleared once the last msgstr has been 
written for that entry.

I will endeavour to provide a patch within the next day or two.

--
components: Demos and Tools
messages: 370502
nosy: da1910
priority: normal
severity: normal
status: open
title: Incorrect handling for msgctxt in msgfmt.py
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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

If we move it, I would prefer a new module that somehow makes clear the scope, 
something like graphutils or graphtheory or graph (although this las one will 
probably collide with many existing things).

--

___
Python tracker 

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



[issue33618] Support TLS 1.3

2020-05-31 Thread Christian Heimes


Change by Christian Heimes :


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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Jim Fasarakis-Hilliard


Jim Fasarakis-Hilliard  added the comment:

It does seem out of place in functools, intensified by it's odd interjection 
among the other functools objects.

Considering heapq and bisect exist as standalone modules, the idea that 
topological sorting could go in its own module wouldn't be without precedent.

--
nosy: +Jim Fasarakis-Hilliard

___
Python tracker 

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



[issue22167] iglob() has misleading documentation (does indeed store names internally)

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

This is an interesting idea, but I afraid it will complicate the code too much, 
destroying the remnants of the initial elegant design. I am going to try to 
experiment with this idea after implementing other features, so it will not 
block them.

For now we need to document that iglob() may collect some names internally 
before starting to emit them. If my English be better I would did it myself.

--

___
Python tracker 

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



[issue40788] Build issue Solaris 10 Sparc

2020-05-31 Thread Warren Hardy


Change by Warren Hardy :


--
type:  -> compile error

___
Python tracker 

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



[issue40825] Add a "strict" parameter to csv.writer and csv.DictWriter

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Yes, converting Decimal to float can lose precision, so we cannot require this. 
PyNumber_Check() is already used for QUOTE_NONNUMERIC, so it would be logical 
to use it in determining that the object is a number in the cvs module.

But now the problem is with determining what is a "string". There is no way to 
check whether the object is "string-like", because virtually all objects can be 
converted to string. The only standard exception is bytes and bytearray for 
which str() may emit BytesWarning, so this conversion is not reliable. If 
restrict it only to an instance of str or its subclasses, it may break other 
user cases, for example writing Path in CVS.

--

___
Python tracker 

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



[issue24048] remove_module() needs to save/restore exception state

2020-05-31 Thread Zackery Spytz


Zackery Spytz  added the comment:

It seems that Serhiy backported the fix.

--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Could it make sense to have this in the often proposed imath module? 

It's integers per se but Both number theory and graph theory are part of 
discrete mathematics so it may feel more at home there?

--

___
Python tracker 

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



[issue40686] Compiler warnings in _zoneinfo.c on Windows build in 64-bit

2020-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> Can you update the current status?

Sorry, what do you mean by "current status"? Do you meant this issue or the 
status of that PR?

--

___
Python tracker 

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



[issue23885] urllib.quote horribly mishandles unicode as second parameter

2020-05-31 Thread Zackery Spytz


Zackery Spytz  added the comment:

Python 2 is EOL, so I think this issue should be closed.

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Any suggestions for the new module? I assume we can move this to a new 
topsort/topological_sort or similar...

What do people think?

--

___
Python tracker 

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



[issue22167] iglob() has misleading documentation (does indeed store names internally)

2020-05-31 Thread Guido van Rossum


Guido van Rossum  added the comment:

Hm, yeah.

Perhaps we can add some buffering so that for directories with a small
number of files (say < 1000) the FD is closed before recursing into it,
while for large directories it keeps the FD open until the last block of
1000 DirEntries is read? It's unlikely that someone has a tree that's both
deep *and* wide at many levels, since that would mean an inordinate number
of files indeed.

--

___
Python tracker 

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



[issue4356] Add "key" argument to "bisect" module functions

2020-05-31 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +19799
pull_request: https://github.com/python/cpython/pull/20556

___
Python tracker 

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



[issue22167] iglob() has misleading documentation (does indeed store names internally)

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Yes, for the pattern 'a*/b*/c*' you will have an open file descriptor for every 
component with metacharacters:

for a in scandir('.'):
if fnmatch(a.name, 'a*'):
for b in scandir(a.path):
if fnmatch(b.name, 'b*'):
for c in scandir(b.path):
if fnmatch(c.name, 'c*'):
yield c.path

You can have hundreds nested directories. Looks not bad, because by default the 
limit on the number of file descriptors is 1024 on Linux. But imagine you run a 
server and it handles tens requests simultaneously. Some of them or all of them 
will fail, and not just return an error, but return an incorrect result, 
because all OSError, including "Too many open files", are silenced in glob().

Also all these file descriptors will not be closed until you finish the 
iteration, or, in case of error, until the garbage collector close them 
(because interrupted generators tend to create reference loops).

So it is vital to close the file descriptor before you open other file 
descriptors in the recursion.

--

___
Python tracker 

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



[issue40834] sending str via channel caused truncate on last character

2020-05-31 Thread SilentGhost


Change by SilentGhost :


--
nosy: +eric.snow

___
Python tracker 

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



[issue40825] Add a "strict" parameter to csv.writer and csv.DictWriter

2020-05-31 Thread Eric V. Smith


Eric V. Smith  added the comment:

That seems like a good plan.

--

___
Python tracker 

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



[issue22167] iglob() has misleading documentation (does indeed store names internally)

2020-05-31 Thread Guido van Rossum


Guido van Rossum  added the comment:

Serhiy, what do you mean by "otherwise we could run out of file descriptiors"? 
I looked a bit at the code and there are different kinds of algorithms involved 
for different forms of patterns, and the code also takes vastly different paths 
for recursive matches.

I found one bit of code that looked like it *could* be improved, with some 
effort: _glob1(). This constructs a list of all files in one directory and then 
filters then. It looks like this could be a problem if there are e.g. 100_000 
files in one directory. To fix, we could implement fnmatch.ifilter() which 
would be like fnmatch.filter() but uses `yield name` instead of 
`result.append(name)`; then _glob1() could be rewritten as follows (untested):

def _glob1(dirname, pattern, dironly):
names = _iterdir(dirname, dironly))
if not _ishidden(pattern):
yield from fnmatch.ifilter(x for x in names if not _ishidden(x))
else:
yield from fnmatch.ifilter(names, pattern)

Thoughts? Would this increase the number of open file descriptors in some edge 
case?

--

___
Python tracker 

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



[issue17005] Add a topological sort algorithm

2020-05-31 Thread Ben Mares


Ben Mares  added the comment:

It's great to have this feature in the standard library, but it really seems to 
clutter the functools documentation. Everything else in functools applies 
directly to functions and methods. Suddenly reading graph theory terminology 
was disorienting for me. (Due to context, I expected "node" to mean some new 
type of Python function.) It makes the documentation significantly longer, and 
IMHO abstruse. Would it be sensible to move this to a separate module?

--
nosy: +maresb

___
Python tracker 

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



[issue40834] sending str via channel caused truncate on last character

2020-05-31 Thread AnLong


Change by AnLong :


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

___
Python tracker 

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



[issue40834] sending str via channel caused truncate on last character

2020-05-31 Thread AnLong


New submission from AnLong :

Sending a str object for example "asdf" via channel, the received str object 
turn into "asd".

The attachment file test.py can re-produce this issue, with python3.8 and 3.9a1.

--
components: Subinterpreters
files: test.py
messages: 370487
nosy: asaka
priority: normal
severity: normal
status: open
title: sending str via channel caused truncate on last character
type: behavior
versions: Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49204/test.py

___
Python tracker 

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



[issue33618] Support TLS 1.3

2020-05-31 Thread Sam Bull


Change by Sam Bull :


--
nosy: +dreamsorcerer

___
Python tracker 

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



[issue36484] Can't reorder TLS 1.3 ciphersuites

2020-05-31 Thread Sam Bull


Change by Sam Bull :


--
nosy: +dreamsorcerer

___
Python tracker 

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



[issue40825] Add a "strict" parameter to csv.writer and csv.DictWriter

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

We can check only nb_index and nb_float. It will include Fraction, Decimal and 
NumPy numbers and exclude UUID and IPv4Address.

--

___
Python tracker 

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



[issue40825] Add a "strict" parameter to csv.writer and csv.DictWriter

2020-05-31 Thread Eric V. Smith


Eric V. Smith  added the comment:

Losing Decimal would be a problem. I use those a lot in CSV files, and I assume 
others do, too.

--

___
Python tracker 

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



[issue25661] tokenize.untokenize does not maintain the order of tabbed indentations and leading spaces

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue9751] _PyInstance_Lookup() defeats its purpose

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue24341] Test suite emits many DeprecationWarnings about sys.exc_clear() when -3 is enabled

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
resolution:  -> out of date
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



[issue25589] test_ascii_formatd fails on Mac when built with Intel compiler

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue23315] tempfile.mkdtemp fails with non-ascii paths on Python 2

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
resolution:  -> out of date
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



[issue25714] Consider isinstance(..., numbers.Integral) instead of isinstance(..., int) or isinstance(..., (int, long)) in datetime.py

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
resolution:  -> out of date
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



[issue24880] ctypeslib patch for regular expression for symbols to include

2020-05-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue24652] C-API Pure Embedding enhancement

2020-05-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python, vstinner
type: enhancement -> behavior
versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 -Python 
2.7

___
Python tracker 

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



[issue24126] newlines attribute does not get set after calling readline()

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue16125] open accepts arbitrary mode strings as long as they contain U

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue20192] pprint chokes on set containing frozenset

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
resolution:  -> out of date
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



[issue22750] xmlapp.py display bug when validate XML by DTD

2020-05-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue23567] os.stat() tuple access vs named attribute access int vs float

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue22666] email.Header no encoding of unicode strings containing newlines

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue39326] Python-3.8.1 "test_importlib" failed

2020-05-31 Thread Darryl Hall Jr


Darryl Hall Jr  added the comment:

@Divyansh_tiwari I had the same issue, but on Python-3.8.3. I ran `sudo apt-get 
install zlib1g-dev` then `sudo apt-get install zlibc`. After installing those 2 
packages, I reran `make test` and had test results = success. I hope this might 
work for you as well.

--
nosy: +Darryl Hall Jr
status: pending -> open

___
Python tracker 

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



[issue22720] Obscure error w/ windows online-only file

2020-05-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue14847] AttributeError: NoneType has no attribute 'utf_8_decode'

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue21929] Rounding properly

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue21796] tempfile.py", line 83, in once_lock = _allocate_lock() thread.error: can't allocat lock

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue21785] __getitem__ and __setitem__ try to be smart when invoked with negative slice indices

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue18695] os.statvfs() not working well with unicode paths

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
resolution:  -> out of date
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



[issue20989] XML File I/O Misbehavior with open() when the flag is 'r+'

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue20785] Missing symbols in Python27.lib (Windows 64bit)

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue1295179] termios.c in qnx4.25

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

Not sure that QNX is supported in Python 3, but if you want to merge your patch 
in Python 3 convert it please to a pull request on GitHub.

--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

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



[issue1712522] urllib.quote throws exception on Unicode URL

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution: accepted -> out of date
status: open -> closed

___
Python tracker 

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



[issue11309] #include in Objects/unicodetype_db.h and Objects/unicodectype.c

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

In Python 3.3+ functions like iswlower() are no longer used for 
Py_UNICODE_ISLOWER etc. And Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue17544] regex code re-raises exceptions on success

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

When function sets an exception, it should return NULL. Otherwise the behavior 
of the interpreter is undefined, it can crash in debug build or developing mode.

See for example 
https://docs.python.org/3/extending/extending.html#intermezzo-errors-and-exceptions

--
nosy: +serhiy.storchaka
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



[issue38938] Possible performance improvement for heapq.merge()

2020-05-31 Thread Jim Fasarakis-Hilliard


Change by Jim Fasarakis-Hilliard :


--
nosy: +Jim Fasarakis-Hilliard

___
Python tracker 

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



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

2020-05-31 Thread Jim Fasarakis-Hilliard


Change by Jim Fasarakis-Hilliard :


--
nosy: +Jim Fasarakis-Hilliard

___
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-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue40833] Clarify docstring of Path.rename

2020-05-31 Thread Ram Rachum


Change by Ram Rachum :


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

___
Python tracker 

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



[issue40833] Clarify docstring of Path.rename

2020-05-31 Thread Ram Rachum


New submission from Ram Rachum :

Writing the PR now.

--
assignee: docs@python
components: Documentation
messages: 370459
nosy: brandtbucher, cool-RR, docs@python
priority: normal
severity: normal
status: open
title: Clarify docstring of Path.rename
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

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



[issue33740] PyByteArray_AsString C-API description lacks the assurance, that the trailing null-byte is appended.

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
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



[issue23019] pyexpat.errors wrongly bound to message strings instead of message codes

2020-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 2.7 is no longer supported.

--
nosy: +serhiy.storchaka
resolution: wont fix -> out of date
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



[issue37602] nonzero fixer problem

2020-05-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 -Python 
2.7

___
Python tracker 

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



[issue8502] support plurals in pygettext

2020-05-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue29882] Add an efficient popcount method for integers

2020-05-31 Thread Mark Dickinson


Mark Dickinson  added the comment:

A couple of other data points:

- Swift has nonzeroBitCount: 
https://developer.apple.com/documentation/swift/int/2886050-nonzerobitcount

- Rust has count_ones: https://doc.rust-lang.org/std/primitive.u64.html

- Go's math/bits package has OnesCount

- The closest thing in Mathematica appears to be DigitCount, which isn't 
base-specific.

@Mark Shannon: what name would you suggest, and why? The term "population 
count" feels too non-obvious and specialist to me, and anything involving 
"Hamming" likewise.

"count_ones" isn't obviously a bit operation.

"count_set_bits"?

--

___
Python tracker 

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



[issue34249] Full set of format codes applies to strftime only

2020-05-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 -Python 
2.7

___
Python tracker 

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



  1   2   >