[issue39516] ++ does not throw a SyntaxError

2020-02-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: Marco, this is no more of a defect than `x*-y` or `a&~b`. It is a binary operator followed by an unary operator, just like `x--y`, `x/-y`, `x+-y`, `x**-y` etc. Python has at least three unary operators and at least 17 binary operators so in total there are

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: Thanks again for PR 18202. I followed your lead and made the additional changes and posted as PR 18203. -- ___ Python tracker ___

[issue39519] Can't upgrade pip version 19.3.1 to 20.0.2 on Python 3.7.4

2020-02-01 Thread brasko
New submission from brasko : Hi when I want to upgrade pip version I get: Usage: C:\Users\User\AppData\Local\Programs\Python\Python37\python.exe -m pip install [options] [package-index-options] ... C:\Users\User\AppData\Local\Programs\Python\Python37\python.exe -m pip install [options]

[issue39514] http://sphinx.pocoo.org/

2020-02-01 Thread Berker Peksag
Berker Peksag added the comment: https://github.com/python/docsbuild-scripts/pull/83 -- ___ Python tracker ___ ___

[issue39521] reversed(mylist) much slower on Python 3.8 32-bit for Windows

2020-02-01 Thread Stefan Pochmann
Stefan Pochmann added the comment: Oh right. The times are correct, I just summarized wrongly there. -- ___ Python tracker ___ ___

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Michael. Sorry, I just missed that you are working on your PR. -- ___ Python tracker ___

[issue39517] runpy calls open_code with Path object

2020-02-01 Thread Tomas Ravinskas
New submission from Tomas Ravinskas : runpy accepts Path like objects but open_code seems to only accept strings, so calling open_code with Path object throws TypeError. I think runpy should call str() on all path passed to open_code. The relevant line is 232 in runpy.py in function

[issue39517] runpy calls open_code with Path object

2020-02-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is there documentation in runpy where it's stated that path objects are accepted for the function? If not this seems to be an enhancement. -- nosy: +ncoghlan, xtreak ___ Python tracker

[issue39517] runpy calls open_code with Path object

2020-02-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39518] Dark theme

2020-02-01 Thread Vitaly Zdanevich
Vitaly Zdanevich added the comment: Added bug report to their repo https://github.com/python/python-docs-theme/issues/43 -- ___ Python tracker ___

[issue39391] Pydoc: add option to remove run-specific ids (addresses)

2020-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, I was thinking of something else when I closed this. What you want is a new -x option, for some 'x'. The following would help, especially as there is no one who specifically maintains pydoc. a) a specific proposal or set of proposals as to what

[issue39520] AST Unparser can't unparse ext slices correctly

2020-02-01 Thread Batuhan
New submission from Batuhan : (this issue has already a PR for ast.unparse) >>> from __future__ import annotations >>> import ast >>> x: Tuple[1:2,] = 3 >>> __annotations__["x"] 'Tuple[1:2]' >>> ast.dump(ast.parse("Tuple[1:2,]")) "Module(body=[Expr(value=Subscript(value=Name(id='Tuple',

[issue39519] Can't upgrade pip version 19.3.1 to 20.0.2 on Python 3.7.4

2020-02-01 Thread SilentGhost
SilentGhost added the comment: `pip install --help` provides full list of options, the upgrade option is -U or --upgrade. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed type: security -> behavior ___

[issue39521] reversed(mylist) much slower on Python 3.8.1 32-bit for Windows

2020-02-01 Thread Stefan Pochmann
New submission from Stefan Pochmann : Somehow `reversed` became much slower than `iter` on lists: List with 1,000 elements: > python -m timeit -s "a = list(range(1000))" "list(iter(a))" 5 loops, best of 5: 5.73 usec per loop > python -m timeit -s "a = list(range(1000))"

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: Here is the patch I am working on. I appreciate your example on how to deal with the undefined variables. I had done that incorrectly initially. -- Added file: https://bugs.python.org/file48876/bpo-39020-AIX.patch

[issue39496] Inelegant loops in Modules/_sqlite/cursor.c

2020-02-01 Thread Alex Henrie
Alex Henrie added the comment: Sorry about that, I didn't notice that GCC's -Wall option emits a warning about this. I just added the extra sets of parentheses. -- ___ Python tracker

[issue39518] Dark theme

2020-02-01 Thread Vitaly Zdanevich
Change by Vitaly Zdanevich : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39518] Dark theme

2020-02-01 Thread Vitaly Zdanevich
New submission from Vitaly Zdanevich : Please save our eyes. And batteries. Do not ignore this property of useragent https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme -- assignee: docs@python components: Documentation messages: 361177 nosy: Vitaly Zdanevich,

