[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

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

[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

[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 ___ ___ Py

[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

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

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

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

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

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

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

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

[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.pyt

[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.pyt

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

[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 ___ _

[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

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

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

[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.pyth

[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*'):

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

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

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

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

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

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

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

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

[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://m

[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

[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

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

[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). -- _

[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

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

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

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

[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

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

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

[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 ___ _

[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 ___ ___ P

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

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

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

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

[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 ___ __

[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

[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

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

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

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

[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

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

[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

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

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

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

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

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

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

[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

[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

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

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

[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 ___ _

[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 ___ _

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

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

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

[issue40788] Build issue Solaris 10 Sparc

2020-05-31 Thread Warren Hardy
Warren Hardy added the comment: make log -- Added file: https://bugs.python.org/file49208/make.log ___ Python tracker ___ ___ Pytho

[issue40788] Build issue Solaris 10 Sparc

2020-05-31 Thread Warren Hardy
Warren Hardy added the comment: this error log contains information not piped to the make.log -- Added file: https://bugs.python.org/file49209/make.error.log ___ Python tracker __

[issue30008] OpenSSL 1.1.0 deprecated functions

2020-05-31 Thread Christian Heimes
Christian Heimes added the comment: New changeset a871f692b4a2e6c7d45579693e787edc0af1a02c by Christian Heimes in branch 'master': bpo-30008: Fix OpenSSL no-deprecated compilation (GH-20397) https://github.com/python/cpython/commit/a871f692b4a2e6c7d45579693e787edc0af1a02c -- __

[issue30008] OpenSSL 1.1.0 deprecated functions

2020-05-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +19807 pull_request: https://github.com/python/cpython/pull/20566 ___ Python tracker ___ __

[issue30008] OpenSSL 1.1.0 deprecated functions

2020-05-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +19806 pull_request: https://github.com/python/cpython/pull/20565 ___ Python tracker

[issue30008] OpenSSL 1.1.0 deprecated functions

2020-05-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +19808 pull_request: https://github.com/python/cpython/pull/20567 ___ Python tracker ___ __

<    1   2