[issue36440] more helpful diagnostics for parser module

2019-04-06 Thread Xavier Combelle
Change by Xavier Combelle : -- nosy: -xcombelle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36542] Allow to overwrite the signature for Python functions

2019-04-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently __text_signature__ can be used for specifying signature of functions implemented in C. It is ignored for functions implemented in Python. The proposed PR allows to override the real signature of Python functions by setting the

[issue36542] Allow to overwrite the signature for Python functions

2019-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12629 stage: -> patch review ___ Python tracker ___ ___

[issue36539] Distutils VC 6.0 Errors When Using mingw-w64 GCC

2019-04-06 Thread Christoph Reiter
Christoph Reiter added the comment: MSYS2 patches setuptools to work with GCC and the MSYS2 Python, so you can't use setuptools as is from pip. See https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-python-setuptools for the current set of patches. -- nosy: +lazka

[issue36440] more helpful diagnostics for parser module

2019-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since the parser module did not work in 3.7, I think this will not harm. But in general new features (including changes in error messages) are added only in the developed version. -- ___ Python tracker

[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2019-04-06 Thread Inada Naoki
Inada Naoki added the comment: New changeset d6bf6f2d0c83f0c64ce86e7b9340278627798090 by Inada Naoki in branch 'master': bpo-36050: optimize HTTPResponse.read() (GH-12698) https://github.com/python/cpython/commit/d6bf6f2d0c83f0c64ce86e7b9340278627798090 --

[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2019-04-06 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36532] Example of logging.formatter with new str.format style

2019-04-06 Thread spaceman_spiff
spaceman_spiff added the comment: I was under the impression that this was all it takes to use loggers with the normal string.format syntax. e.g.: log.info('{}', 'Test') Turns out when I tested it I used f-strings in the first parameters - so I got it wrong. Imho this can be closed and

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-04-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Here's a PR that goes the re-initialization route rather than attempting to acquire/release anything other than the single module _lock. -- nosy: +lukasz.langa versions: +Python 3.8 ___ Python tracker

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +12630 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36527] unused parameter warnings in Include/object.h (affecting building third party code)

2019-04-06 Thread Inada Naoki
Inada Naoki added the comment: New changeset a0da131a74acdb147ecd64d729c86d65fecd0cff by Inada Naoki (Dmitry Marakasov) in branch 'master': bpo-36527: silence -Wunused-parameter warnings in object.h (GH-12688) https://github.com/python/cpython/commit/a0da131a74acdb147ecd64d729c86d65fecd0cff

[issue36538] _thread.interrupt_main() no longer interrupts Lock.wait

2019-04-06 Thread Eryk Sun
Eryk Sun added the comment: Windows doesn't implement POSIX signals in the kernel, so _thread.interrupt_main (i.e. PyErr_SetInterrupt) can be useful as an abstraction. Currently PyErr_SetInterrupt (Modules/signalmodule.c) doesn't set our SIGINT event in Windows. It was suggested in issue

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-04-06 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +12628 stage: -> patch review ___ Python tracker ___ ___

[issue36544] cannot import hashlib when openssl is missing

2019-04-06 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +12632 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36146] Refactor setup.py

2019-04-06 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +12633 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2019-04-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +12634 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2019-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2ea8099523581cf2ecc060831a53debb57ff98ee by Serhiy Storchaka (Stefan Behnel) in branch 'master': bpo-9883: Update list of unimplemented interfaces in minidom. (GH-12677)

[issue36542] Allow to overwrite the signature for Python functions

2019-04-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36537] except statement block incorrectly assumes end of scope(?).

2019-04-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xdegaye ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36529] Python from WindowsStore: can't install package using "-m pip"

2019-04-06 Thread Steve Dower
Steve Dower added the comment: Yeah, right now you need to also pass --local when you use -m (the bundled pip.exe does this automatically). Your user account does not have permission to install into the global site directory. Once we update the bundled pip I can add a site-specific

[issue36545] Python 3.5 OOM during test_socket on make

2019-04-06 Thread Philip Deegan
New submission from Philip Deegan : Building Python 3.5.3 or 3.5.6 on my Kernel 5.0.2 Debian 9 install has runaway memory usage during "test_socket" while running make after ./configure CFLAGS="-g3 -O3 -march=native -fPIC -I/usr/include/openssl" CXXFLAGS="-g3 -O3 -march=native -fPIC

[issue36543] Remove old-deprecated ElementTree features (part 2)

2019-04-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR removes old-deprecated ElementTree features. * Methods Element.getchildren(), Element.getiterator() and ElementTree.getiterator() deprecated in 2.7 and 3.2. They were deprecated in the documentation only, and started to emit a warning in

[issue36543] Remove old-deprecated ElementTree features (part 2)

2019-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12631 stage: -> patch review ___ Python tracker ___ ___

[issue36544] cannot import hashlib when openssl is missing

2019-04-06 Thread Xavier de Gaye
New submission from Xavier de Gaye : Python is built natively in a docker container (based on ubuntu bionic) that lacks openssl. pydev@979e9e009b08:~/build/python-native$ ./python Python 3.8.0a3+ (heads/master-dirty:d6bf6f2, Apr 6 2019, 14:43:30) [GCC 7.3.0] on linux Type "help",

