[issue38385] statistics: incorrect documentation

2019-11-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 3562439eb293c5fe90b1f1fe507d57d2f4fcd044 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-38385: Fix iterator/iterable terminology in statistics docs (GH-17111) (GH-17113) https://github.com/python/cpython/commit/3562439eb293

[issue36092] unittest.mock's patch.object and patch.dict are not supported on classmethod, propery and staticmethod

2019-11-12 Thread Jackson Riley
Jackson Riley added the comment: Hi Karthikeyan, It seems that test_patch_descriptor has been removed by Chris Withers on 1st of May 2019 under commit adbf178. I would therefore propose that this bug be marked as closed/resolved. Cheers, Jackson -- nosy: +jacksonriley

[issue17306] Improve the way abstract base classes are shown in help()

2019-11-12 Thread Jackson Riley
Jackson Riley added the comment: Hi Raymond, I'm working with Ben on the EnHackathon project (https://enhackathon.github.io/) and am planning on working on this issue. Is that alright? Please do say if there's anything extra wanted or if you have any guidance (this is my first time contribu

[issue38773] Fatal Python error: Aborted

2019-11-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm pretty sure you should be reporting this to Anaconda. Its a crash involving a third-party distribution of Python and third-party applications like numba and cython. -- nosy: +steven.daprano ___ Python tracker

[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Torbjørn Wikestad
New submission from Torbjørn Wikestad : In a script that runs in a IPython 3.6 console (Spyder IDE, part of a WinPython bundle), a counter increment statement is executed after a function call which raises an ValueError exception in try ... except structure. This does not seem to be the correc

[issue38775] Cloudpickle.py file is crashing due to data type incompatibility.

2019-11-12 Thread Kafeel Ansari
New submission from Kafeel Ansari : I tried python3.8 for my project. But it is crashing in the beginning . When debugged , found out that "Line 145 in cloudpickle.py" is returning the value in bytes which is not expected. Code Snippet: _cell_set_template_code = _make_cell_set_template_co

[issue38776] rlock_count<0

2019-11-12 Thread toywei
New submission from toywei : Modules\_threadmodule.c if (self->rlock_count == 0 || self->rlock_owner != tid) { ==> if (self->rlock_count <= 0 || self->rlock_owner != tid) { -- components: Build messages: 356431 nosy: toywei priority: normal severity: normal status: open versions

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +16623 pull_request: https://github.com/python/cpython/pull/17117 ___ Python tracker ___ __

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8341a4d918ca96f8a5523444e056ffa82fa039d5 by Terry Jan Reedy in branch '3.8': [3.8] bpo-37309: idlelib/NEWS.txt - add missing period. (#17115) https://github.com/python/cpython/commit/8341a4d918ca96f8a5523444e056ffa82fa039d5 -- ___

[issue38776] rlock_count<0

2019-11-12 Thread STINNER Victor
STINNER Victor added the comment: Hello. Please elaborate your bug report. What is your problem? What are you trying to do? What is the current behavior? -- nosy: +vstinner ___ Python tracker __

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-11-12 Thread miss-islington
miss-islington added the comment: New changeset 832341a07158955c2df899c18779b72fb379b0d0 by Miss Islington (bot) in branch '3.7': [3.8] bpo-37309: idlelib/NEWS.txt - add missing period. (GH-17115) https://github.com/python/cpython/commit/832341a07158955c2df899c18779b72fb379b0d0 -- n

[issue23692] Undocumented feature prevents re module from finding certain matches

2019-11-12 Thread Jackson Riley
Jackson Riley added the comment: Hi Matthew, Serhiy, I tried to identify the right places in re to fix things but have found it a bit difficult. I wrote up my attempt (at https://enhackathon.github.io/2019/11/04/JacksonRiley.html) which includes some examples that behave differently from ho

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c8b53dc3d8f721ed8519aa5a35530a42fbfb9424 by Terry Jan Reedy (Zackery Spytz) in branch 'master': bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103) https://github.com/python/cpython/commit/c8b53dc3d8f721ed8519aa5a35530

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +16624 pull_request: https://github.com/python/cpython/pull/17118 ___ Python tracker ___ __

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +16625 pull_request: https://github.com/python/cpython/pull/17119 ___ Python tracker ___ __

[issue38775] Cloudpickle.py file is crashing due to data type incompatibility.

2019-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this on Python 3.8.0 ? There was a similar report in the past with cloudpickle at https://bugs.python.org/issue36886#msg342182 due to PEP 570 with which CodeType.replace was introduced. cloudpickle also added support for this with https://github

[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add the script without any dependencies to reproduce this? -- nosy: +xtreak ___ Python tracker ___ _

[issue36092] unittest.mock's patch.object and patch.dict are not supported on classmethod, propery and staticmethod

2019-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Jackson for the information. I am fine with closing it as outdated and one can reopen if they need this along with reviving the removed tests in the PR. -- resolution: -> out of date stage: -> resolved status: open -> closed _

[issue38777] plist handling of real data type

2019-11-12 Thread David Nicolson
New submission from David Nicolson : Converting float values stored as strings with the real data type can result in an integer value or a rounding error. import plistlib xml = """ http://www.apple.com/DTDs/PropertyList-1.0.dtd";> FloatExample 100.0 FloatExample2 0.1 """ pl = plistlib.lo

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread miss-islington
miss-islington added the comment: New changeset 8ce1a9ce038d1a5fda03ae76964002857a2a52f9 by Miss Islington (bot) in branch '3.8': bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103) https://github.com/python/cpython/commit/8ce1a9ce038d1a5fda03ae76964002857a2a52f9

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread miss-islington
miss-islington added the comment: New changeset 177b12682cad7edf9cdea91382acc4232c0167e6 by Miss Islington (bot) in branch '3.7': bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103) https://github.com/python/cpython/commit/177b12682cad7edf9cdea91382acc4232c0167e6

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue38777] plist handling of real data type

2019-11-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue38777] plist handling of real data type

2019-11-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks like a plutil issue. -- nosy: +ronaldoussoren, serhiy.storchaka ___ Python tracker ___ _

[issue38763] mock with side effect : assert_called_once returns None while call_count returns 1

2019-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think we can close this as not a bug. I don't think we need to add boolean return value of True if the assert statements are True since it's never meant to be used. I would wait for others opinion on this. -- nosy: +cjw296, lisroach, mari

[issue36092] unittest.mock's patch.object and patch.dict are not supported on classmethod, propery and staticmethod

2019-11-12 Thread Jackson Riley
Jackson Riley added the comment: Thanks Karthikeyan! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9495] argparse unittest tracebacks are confusing if an error is raised when not expected

2019-11-12 Thread Alex
Change by Alex : -- pull_requests: +16626 pull_request: https://github.com/python/cpython/pull/17120 ___ Python tracker ___ ___ Pytho

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-12 Thread Anj-A
Anj-A <2017...@gmail.com> added the comment: Hey, if there is no bug here, could we get this issue closed? Alternatively, I'd be interested in doing the required change in documentation/error type if that's seen to be the right solution. Personally, I think returning False instead of raising a

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue16576] ctypes: structure with bitfields as argument

