[issue39972] Math library Bug Return None for "degrees(0)"

2020-03-15 Thread Ion SKALAMERA
Change by Ion SKALAMERA : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39973] The documentation for PyObject_GenericSetDict() is incorrect

2020-03-15 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +18374 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19026 ___ Python tracker ___

[issue39973] The documentation for PyObject_GenericSetDict() is incorrect

2020-03-15 Thread Zackery Spytz
New submission from Zackery Spytz : PyObject_GenericSetDict() takes three arguments, but the documentation states that it takes just two. -- assignee: docs@python components: Documentation messages: 364287 nosy: ZackerySpytz, docs@python priority: normal severity: normal status: open

[issue39972] Math library Bug Return None for "degrees(0)"

2020-03-15 Thread Ion SKALAMERA
Change by Ion SKALAMERA : -- nosy: +mark.dickinson, rhettinger, stutzbach -Ion SKALAMERA ___ Python tracker ___ ___

[issue39883] Use BSD0 license for code in docs

2020-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK. I looked at the PR. Normally, issue comes first, with justification and approval status. -- ___ Python tracker ___

[issue39972] Math library Bug Return None for "degrees(0)"

2020-03-15 Thread Ion SKALAMERA
New submission from Ion SKALAMERA : I tried programming a recursive fractal with Python Turtle on repl.it: https://repl.it/@IonSKALAMERA/simplefractalrecursive and when my code came to calculating the angle degrees(0) returned NoneType which is a serious bug in the math library. I dont know

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-15 Thread Guido van Rossum
Guido van Rossum added the comment: I stopped following the discussion at some point, but I think this is worth adding it -- I have seen this done over and over again, and apparently lots of other people have felt the need too. I think these names are fine, and about the best we can do

[issue39970] Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines

2020-03-15 Thread Yi Luan
Yi Luan added the comment: Sorry to make changes again but I typed his name wrong = =! It's Scott Meyers. Apologies. -- ___ Python tracker ___

[issue39970] Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines

2020-03-15 Thread Yi Luan
Yi Luan added the comment: Hi, Thanks for taking time to reply my question. I suppose the title I put was a bit confusing. And the recommended way to generate time in UTC does solve this issue, in Python. However the message I was trying to convey is, the behavior of timestamp() is one

[issue39892] Enable DeprecationWarnings by default when not explicit in unittest.main()

2020-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 10535 says they should already be on by default in unittest. I seem to recall checking that was still true when implementing the default warning filter changes in 3.7. -- ___ Python tracker

[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: Petr's point that any subclass state should be managed in the subclass cleanup functions is a good one, so I withdraw my concern: * custom module subclasses should clean up like any other class instance * the module slots are then only needed if the module

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

2020-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, I've got this one. It will still take a little to get to it, but I've already invested work in it. The code idea is plausible but I want to think it through for both CPython and PyPy. -- ___ Python

[issue39968] port extension modules' macros of `get_module_state()` to inline function.

2020-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Tim, do you approve of this kind of wholesale macro-to-inline function conversion? My thought is that in most cases, there is no advantage to conversion and that sometimes there will be minor disadvantage in code generation when the macro is used across

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Guido, do you support this API expansion? -- nosy: +gvanrossum, rhettinger ___ Python tracker ___

[issue37860] Add deploy preview for docs

2020-03-15 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39883] Use BSD0 license for code in docs

2020-03-15 Thread Todd Jennings
Todd Jennings added the comment: Hi Terry, Please take a look at the linked PR. This was already discussed on the python-ideas mailing list and Guido agreed this is a good idea. It is currently waiting on a PSF board decision. Guido requested I create a blurb, and that required a

[issue34882] f(a=1, *args) should be a SyntaxError

2020-03-15 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37860] Add deploy preview for docs

2020-03-15 Thread Ashwin Ramaswami
Change by Ashwin Ramaswami : -- title: Add netlify deploy preview for docs -> Add deploy preview for docs ___ Python tracker ___

[issue39971] Error on documentation - Quick fix.

2020-03-15 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think that was meant to be a literal example. I think that "..." here means "and other strings". -- nosy: +eric.smith ___ Python tracker

[issue39839] Non-working error handler when creating a task with assigning a variable

2020-03-15 Thread Caleb Hattingh
Caleb Hattingh added the comment: Can reproduce also on 3.8. Another version that "works" (raises the exception) is task = loop.create_task(test()) del task Suggests there's something going on with reference counting or garbage collection. In the version that "doesn't work", the