[issue36544] cannot import hashlib when openssl is missing

2019-04-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: Changeset 5ec33a1c25a586552751ca35c85ab7ecb6b06ec3 appends to the new detect_openssl_hashlib() method, the detection for the _sha256, _sha512, _md5, ... extension modules. These modules were detected unconditionnaly before this change and are not detected

[issue36506] [security] CVE-2019-10268: An arbitrary execution vulnerability exists in the built-in function getattr

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

[issue36543] Remove old-deprecated ElementTree features (part 2)

2019-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue29209. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29209] Remove old-deprecated ElementTree features

2019-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The rest will be removed in issue36543. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36544] cannot import hashlib when openssl is missing

2019-04-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: Working on a PR -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36504] Signed integer overflow in _ctypes.c's PyCArrayType_new()

2019-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36541] Make lib2to3 grammar more closely match Python

2019-04-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36537] except statement block incorrectly assumes end of scope(?).

2019-04-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is not a bug. On the first pdb session from the OP: True --Return-- > (5)()->None -> import pdb; pdb.set_trace() (Pdb) print("err" in locals()) False <-- BUG?? Pdb has stopped on a '--Return--' line event, so we are already outside

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @paul.j3 I assume this is an easy issue of wrapping "default" with _() at [0]. There doesn't seem to be any tests for localization in argparse. https://github.com/python/cpython/blob/2ea8099523581cf2ecc060831a53debb57ff98ee/Lib/argparse.py#L682

[issue36546] Add quantiles() to the statistics module

2019-04-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: https://patch-diff.githubusercontent.com/raw/python/cpython/pull/12710.diff -- ___ Python tracker ___

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread paul j3
paul j3 added the comment: https://bugs.python.org/issue16786 points out that the 'version' action isn't localizable either. -- ___ Python tracker ___

[issue36527] unused parameter warnings in Include/object.h (affecting building third party code)

2019-04-06 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2019-04-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +12638 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36546] Add quantiles() to the statistics module

2019-04-06 Thread Raymond Hettinger
New submission from Raymond Hettinger : It is a common and useful data analysis technique to examine quartiles, deciles, and percentiles. It is especially helpful for comparing distinct datasets (heights of boys versus heights of girls) or for comparing against a reference distribution

[issue36537] except statement block incorrectly assumes end of scope(?).

2019-04-06 Thread Saim Raza
Saim Raza added the comment: https://docs.python.org/3/reference/compound_stmts.html#the-try-statement says = except E as N: foo = is converted to the following statement: = except E as N: try: foo finally: del N =

[issue36547] bedevere is not working

2019-04-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is a workflow issue and already seems to have a report. I am closing this as third party. Please don't create issues related to workflow or one of the bots here since they have separate GitHub repos where their development takes place.

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread paul j3
paul j3 added the comment: I haven't paid much attention to the localization issues in `argparse`. The issue is with the help modification done by the: class ArgumentDefaultsHelpFormatter help += ' (default: %(default)s)' This formatter is a convenience, not something critical. The

[issue31369] re.RegexFlag is not included in __all__, makes type inference less useful

2019-04-06 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I am totally fine with making RegexFlag public (this may be indeed useful for static typing purposes). -- ___ Python tracker ___

[issue36546] Add quantiles() to the statistics module

2019-04-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36547] bedevere is not working

2019-04-06 Thread Emmanuel Arias
New submission from Emmanuel Arias : Hi! I don't know if here is the correct place to this, but bedevere is not working from a day ago. -- messages: 339552 nosy: eamanu priority: normal severity: normal status: open title: bedevere is not working

[issue30661] Support tarfile.PAX_FORMAT in shutil.make_archive

2019-04-06 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 89a894403cfa880d7f9d1d67070f61456d14cbde by Nick Coghlan (CAM Gerlach) in branch 'master': bpo-30661: Improve docs for tarfile pax change and effect on shutil (GH-12635)

[issue30661] Support tarfile.PAX_FORMAT in shutil.make_archive

2019-04-06 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the technical clarification Lars, and for the docs update C.A.M. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36546] Add quantiles() to the statistics module

2019-04-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +12635 stage: -> patch review ___ Python tracker ___ ___

[issue36539] Distutils VC 6.0 Errors When Using mingw-w64 GCC

2019-04-06 Thread Dan Yeaw
Dan Yeaw added the comment: lazka: Thanks for you response. You are correct, the issue was that I had a pip installed version of setuptools somehow. It sounds like you think that all issues should go downstream to fixing them in the MINGW-packages. I am OK with this, it just seams like

[issue36517] typing.NamedTuple does not support mixins

2019-04-06 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Hm, it looks like we can support this. I however don't think the proposed "patch" is the right way to fix it, since this makes the implementation with and without a mixin quite different. Also I am not sure I will have time to work on this in the nearest

[issue36547] bedevere is not working

2019-04-06 Thread Emmanuel Arias
Emmanuel Arias added the comment: https://github.com/python/bedevere/issues/162 -- ___ Python tracker ___ ___ Python-bugs-list

[issue16786] argparse doesn't offer localization interface for "version" action

2019-04-06 Thread Emmanuel Arias
Change by Emmanuel Arias : -- pull_requests: +12637 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +12636 stage: -> patch review ___ Python tracker ___ ___