[issue39518] Dark theme

2020-02-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be more of an issue relevant to python-docs-theme which is maintained separately : https://github.com/python/python-docs-theme -- nosy: +mdk, xtreak ___ Python tracker

[issue39515] pathlib won't strip "\n" in path

2020-02-01 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.9 ___ Python tracker ___

[issue39520] AST Unparser can't unparse ext slices correctly

2020-02-01 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +17681 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18304 ___ Python tracker ___

[issue39521] reversed(mylist) much slower on Python 3.8 32-bit for Windows

2020-02-01 Thread Stefan Pochmann
Change by Stefan Pochmann : -- title: reversed(mylist) much slower on Python 3.8.1 32-bit for Windows -> reversed(mylist) much slower on Python 3.8 32-bit for Windows ___ Python tracker

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: removed 3.8, this is new for 3.9. Have established that all four functions added in issue38132 do not exist in stock AIX libcurses.a Was working on my own PR, but shall look at yours first. -- versions: -Python 3.8

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: Blinded - got the numbers wrong! So, again: Thanks for PR 18302. I followed your lead and made the additional changes and posted as PR 18303 in the hope this is easier for all. -- ___ Python tracker

[issue39516] ++ does not throw a SyntaxError

2020-02-01 Thread Marco Sulla
Marco Sulla added the comment: > This is not a bug No one said it's a bug. It's a defect. > This has been part of Python since version 1 There are many things that was part of Python 1 that was removed. > `++` should never be an operator in the future, precisely because it already > has a

[issue39515] pathlib won't strip "\n" in path

2020-02-01 Thread Eryk Sun
Eryk Sun added the comment: A Windows path reserves the following characters: * null, as the string terminator * slash and backslash, as path separators * colon as the second character in the first component of a non-UNC path, since it's a drive path Additionally, a normalized path

[issue39517] runpy calls open_code with Path object

2020-02-01 Thread Tomas Ravinskas
Tomas Ravinskas added the comment: Can't see anything about this in the docs, I just noticed that it breaks shiv after upgrade. -- ___ Python tracker ___

[issue14074] argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple

2020-02-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I am not sure disallowing tuple metavars would break backup > compatibility or not~ Given that tuple metavars currently doesn't work, there is no backward compatibility issue. What is being proposed is to give more friendly error messages.

[issue39518] Dark theme property of useragent should be supported for docs.python.org

2020-02-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks, closing it as third party issue. -- resolution: -> third party stage: -> resolved status: open -> closed title: Dark theme -> Dark theme property of useragent should be supported for docs.python.org

[issue39514] http://sphinx.pocoo.org/

2020-02-01 Thread Mariatta
Mariatta added the comment: I tested locally, if I build the docs using python-docs-theme 2020.1, the link is fixed. I'm reopening this ticket. I think it is a matter of making sure docs.p.o is using the right version of python-docs-theme. (v 2020.1) -- resolution: out of date ->

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: Have looked at your PR. It will not work on AIX because AIX libcurses is missing all four new functions. Once I finished my test on AIX - shall I add my patch as a file here, so you can integrate into yours? I hope that is easier than two PRs. --

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +17680 pull_request: https://github.com/python/cpython/pull/18303 ___ Python tracker ___

[issue39514] http://sphinx.pocoo.org/

2020-02-01 Thread Mariatta
Mariatta added the comment: Hmm the fix should have been included in release 2020.1, which was release a couple weeks ago. -- nosy: +Mariatta ___ Python tracker ___

[issue39496] Inelegant loops in Modules/_sqlite/cursor.c

2020-02-01 Thread Berker Peksag
Berker Peksag added the comment: New changeset 78c7183f470b60a39ac2dd0ad1a94d49d1e0b062 by Alex Henrie in branch 'master': bpo-39496: Remove redundant checks from _sqlite/cursor.c (GH-18270) https://github.com/python/cpython/commit/78c7183f470b60a39ac2dd0ad1a94d49d1e0b062 -- nosy:

[issue39496] Inelegant loops in Modules/_sqlite/cursor.c

2020-02-01 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39521] reversed(mylist) much slower on Python 3.8.1 32-bit for Windows

2020-02-01 Thread SilentGhost
SilentGhost added the comment: Your 3.8.0 numbers are similar to 3.8.1 -- components: +Interpreter Core -Build nosy: +SilentGhost, serhiy.storchaka, vstinner ___ Python tracker

[issue39516] ++ does not throw a SyntaxError