[issue39073] email incorrect handling of crlf in Address objects.

2020-03-15 Thread R. David Murray
R. David Murray added the comment: Thanks for the PR. I've made some review comments. -- ___ Python tracker ___ ___

[issue39725] unrelated `from None` exceptions hide prior exception information

2020-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: Tweaked title to be "hide" rather "lose" (all the info is theoretically still there in various places, it's just hidden by the default traceback printing machinery, and hard to extract from the exception tree). Issue #18861 is the original report of this

[issue37860] Add netlify deploy preview for docs

2020-03-15 Thread Kyle Stanley
Kyle Stanley added the comment: > only build PRs that have been tagged "documentation" My preference would be to have a "preview-with-netlify" label that could be manually added to use the netlify preview on a case-by-case basis. There are a substantial number of trivial PRs (such as typo

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Arkadiusz Miśkiewicz
Arkadiusz Miśkiewicz added the comment: master works fine 3.8 branch hangs so there is some other/related issue. -- ___ Python tracker ___

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I tested it on the master branch with commit 5b66ec166b81c8a77286da2c0d17be3579c3069a -- ___ Python tracker ___

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I still cannot reproduce it in your system: [test@ixion-pld cpython]$ hostname ixion-pld [test@ixion-pld cpython]$ uname -a Linux ixion-pld 5.5.2-1 #1 SMP Wed Feb 5 19:26:43 CET 2020 x86_64 Common_KVM_processor PLD Linux [test@ixion-pld cpython]$ cat

[issue39961] warning: this use of "defined" may not be portable (Mac OS)

2020-03-15 Thread Clem Wang
Clem Wang added the comment: Oops: forgot version numbers MacOS Catalina (10.15.13 19D76) 2.6 Ghz 6-Code Intel i7 32 GB RAM Homebrew 2.2.10 Homebrew/homebrew-core (git revision 58c0; last commit 2020-03-13) Homebrew/homebrew-cask (git revision ab52c7; last commit 2020-03-14) Not sure

[issue37860] Add netlify deploy preview for docs

2020-03-15 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: GitHub Pages has no limit on "build limits" like Netlify does. One limitation of this approach, though, is that GitHub Pages sites are limited to 1 GB in size. Each doc build is 50 MB, meaning that we could host at a maximum 20 builds. If we needed to, we

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > ps. I'm arekm@freenode and can give ssh account for playing with the issue Can you send me an email to pablog...@gmail.com to set up ssh access? -- ___ Python tracker

[issue37860] Add netlify deploy preview for docs

2020-03-15 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: Given Ernest's comment in https://github.com/python/cpython/pull/15288#issuecomment-579476340 about the limitations of Netlify (1000 build minutes per month), it doesn't seem like Netlify will be a viable alternative. Instead, I've added a PR

[issue37860] Add netlify deploy preview for docs

2020-03-15 Thread Ashwin Ramaswami
Change by Ashwin Ramaswami : -- pull_requests: +18373 pull_request: https://github.com/python/cpython/pull/19025 ___ Python tracker ___

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Arkadiusz Miśkiewicz
Arkadiusz Miśkiewicz added the comment: http://ixion.pld-linux.org/~arekm/python-gdb1.txt it's a result of thread apply all bt, thread apply all bt full, where pystack command shows nothing. ps. I'm arekm@freenode and can give ssh account for playing with the issue --

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread miss-islington
miss-islington added the comment: New changeset 7f5302fed4ff0cc8042e639b29a0664a16bc2702 by Miss Islington (bot) in branch '3.8': bpo-39360: Ensure all workers exit when finalizing a multiprocessing Pool (GH-19009)

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Sadly, I am unable to reproduce, so without more clarification or a reliable reproducer, we cannot start debugging the issue. > For test 1) no traceback on ctrl+c and also no trace logged with faulthandler > installed, so no idea where it hangt. Can

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

2020-03-15 Thread Dennis Sweeney
Dennis Sweeney added the comment: My suspicion was confirmed about PyPy (My PyPy here is Python 3.6.1 (784b254d6699, Apr 16 2019, 12:10:48) [PyPy 7.1.1-beta0 with MSC v.1910 32 bit] on win32). In what follows, "heapq2.py" had exactly the `class merge` Python implementation from PR 18427.

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Arkadiusz Miśkiewicz
Arkadiusz Miśkiewicz added the comment: Ok, so two test cases 1) from multiprocessing.pool import ThreadPool class A(object): def __init__(self): self.pool = ThreadPool() def __del__(self): self.pool.close() self.pool.join() a = A() print(a) 2) from

[issue9685] tuples should remember their hash value

2020-03-15 Thread Anthony Sottile
Anthony Sottile added the comment: hit this today unfortunately -- I'm working with some pretty complex (and nested) `typing.NamedTuple` objects and the lack of caching here results in quite the slowdown (in my macro benchmarks it's the difference between a render pass taking 180ms and 25ms)

[issue38870] Expose ast.unparse in the ast module

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5b66ec166b81c8a77286da2c0d17be3579c3069a by Batuhan Taşkaya in branch 'master': bpo-38870: Implement support for ast.FunctionType in ast.unparse (GH-19016) https://github.com/python/cpython/commit/5b66ec166b81c8a77286da2c0d17be3579c3069a

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD / Linux

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closed via PR 19009 -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD / Linux

2020-03-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39961] warning: this use of "defined" may not be portable (Mac OS)

2020-03-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: What version of macOS are you on? And which compiler do you use? -- ___ Python tracker ___ ___

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I tried and I cannot reproduce the hang with the code provided in the first message here after PR 19009. (Tested on Linux, Windows and MacOS) -- ___ Python tracker

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Hummm, the test case from this bug is precisely the test case in PR 19009 so > it should not hang. Oh, actually I am wrong as this is a different issue I had in mind. PR 19009 should fix the case reported in https://bugs.python.org/issue38744 and

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +18372 pull_request: https://github.com/python/cpython/pull/19023 ___ Python tracker

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ac10e0c93218627d1a639db0b7b41714c5f6a883 by Batuhan Taşkaya in branch 'master': bpo-39360: Ensure all workers exit when finalizing a multiprocessing Pool (GH-19009)

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > which looks a bit weird to me Is explained in the message in https://bugs.python.org/msg364211: What happens is that is moving that code so is executed in both code paths: explicit termination and multiprocessing finalization. > Unfortunately test

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

2020-03-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +18370 pull_request: https://github.com/python/cpython/pull/19022 ___ Python tracker ___

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

2020-03-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +18371 pull_request: https://github.com/python/cpython/pull/19021 ___ Python tracker ___

[issue38856] asyncio ProactorEventLoop: wait_closed() can raise ConnectionResetError

2020-03-15 Thread Kyle Stanley
Kyle Stanley added the comment: > Is this open for a PR? I opened a PR for this issue a bit ago (applies Yury's suggestion of suppressing the exception), just waiting on review from Andrew when he finds the time to do so. -- ___ Python tracker

[issue39969] Remove Param expression context from AST

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 8689209e0338943dba9b7ff5566b8a420374764c by Batuhan Taşkaya in branch 'master': bpo-39969: Remove ast.Param node class as is no longer used (GH-19020) https://github.com/python/cpython/commit/8689209e0338943dba9b7ff5566b8a420374764c

[issue39969] Remove Param expression context from AST

2020-03-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue10572] Move test sub-packages to Lib/test

2020-03-15 Thread Éric Araujo
Éric Araujo added the comment: I would advise against this for two reasons: - git does not track renames, contrart to Mercurial, so every log/diff command needs to analyse files to determine if something was moved rather than deleted + created; the matching can change depending on a

[issue39971] Error on documentation - Quick fix.

2020-03-15 Thread Diogo Flores
New submission from Diogo Flores : Hello, A code example from the 'functional programming how-to' raises an error. The simplest fix would be to remove the Ellipsis object from the 'line_list'. Thank you, Diogo Please check below for the commands issued: #

[issue39845] Argparse on Python 3.7.1 (Windows) appends double quotes to string if it ends with backward slash

2020-03-15 Thread Eryk Sun
Eryk Sun added the comment: PowerShell translates single quotes to double quotes when they're used to delimit a string in the command line, which complies with VC++ command-line parsing and CommandLineToArgvW [1]. But PowerShell 5 has a bug here. It translates 'C:\unu doi\' into "C:\unu

[issue39970] Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines

2020-03-15 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- resolution: wont fix -> duplicate ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39970] Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines

2020-03-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is a duplicate of issue 33293. -- superseder: -> Using datetime.datetime.utcnow().timestamp() in Python3.6.0 can't get correct UTC timestamp. ___ Python tracker

[issue39970] Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines

2020-03-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am sure this has been reported before – I will try to find the relevant issue. This behavior is correct and documented. The only improvement that we can consider is to make it more explicit that utcnow is deprecated and the correct way to obtain

[issue39970] Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines

2020-03-15 Thread Paul Ganssle
Paul Ganssle added the comment: This is the intended behavior of these functions, and there is actually now a warning on both the utcnow and utcfromtimestamp functionsto reflect this: https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow I would say that the correct

[issue38856] asyncio ProactorEventLoop: wait_closed() can raise ConnectionResetError

2020-03-15 Thread Ido Michael
Ido Michael added the comment: Is this open for a PR? -- nosy: +Ido Michael ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39725] unrelated `from None` exceptions lose prior exception information

2020-03-15 Thread Ido Michael
Ido Michael added the comment: Can I take this change into a PR? Or is it still in the process? -- nosy: +Ido Michael ___ Python tracker ___

[issue39970] Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines

2020-03-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39970] Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines

2020-03-15 Thread Yi Luan
New submission from Yi Luan : Hello, Apologies if this was a duplicate issue. I guess the most concise way of saying this is that when doing: >>> datetime.datetime.utcnow().timestamp() on a machine whose local time isn't the UTC time, the above code will not return the correct timestamp.

[issue39969] Remove Param expression context from AST

2020-03-15 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +18369 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19020 ___ Python tracker ___

[issue39955] argparse print_help breaks when help is blank space

2020-03-15 Thread Ido Michael
Ido Michael added the comment: Looks like both the original and this are still issues. Can I take this? -- nosy: +Ido Michael ___ Python tracker ___

[issue39969] Remove Param expression context from AST

2020-03-15 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : Param is an expression context that is no longer in use, we can simply remove it. This node predates the arguments node, and if I am not misguessing used inside of function signatures. -- components: Library (Lib) messages: 364238 nosy: BTaskaya

[issue39380] ftplib uses latin-1 as default encoding

2020-03-15 Thread Sebastian G Pedersen
Sebastian G Pedersen added the comment: Thanks again for the engagement. I am also in favor of adding the encoding to the constructor. However, following Giampaolo's comment, that utf-8 is standard and has been for a long time (and the RFC dating back to year 1999), I am also in favor of

[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-03-15 Thread Ido Michael
Ido Michael added the comment: I can take this for Mac V 10.14.6 if there was a decision? -- nosy: +Ido Michael ___ Python tracker ___

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2020-03-15 Thread Ido Michael
Ido Michael added the comment: I can take this and have a PR -- nosy: +Ido Michael ___ Python tracker ___ ___ Python-bugs-list

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-03-15 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +18368 pull_request: https://github.com/python/cpython/pull/19019 ___ Python tracker ___

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

2020-03-15 Thread hai shi
Change by hai shi : -- pull_requests: +18367 pull_request: https://github.com/python/cpython/pull/19018 ___ Python tracker ___

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

2020-03-15 Thread hai shi
hai shi added the comment: hundreds of encoding names can not be released in Py_Finalize(). for example: ``` 0x7ff482f589e0 [1] 'iso_8859_1_1987' 0x7ff482f58970 [1] 'iso_8859_1' ``` --> ``` 0x7ff482f589e0 [2] 'iso_8859_1_1987' 0x7ff482f58970 [2] 'iso_8859_1' ``` --

[issue39968] port extension modules' macros of `get_module_state()` to inline function.

2020-03-15 Thread hai shi
Change by hai shi : -- title: move extension modules' macros of `get_module_state()` to inline function. -> port extension modules' macros of `get_module_state()` to inline function. ___ Python tracker

[issue39968] move extension modules' macros of `get_module_state()` to inline function.

2020-03-15 Thread hai shi
Change by hai shi : -- title: move extension modules' macros of `get_xx_state()` to inline function. -> move extension modules' macros of `get_module_state()` to inline function. ___ Python tracker

[issue10572] Move test sub-packages to Lib/test

2020-03-15 Thread Ido Michael
Ido Michael added the comment: + Distutils is last priority -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10572] Move test sub-packages to Lib/test

2020-03-15 Thread Ido Michael
Ido Michael added the comment: Before I put more time into that, here's the strategy here: 1. Module by module migration. 2. By this order tkinter/test distutils/tests ctypes/tests lib2to3/tests unittest/test * sqlite3/test - excluded because needs more work. Please let me know if

[issue39968] move extension modules' macros of `get_xx_state()` to inline function.

2020-03-15 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +18366 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19017 ___ Python tracker ___

[issue39968] move extension modules' macros of `get_xx_state()` to inline function.

2020-03-15 Thread hai shi
New submission from hai shi : as victor and petr said in PR18613:inline function is more better than macros, so I plan move all extension modules' macros of `get_xx_state()` to inline function. Note: some inline get_xx_state() can not be used directly in `tp_traverse`、`tp_free` and

[issue38870] Expose ast.unparse in the ast module

2020-03-15 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +18365 pull_request: https://github.com/python/cpython/pull/19016 ___ Python tracker ___

[issue39507] http library missing HTTP status code 418 "I'm a teapot"

2020-03-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement versions: +Python 3.9 ___ Python tracker

[issue39507] http library missing HTTP status code 418 "I'm a teapot"

2020-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 61ac612e78e4f2625977406fb6f366e0a644673a by Ross in branch 'master': bpo-39507: Add HTTP status 418 "I'm a Teapot" (GH-18291) https://github.com/python/cpython/commit/61ac612e78e4f2625977406fb6f366e0a644673a -- nosy:

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

2020-03-15 Thread Lahfa Samy
Lahfa Samy added the comment: Following the guide, I've send a patch with the fix, I'm waiting for a review. Once the patch will be reviewed and accepted. My patch will need to be backported from 3.9 to 3.7. -- ___ Python tracker

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

2020-03-15 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 nosy_count: 13.0 -> 14.0 pull_requests: +18363 pull_request: https://github.com/python/cpython/pull/19015 ___ Python tracker ___

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2020-03-15 Thread swgmma
Change by swgmma : -- pull_requests: -18362 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2020-03-15 Thread swgmma
Change by swgmma : -- pull_requests: +18362 pull_request: https://github.com/python/cpython/pull/18719 ___ Python tracker ___ ___

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2020-03-15 Thread swgmma
Change by swgmma : -- keywords: +patch pull_requests: +18361 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19014 ___ Python tracker

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2020-03-15 Thread swgmma
swgmma added the comment: > Try running that script with pythonw.exe instead. That did the trick. Confirmed that the changes are working as intended. Running the test script posted earlier and adding the new `force_hide` kwarg to the subprocess call: With `force_hide=False`, a command

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Arkadiusz Miśkiewicz
Arkadiusz Miśkiewicz added the comment: (note, testing on 3.8 branch + pull request patch) -- ___ Python tracker ___ ___

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Arkadiusz Miśkiewicz
Arkadiusz Miśkiewicz added the comment: I've applied pull request patch (which looks a bit weird to me, removes something then adds the same thing back etc https://patch-diff.githubusercontent.com/raw/python/cpython/pull/19009.patch). Essentially the change is: diff --git

[issue39967] bdb calls linecache.checkcache, resulting in source being different from code

2020-03-15 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch pull_requests: +18360 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19013 ___ Python tracker ___

[issue39967] bdb calls linecache.checkcache, resulting in source being different from code

2020-03-15 Thread daniel hahler
New submission from daniel hahler : `Bdb.reset` calls `linecache.checkcache`, which will clear the cache for any updated source files. This however might result in displayed source code being different from the actual code, in case you are editing the file being currently debugged. I think

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. There should be a check to ensure that the attribute is present to handle the attribute error while attaching the wrapped object's value. Something like below could be done so that we check for wrapped value or fallback to

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

2020-03-15 Thread hai shi
Change by hai shi : -- pull_requests: +18359 pull_request: https://github.com/python/cpython/pull/19012 ___ Python tracker ___

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-15 Thread Avram
New submission from Avram : This bug was introduced with Issue25597 Here's some code that demonstrates the error: import sys from unittest.mock import patch with patch.object(sys, 'stdout', wraps=sys.stdout) as mockstdout: bool(sys.stdout) This works fine in 3.8 and

[issue39965] await is valid in non async functions if PyCF_ALLOW_TOP_LEVEL_AWAIT is set

2020-03-15 Thread Yury Selivanov
Yury Selivanov added the comment: Good catch & PR ;) Thanks -- ___ Python tracker ___ ___ Python-bugs-list mailing list