2019-11-12 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 106271568c58cfebae58f0c52b640dbe716ba2ce by Vinay Sajip in branch 'master': bpo-16576: Add checks for bitfields passed by value to functions. (GH-17097) https://github.com/python/cpython/commit/106271568c58cfebae58f0c52b640dbe716ba2ce --

[issue37855] Compiling Python 3.7.4 with Intel compilers 2019

2019-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue37415 -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mail

[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +16627 pull_request: https://github.com/python/cpython/pull/17121 ___ Python tracker ___ __

[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-11-12 Thread miss-islington
miss-islington added the comment: New changeset a12255d8def0c82560545e66c1be981a447751c3 by Miss Islington (bot) (David K) in branch 'master': bpo-38421: Update email.utils documentation (GH-16678) https://github.com/python/cpython/commit/a12255d8def0c82560545e66c1be981a447751c3 --

[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +16628 pull_request: https://github.com/python/cpython/pull/17122 ___ Python tracker ___ __

[issue35856] bundled pip syntaxwarning

2019-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this is fixed in pip's side with requests package upgraded with https://github.com/pypa/pip/commit/785ecf476a63e00819ef1b14bc8ee758dc9c12cb#diff-9235561c186d44f2bb0eef8b7f1d57ceR3 using raw string literls. I think we can close this as outdat

[issue35666] Update design FAQ about assignment expression

2019-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is updated with 6357c95716d89ac1f80587fbc4133df8d2e8396c . Closing this as fixed. Feel free to reopen if needed. Thanks. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python

[issue35856] bundled pip syntaxwarning

2019-11-12 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue35192] pathlib mkdir throws FileExistsError when not supposed to

2019-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing this as duplicate of issue29694. I hope this is backported to Ubuntu repos and there is not much pending work to this issue. Thanks. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> race conditi

[issue36974] Implement PEP 590

2019-11-12 Thread miss-islington
miss-islington added the comment: New changeset 9a13a388f202268dd7b771638adbec132449b98b by Miss Islington (bot) (Jeroen Demeyer) in branch 'master': bpo-36974: expand call protocol documentation (GH-13844) https://github.com/python/cpython/commit/9a13a388f202268dd7b771638adbec132449b98b --

[issue38763] mock with side effect : assert_called_once returns None while call_count returns 1

2019-11-12 Thread Chris Withers
Change by Chris Withers : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-11-12 Thread miss-islington
miss-islington added the comment: New changeset eadddad6b093bca74601b1ea91ab96119bc543d8 by Miss Islington (bot) in branch '3.7': [3.7] bpo-38421: Update email.utils documentation (GH-16678) (GH-17121) https://github.com/python/cpython/commit/eadddad6b093bca74601b1ea91ab96119bc543d8 ---

[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-11-12 Thread miss-islington
miss-islington added the comment: New changeset 29fd6a77d509cffacc5691ebd9dab53455ad959e by Miss Islington (bot) in branch '3.8': [3.8] bpo-38421: Update email.utils documentation (GH-16678) (GH-17122) https://github.com/python/cpython/commit/29fd6a77d509cffacc5691ebd9dab53455ad959e ---

[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-11-12 Thread Petr Viktorin
Petr Viktorin added the comment: Thank you for the fix! -- nosy: +petr.viktorin resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35856] bundled pip syntaxwarning

2019-11-12 Thread Pradyun Gedam
Pradyun Gedam added the comment: Closing this sounds reasonable to me! There are a couple of pending PRs for updating the pip, in the current versions of CPython. That's being tracked separately so likely don't need this to stay open anymore. On Tue, 12 Nov 2019 at 6:20 PM, Inada Naoki wrote

[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: Please try your script in the vanilla Python interpreter. If it behaves correctly, you should report this issue to Spyder and/or IPython. -- nosy: +steven.daprano ___ Python tracker

[issue38731] bad input crashes py_compile library

2019-11-12 Thread Григорий Шевченко
Change by Григорий Шевченко : -- nosy: +Григорий Шевченко ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue38778] Document that os.fork is not allowed in subinterpreters

2019-11-12 Thread Phil Connell
New submission from Phil Connell : Add a comment to the os.fork docs to note that forking from a subinterpreter is no longer allowed (see issue34651) -- assignee: docs@python components: Documentation messages: 356459 nosy: docs@python, eric.snow, pconnell priority: normal severity: no

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-12 Thread Zufu Liu
Zufu Liu added the comment: I'm fine with this been closed. Maybe it's better to have a RawFd type like Julia: julia> RawFD RawFD julia> typeof(RawFD) DataType julia> RawFD(0) RawFD(0x) julia> RawFD(0)==0 false Rust has RawFd as c_int. -- _

[issue38779] Simple typo in strings module documentation

2019-11-12 Thread Michael H
New submission from Michael H : https://docs.python.org/3/tutorial/introduction.html#strings In the strings part of the basic tutorial, there is an output error regarding the escaping of the single quote >>> '"Isn\'t," they said.' '"Isn\'t," they said.' # I think the output should be correct

[issue34651] Disallow fork in a subinterpreter.

2019-11-12 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +16630 pull_request: https://github.com/python/cpython/pull/17123 ___ Python tracker ___ ___

[issue38778] Document that os.fork is not allowed in subinterpreters

2019-11-12 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +16629 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17123 ___ Python tracker ___ __

[issue38779] Simple typo in strings module documentation

2019-11-12 Thread Michael H
Michael H added the comment: Sorry, its my bad, it is correct as it is, I hadn't read further on about the print statement being needed. As I am working through the tutorial in pycharm, I am had already used print statement. Thanks! -- ___ Python

[issue38779] Simple typo in strings module documentation

2019-11-12 Thread Zachary Ware
Zachary Ware added the comment: You're right, it is correct as is; the regular output of the REPL is essentially `print(repr(_))`. Please do feel free to report any issues you find, though you may want to send a message to tu...@python.org to check anything you're not sure about. Welcome to

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I considered this. There is a limited number of functions that can produce RawFD (os.open(), os.dup(), etc), and this is a single source of file descriptors in an isolated program. File descriptors can be inherited by child processes. But there are other m

[issue38779] Simple typo in strings module documentation

2019-11-12 Thread Michael H
Michael H added the comment: Many thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue38738] Fix formatting of True and False

2019-11-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 138ccbb02216ca086047c3139857fb44f3dab1f9 by Serhiy Storchaka in branch 'master': bpo-38738: Fix formatting of True and False. (GH-17083) https://github.com/python/cpython/commit/138ccbb02216ca086047c3139857fb44f3dab1f9 -- __

[issue15243] Misleading documentation for __prepare__

2019-11-12 Thread Alex
Change by Alex : -- pull_requests: +16632 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17124 ___ Python tracker ___ _

[issue17306] Improve the way abstract base classes are shown in help()

2019-11-12 Thread Jackson Riley
Jackson Riley added the comment: Hi Raymond - here's a first attempt at adding class-level docstrings, based off the format of Sequence.__doc__. Apologies if some things are not well worded etc. It looks like all of the non-magic methods have docstrings already but if you think the magic me

[issue15243] Misleading documentation for __prepare__

2019-11-12 Thread Alex
Change by Alex : -- nosy: +alclarks ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue38777] plist handling of real data type

2019-11-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think this is a bug. The value's in the plutil output are correct, and marked up with the correct type in both cases. The difference between 0.1 and 0.10001 is the usual problem with floating point representation (see the python.org FAQ

[issue38738] Fix formatting of True and False

2019-11-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +16633 pull_request: https://github.com/python/cpython/pull/17125 ___ Python tracker ___

[issue34716] MagicMock.__divmod__ should return a pair

2019-11-12 Thread Jackson Riley
Jackson Riley added the comment: Hi Serhiy, Option 3 sounds most sensible to me. I'd be happy to pick up this issue, please do let me know. -- nosy: +jacksonriley ___ Python tracker

[issue37838] typing.get_type_hints not working with forward-declaration and decorated functions

2019-11-12 Thread Benjamin Edwards
Change by Benjamin Edwards : -- keywords: +patch pull_requests: +16634 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17126 ___ Python tracker

[issue37838] typing.get_type_hints not working with forward-declaration and decorated functions

2019-11-12 Thread Benjamin Edwards
Benjamin Edwards added the comment: Have opened a PR, let me know if there is anything that needs fixing -- ___ Python tracker ___

[issue38723] Pdb._runscript should use io.open_code() instead of open()

2019-11-12 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +16635 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17127 ___ Python tracker ___ __

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-11-12 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Torbjørn Wikestad
Torbjørn Wikestad added the comment: The script has been tried and found to work as intended in the Idle IDE, which runs on a standard win32 python shell. So the error is linked only with IPython or Spyder. -- Added file: https://bugs.python.org/file48711/2019-11-12_try-clause,numpy,

[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Torbjørn Wikestad
Torbjørn Wikestad added the comment: I could not reproduce the error when I open the script in Spyder anew. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker __

[issue38738] Fix formatting of True and False

2019-11-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d360346640e19231032b072216195484fa2450b4 by Serhiy Storchaka in branch '3.8': [3.8] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17125) https://github.com/python/cpython/commit/d360346640e19231032b072216195484fa2450b4

[issue38738] Fix formatting of True and False

2019-11-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +16637 pull_request: https://github.com/python/cpython/pull/17128 ___ Python tracker ___

[issue38777] plist handling of real data type

2019-11-12 Thread David Nicolson
David Nicolson added the comment: It looks like it's just inconsistency in plutil that is causing the confusion. /usr/libexec/PlistBuddy -c Print test.plist Dict { FloatExample2 = 0.10 FloatExample3 = 100.00 FloatExample = 0.00 } cat test.plist | plutil -convert xml1 -

[issue38731] bad input crashes py_compile library

2019-11-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: Same error on Python 2.7 and 3.7 -- versions: +Python 2.7, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs
New submission from Jason R. Coombs : On Python 3.8.0: $ python -c "import logging.handlers, socket; handler = logging.handlers.SysLogHandler(facility=logging.handlers.SysLogHandler.LOG_LOCAL7, address='/dev/log', socktype=socket.SOCK_RAW)"

[issue38738] Fix formatting of True and False

2019-11-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 42b619ac9aa7f889dcd8eeb14d813f17468454d9 by Serhiy Storchaka in branch '3.7': [3.7] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17128) https://github.com/python/cpython/commit/42b619ac9aa7f889dcd8eeb14d813f17468454d9