2020-02-01 Thread Marco Sulla
Marco Sulla added the comment: > `++` isn't special Indeed the problem is that no error or warning is raised if two operators are consecutive, without a space between. All the cases you listed are terribly unreadable and hardly intelligible. Anyway I do not agree `++` is not special: >

[issue39521] reversed(mylist) much slower on Python 3.8 32-bit for Windows

2020-02-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: The code for listiter_next() and listreviter_next() is almost the same. The main difference that the code for reversed saves the index to Py_ssize_t variable. Maybe that causes a 32-bit to 64-bit conversion and back. The change was made on 30 March

[issue39523] Unnecessary variable assignment and initial loop check in pysqlite_cursor_executescript

2020-02-01 Thread Alex Henrie
New submission from Alex Henrie : pysqlite_cursor_executescript currently has the following while loop: /* execute statement, and ignore results of SELECT statements */ rc = SQLITE_ROW; while (rc == SQLITE_ROW) { rc = pysqlite_step(statement, self->connection); if

[issue39523] Unnecessary variable assignment and initial loop check in pysqlite_cursor_executescript

2020-02-01 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +17682 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18305 ___ Python tracker ___

[issue39524] Escape sequences in doc string of ast._pad_whitespace

2020-02-01 Thread mpheath
New submission from mpheath : In the ast module, a function named _pad_whitespace has a doc string with escape sequences of \f and \t. The current doc string from Lib/ast.py:305 is: """Replace all chars except '\f\t' in a line with spaces.""" Example of doc string output in a REPL:

[issue39483] Proposial add loop parametr to run in asyncio

2020-02-01 Thread Caleb Hattingh
Caleb Hattingh added the comment: Hmm, my recent comment looks rude but I didn't intend it to be that way. What I mean is: there are many, many more users of asyncio.run than there are of teleton, so any change made to asyncio.run is going to affect more people than the other way round. So

[issue39524] Escape sequences in doc string of ast._pad_whitespace

2020-02-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38988] Killing asyncio subprocesses on timeout?

2020-02-01 Thread Caleb Hattingh
Caleb Hattingh added the comment: @dontbugme This is a very old problem with threads and sub-processes. In the general case (cross-platform, etc) it is difficult to kill threads and sub-processes from the outside. The traditional solution is to somehow send a message to the thread or

[issue39527] Update doc of argparse.rst

2020-02-01 Thread hai shi
New submission from hai shi : 1. examples don't need import argparse much times(IMHO, it should be a default behavior); 2. argparse have no doctest, it's not a good behavior; -- assignee: docs@python components: Documentation messages: 361213 nosy: docs@python, mdk, rhettinger,

[issue39525] math.remainder() give wrong answer on large integer

2020-02-01 Thread David Hwang
New submission from David Hwang : These two numbers are off by 1, and so should give different answer to >>> math.remainder(12345678901234567890,3) 1.0 >>> math.remainder(12345678901234567891,3) 1.0 -- components: Library (Lib) messages: 361211 nosy: David Hwang priority: normal

[issue39527] Update doc of argparse.rst

2020-02-01 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +17683 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18306 ___ Python tracker ___

[issue39526] print(text1.get(1.2,1.5))

2020-02-01 Thread mlwtc
mlwtc added the comment: Look at line 5:print(text1.get(1.0,1.30)) I think the result should be "abcdefghijklmnopqrstuvwxyz1234" print(text1.get(1.0,1.20)) I think the result should be "abcdefghijklmnopqrst" print(text1.get(1.0,1.10)) I think the result should be "abcdefghij" Others

[issue39528] add "

2020-02-01 Thread SilentGhost
Change by SilentGhost : -- nosy: -bup resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue39513] NameError: name 'open' is not defined

2020-02-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Symptoms as when try to log very late at shutdown stage, when the content of the builtin module is restored to its original value which does not include open imported from io. -- nosy: +serhiy.storchaka ___

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-02-01 Thread Caleb Hattingh
Change by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35108] inspect.getmembers passes exceptions from object's properties through

2020-02-01 Thread Richard Bruskiewich
Richard Bruskiewich added the comment: This "bug" is buzzing around my project head right now, interfering with the operation of the Python Fire CLI library when it attempts to interrogate the Python Pandas DataFrame using the inspect.getmembers() call. See

[issue39525] math.remainder() give wrong answer on large integer

2020-02-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: math.remainder performs *floating point* remainder. That means it has to convert the arguments to floats first, and there is no float capable of representing either of those two numbers exactly: py> '%f' % float(12345678901234567890)

[issue14074] argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple

2020-02-01 Thread hai shi
Change by hai shi : -- versions: +Python 3.9 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14074] argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple

2020-02-01 Thread hai shi
hai shi added the comment: > Given that tuple metavars currently doesn't work, there is no backward > compatibility issue. What is being proposed is to give more friendly error > messages. Got it, thanks. > Paul suggested that it may be a better plan to just disallow tuple metavars > and

[issue39526] print(text1.get(1.2,1.5))

2020-02-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Is there a bug here? How about if you tell us what behaviour you expected, why you expected it, and what you got instead, then we can tell you if your expectation was correct and whether or not there is a bug. You have seven results printed. I have no

[issue39294] zipfile.ZipInfo objects contain invalid 'extra' fields.

2020-02-01 Thread Daniel Hillier
Daniel Hillier added the comment: This looks to be expected behaviour for the zip64 extension in the zip spec (for handling large files or large archives). Section 4.4.1.4 of the zip spec outlines when the zip64 extra fields are used

[issue39524] Escape sequences in doc string of ast._pad_whitespace

2020-02-01 Thread mpheath
mpheath added the comment: Correction: Python 3.8.0 and 3.8.1 with Lib/ast.py:277 Line 227 is invalid and 277 is correct. -- ___ Python tracker ___

[issue39513] NameError: name 'open' is not defined