[issue16885] SQLite3 iterdump ordering

2019-11-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: I only observe this issue on macOS. On Linux, the error doesn't occur. -- ___ Python tracker ___ ___

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs
Change by Jason R. Coombs : -- components: +Library (Lib), macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: I guess that makes sense, as `/dev/log` doesn't exist on macOS. So maybe this usage is invalid. But still I'd expect the handler to error early or at least not error on shutdown. -- ___ Python tracker

[issue38741] Definition of multiple ']' in header configparser

2019-11-12 Thread Jason Killen
Change by Jason Killen : -- keywords: +patch pull_requests: +16638 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17129 ___ Python tracker ___ ___

[issue29302] add contextlib.AsyncExitStack

2019-11-12 Thread Ilya Kulakov
Change by Ilya Kulakov : -- pull_requests: +16640 pull_request: https://github.com/python/cpython/pull/17130 ___ Python tracker ___

[issue26467] Add async magic method support to unittest.mock.Mock

2019-11-12 Thread Ilya Kulakov
Change by Ilya Kulakov : -- pull_requests: +16639 pull_request: https://github.com/python/cpython/pull/17130 ___ Python tracker ___

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: For background, this issue originated from https://github.com/pytest-dev/pytest-services/issues/20. -- ___ Python tracker ___ _

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: The issue probably stems from https://github.com/python/cpython/blob/138ccbb02216ca086047c3139857fb44f3dab1f9/Lib/logging/handlers.py#L828-L835. I doubt the logic of that comment, as in the non-unix-socket case, the error is raised if a connection cannot be

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: In the downstream issue, it's also reported that crashes occur in emit as well, suggesting that the comment is additionally wrong on that front. -- ___ Python tracker

[issue38773] Fatal Python error: Aborted

2019-11-12 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-12 Thread Brett Cannon
Brett Cannon added the comment: I would like to bring this issue back on topic as this about how to expose PEP 523 support in Python 3.8, not whether Fabio should be using a different approach when he has been something sanctioned in an accepted PEP and was previously doable that was (accide

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: I could imagine extending the shutdown code to catch the reported error (https://github.com/python/cpython/blob/138ccbb02216ca086047c3139857fb44f3dab1f9/Lib/logging/__init__.py#L2130-L2135), but that wouldn't address the error in emit. Similarly, the SysLog

[issue26467] Add async magic method support to unittest.mock.Mock

2019-11-12 Thread Brett Cannon
Brett Cannon added the comment: Adding Lisa to potentially add the PR from Ilya. -- assignee: -> lisroach ___ Python tracker ___ _

[issue38644] Pass explicitly tstate to function calls

2019-11-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16641 pull_request: https://github.com/python/cpython/pull/17131 ___ Python tracker ___ __

[issue37855] Compiling Python 3.7.4 with Intel compilers 2019

2019-11-12 Thread STINNER Victor
STINNER Victor added the comment: This issue looks like a variant of bpo-37415 which has been fixed in the 3.7 branch by: New changeset b102e4f05278c1b06130885eba961bd0193733b4 by Miss Skeleton (bot) in branch '3.7': bpo-37415: Fix stdatomic.h header check for ICC compiler (GH-16717) https:/

[issue37855] Compiling Python 3.7.4 with Intel compilers 2019

2019-11-12 Thread STINNER Victor
Change by STINNER Victor : -- resolution: fixed -> duplicate superseder: -> Error build Python with Intel compiler: doesn't provide atomic_uintptr_t ___ Python tracker ___ _

[issue38739] pyperformance html5lib cannot import Mapping (and fails)

2019-11-12 Thread STINNER Victor
STINNER Victor added the comment: > FYI: this affects tornado_http and django_template as well. Please report pyperformance issues at: https://github.com/python/pyperformance/issues -- ___ Python tracker __

[issue38692] add a pidfd child process watcher

2019-11-12 Thread STINNER Victor
STINNER Victor added the comment: > It seems like systemd-nspawn is just breaking everything: > https://sourceware.org/ml/libc-alpha/2019-11/msg00277.html Well, we can try to argue to not block syscalls, but I'm not sure that we can win such battle :-) For os.urandom(), I chose to handle EPE

[issue38781] Clear buffer in MemoryHandler flush

2019-11-12 Thread Daniel Andersson
New submission from Daniel Andersson : The `logging.handlers.MemoryHandler` has a method `flush` which clears the buffer by assigning an empty list literal: self.buffer = [] This forces the buffer to be a list instance. My suggestion is to clear the buffer like this instead: self.buffer.clea

[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: As you noted /dev/log doesn't exist on macOS (the correct path is /var/run/syslog). I guess the change that would be most in spirit of the comment is to set self.socket to None when the socket cannot be opened and test for that before closing the socket.

[issue16142] ArgumentParser inconsistent with parse_known_args

2019-11-12 Thread Lewis Gaul
Change by Lewis Gaul : -- nosy: +aeros ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue38692] add a pidfd child process watcher

2019-11-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: We should not claim to support running our tests in weird syscall sandboxes. There's an infinite number of possible sandboxing configurations, and we can't fix them all. -- ___ Python tracker

[issue38781] Clear buffer in MemoryHandler flush

2019-11-12 Thread Daniel Andersson
Change by Daniel Andersson : -- keywords: +patch pull_requests: +16642 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17132 ___ Python tracker ___

  1   2   >