2020-02-01 Thread Vinay Sajip
Vinay Sajip added the comment: Please attach a small script which allows reproduction of this issue - otherwise, it's unlikely we'll be able to make much progress, and I'll probably close it in a week or so if you haven't been able to do this. Thanks! --

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-02-01 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +17684 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/18307 ___ Python tracker

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-02-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Fri, Jan 31, 2020 at 12:15:37PM +, Vedran Čačić wrote: > > Vedran Čačić added the comment: > > is_prime that's always correct is probably not the right thing to go into > math. Besides, now we have isqrt, it's just > > n>1 and n&1 and all(n%d

[issue18819] tarfile fills devmajor and devminor fields even for non-devices

2020-02-01 Thread William Chargin
William Chargin added the comment: My pleasure. Is there anything else that you need from me to close this out? It looks like the PR is approved and in an “awaiting merge” state, but I don’t have access to merge it. -- ___ Python tracker

[issue39524] Escape sequences in doc string of ast._pad_whitespace

2020-02-01 Thread mpheath
mpheath added the comment: Correction: Python 3.8.0 and 3.8.1 with 3.8/Lib/ast.py:277 Line 227 is invalid and 277 is correct and forgot to add 3.8 prefix. Sorry. -- ___ Python tracker

[issue39483] Proposial add loop parametr to run in asyncio

2020-02-01 Thread Caleb Hattingh
Caleb Hattingh added the comment: @heckad You should instead ask the maintainers of teleton how to use their library with asyncio.run, not the other way round. -- nosy: +cjrh ___ Python tracker

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-02-01 Thread Tim Peters
Tim Peters added the comment: I'd have to hear back from Raymond more on what he had in mind - I may well have been reading far too much in the specific name he suggested. Don't much care about API, etc - pick something reasonable and go with it. I'm not overly ;-) concerned with being

[issue39526] print(text1.get(1.2,1.5))

2020-02-01 Thread mlwtc
New submission from mlwtc : >>> from tkinter import * >>> root = Tk() >>> text1 = Text(root,width=30,height=3) >>> text1.insert(INSERT,'abcdefghijklmnopqrstuvwxyz123456789123456789') >>> print(text1.get(1.0,1.30)) abc >>> print(text1.get(1.0,1.31)) abcdefghijklmnopqrstuvwxyz12345 >>>

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-02-01 Thread Vedran Čačić
Vedran Čačić added the comment: Tim: Considering that congruence is _defined_ as x=y(mod m) :<=> m|y-x, it's really not so surprising. :-) Steven: It seems that we completely agree about inclusion of is_probabilistic_prime in stdlib. And we agree that it should be called isprime (or

[issue39522] AST Unparser with unicode kinded constants

2020-02-01 Thread Batuhan
New submission from Batuhan : >>> from __future__ import annotations >>> import ast >>> x: u"a" = 3 >>> __annotations__["x"] "'a'" >>> ast.dump(ast.parse(__annotations__["x"])) == ast.dump(ast.parse('u"a"')) False I guess before touching constant part, we should wait for GH-17426 (afterward I

[issue39528] add "

2020-02-01 Thread Dan Snider
Change by Dan Snider : -- nosy: bup priority: normal severity: normal status: open title: add " ___ Python tracker ___ ___

[issue39525] math.remainder() give wrong answer on large integer

2020-02-01 Thread Tim Peters
Tim Peters added the comment: Arguments to `remainder()` are converted to floats, and the returned value is also a float. These specific arguments convert to the same float: >>> a = 12345678901234567890 >>> b = 12345678901234567891 >>> float(a) == float(b) True And the float they convert

[issue39516] ++ does not throw a SyntaxError

2020-02-01 Thread Marco Sulla
New submission from Marco Sulla : Python 3.9.0a0 (heads/master-dirty:d8ca2354ed, Oct 30 2019, 20:25:01) [GCC 9.2.1 20190909] on linux Type "help", "copyright", "credits" or "license" for more information. >>> 1 ++ 2 3 This is probably because the interpreter reads: 1 + +2 1. ++ could be an

[issue34793] Remove support for "with (await asyncio.lock):"

2020-02-01 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34793] Remove support for "with (await asyncio.lock):"

2020-02-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 90d9ba6ef10af32e8dfe0649789c3a8ccf419e95 by Andrew Svetlov in branch 'master': bpo-34793: Drop old-style context managers in asyncio.locks (GH-17533) https://github.com/python/cpython/commit/90d9ba6ef10af32e8dfe0649789c3a8ccf419e95 --

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-02-01 Thread Jeremy Kloth
Jeremy Kloth added the comment: > The problem is to make Py_INCREF/Py_DECREF efficient. That is exactly why I didn't propose a change to them. The singletons still are refcounted as usual, just that their ob_refcnt is ignored. If they somehow reach 0, they just "resurrect" themselves and

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: Adding 3.8 before I post a PR - as I think the initial merge that introduced the regression was before master was considered 3.9. -- versions: +Python 3.8 ___ Python tracker

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-02-01 Thread STINNER Victor
STINNER Victor added the comment: I vaguely recall discussions about immortal Python objects. (*) Instagram gc.freeze() * https://docs.python.org/dev/library/gc.html#gc.freeze * https://instagram-engineering.com/dismissing-python-garbage-collection-at-instagram-4dca40b29172 (*) Python

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-02-01 Thread STINNER Victor
STINNER Victor added the comment: Recently, Petr Viktorin proposed immortal singletons in my latest "Pass the Python thread state to internal C functions" thread on python-dev list: https://mail.python.org/archives/list/python-...@python.org/message/RAVSH7HYHTROXSTUR3677WGTCTEO6FYF/ In 2004,

[issue26789] asyncio: Please do not log during shutdown

2020-02-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner title: Please do not log during shutdown -> asyncio: Please do not log during shutdown ___ Python tracker ___

[issue39467] Allow to deprecate CLI arguments in argparse

2020-02-01 Thread hai shi
hai shi added the comment: IMHO, cli should only support atomic function.What is atomic functin? (if downstream software's feature can not keep alive without upstream fucntion, it must be an atomic function). -- nosy: +shihai1991 -4383 ___ Python

[issue39464] Allow translating argparse error messages

2020-02-01 Thread hai shi
hai shi added the comment: Paste José's comment from PR17169: This message isn't used (only?) in exceptions... it's a message that is given to the console, to notify the user when she didn't provide correct parameters. For example: ``` $ python3 ./drt.py -l Uso: ./drt.py [-h] [-l LONG_MIN]

[issue39464] Allow translating argparse error messages

2020-02-01 Thread hai shi
hai shi added the comment: Users interact with console's output, so translated the output info is fine to me. Hi,raymond、paul. What's your opinion? -- ___ Python tracker ___

[issue39467] Allow to deprecate CLI arguments in argparse

2020-02-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In general I agree with Raymond, although I am warmer to this feature. And I think we should have a mechanism to deprecate not only options, but subcommands. * The warnings module is used for warning about the use of API. It outputs the file and the line

[issue39298] add BLAKE3 to hashlib

2020-02-01 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39516] ++ does not throw a SyntaxError

2020-02-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, as you have pointed out yourself you are using a binary plus and a unary plus operator in the same expression. This has been part of Python since version 1, and with operator overloading `obj + +thing` could mean whatever the objects

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +17679 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18302 ___ Python tracker

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: NetBSD also uses non-ncurses implementation of curses, but it supports ESCDELAY, set_escdelay(), etc. This is not a difference between ncurses and non-ncurse, but a problem specific to the AIX implementation of curses. Please check that PR 18302 fixes the

[issue39378] partial of PickleState struct should be traversed.

2020-02-01 Thread hai shi
Change by hai shi : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: