[issue35726] QueueHandler formatting affects other handlers

2019-04-07 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: -11460 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue35726] QueueHandler formatting affects other handlers

2019-04-07 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: -11458 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue35726] QueueHandler formatting affects other handlers

2019-04-07 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: -11459 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue35726] QueueHandler formatting affects other handlers

2019-04-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +12639 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35726] QueueHandler formatting affects other handlers

2019-04-07 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 2dad96013ca24abdc5ba5a369ea42d70ff02487a by Vinay Sajip (Xtreak) in branch 'master': bpo-35726: Add test for QueueHandler with multiple handlers (GH-11659) https://github.com/python/cpython/commit/2dad96013ca24abdc5ba5a369ea42d70ff02487a

[issue35936] Give modulefinder some much-needed updates.

2019-04-07 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 9d7b2c0909b78800d1376fd696f73824ea680463 by Nick Coghlan (Brandt Bucher) in branch 'master': bpo-35936: Updates to modulefinder (GH-11787) https://github.com/python/cpython/commit/9d7b2c0909b78800d1376fd696f73824ea680463 --

[issue35936] Give modulefinder some much-needed updates.

2019-04-07 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Brandt! I'll also go back and close #17396, #35376, and #25160 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue17396] modulefinder fails if module contains syntax error

2019-04-07 Thread Nick Coghlan
Nick Coghlan added the comment: Fixed for Python 3.8 via the patch for #35936. We won't be backporting that patch as it also migrates modulefinder from the deprecated imp API to support importlib one, and is hence considered overly intrusive for a bug fix release. -- resolution: ->

[issue35376] modulefinder skips nested modules with same name as top-level bad module

2019-04-07 Thread Nick Coghlan
Nick Coghlan added the comment: Fixed for Python 3.8 via the patch for #35936. We won't be backporting that patch as it also migrates modulefinder from the deprecated imp API to the supported importlib one, and is hence considered overly intrusive for a bug fix release. -- resolutio

[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

2019-04-07 Thread Nick Coghlan
Nick Coghlan added the comment: Fixed for Python 3.8 via the patch for #35936. -- nosy: +ncoghlan resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.6 ___ Python tracker

[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

2019-04-07 Thread Nick Coghlan
Nick Coghlan added the comment: Oops, this covers more than just modulefinder - reopening until the other remaining uses of the imp module have been removed. -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python

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

2019-04-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: @Saim wrote > https://docs.python.org/3/reference/compound_stmts.html#the-try-statement says This is correct, the disassembly of foo.py below demonstrates that point: BEGIN_FINALLY at bytecode index 36 starts the implementation of the 'finally' clause that d

[issue36548] Make the repr of re flags more readable

2019-04-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently the repr of re flags contains the name of the private class and it is not an evaluable expression: >>> re.I >>> re.I|re.S|re.X The repr of inverted flags is even more verbose: >>> ~(re.I|re.S|re.X) The result of str() starves from the sam

[issue36548] Make the repr of re flags more readable

2019-04-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12640 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36549] str.capitalize should titlecase the first character not uppercase

2019-04-07 Thread Steven D'Aprano
New submission from Steven D'Aprano : str.capitalize appears to uppercase the first character of the string, which is okay for ASCII but not for non-English letters. For example, the letter NJ in Croatian appears as Nj at the start of words when the first character is capitalized: Njemačka ('G

[issue36544] cannot import hashlib when openssl is missing

2019-04-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: Steps to reproduce (requires docker support, about 500 MB and only few minutes): 1. Create the file named 'Dockerfile' whose content is: FROM ubuntu RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y

[issue36549] str.capitalize should titlecase the first character not uppercase

2019-04-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this is a reasonable change. Also the docs for str.title() should be fixed. -- components: +Interpreter Core, Unicode keywords: +easy (C) nosy: +ezio.melotti, serhiy.storchaka, vstinner stage: -> needs patch type: -> enhancement versions:

[issue36544] cannot import hashlib when openssl is missing

2019-04-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: Check that PR 12708 fixes the bug: Run the ubuntu:bpo-36544 image and enters bash as user pydev $ docker run -it ubuntu:bpo-36544 As user pydev, clone python and fetch PR 12708, build python and import hashlib: pydev@e4cfd6f74c2b:~$ git clo

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2019-04-07 Thread Nick Coghlan
Nick Coghlan added the comment: The recommended handling in the article that Serhiy mentions is to strip the leading zeroes, which the ipaddress module will still do - it's only being made more tolerant on input. That means it will become usable as a prefilter step (pass string with potentia

[issue36053] pkgutil.walk_packages jumps out from given path if there is package with the same name in sys.path

2019-04-07 Thread Nick Coghlan
Nick Coghlan added the comment: Piotr: does it always jump out, or does it only jump out if the relevant module has already been imported? (The tests for walk_packages are relatively weak and never generate conflicting names, so it's entirely plausible that there are caching side effects tha

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2019-04-07 Thread Nick Coghlan
Nick Coghlan added the comment: I'm inclined to leave 3.7 alone unless/until we get an actual bug report for the current behaviour - if an embedder finds that it just straight up doesn't work for them, then they can either resort to tinkering with the private APIs (since they won't change un

[issue14017] Make it easy to create a new TextIOWrapper based on an existing

2019-04-07 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, let's close this for now - swapping streams out has enough other problems with stale references to the original stream that using reconfigure() to update the existing stream in place is usually going to be the better option. -- resolution: -> pos

[issue2180] tokenize: mishandles line joining

2019-04-07 Thread Anthony Sottile
Anthony Sottile added the comment: Here's an example in the wild which still reproduces with python3.8a3: https://github.com/SecureAuthCorp/impacket/blob/194b22ed2fc85c4f241375fb7ebe4e0d89626c8c/impacket/examples/remcomsvc.py#L1669 This was reported as a bug on flake8: https://gitlab.com/pyc

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

2019-04-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: The *** Tracing *** section [1] of Objects/lnotab_notes.txt in the cpython repository provides detailed explanations for when the line trace function is called. [1] https://github.com/python/cpython/blob/9d7b2c0909b78800d1376fd696f73824ea680463/Objects/lnot

[issue35726] QueueHandler formatting affects other handlers

2019-04-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +12641 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27992] Clarify %(prog)s in argparse help formatter returns basename of sys.argv[0] by default

2019-04-07 Thread py.user
Change by py.user : -- pull_requests: +12642 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue36488] os.sendfile() on BSD, macOS don't return bytes sent on EINTR

2019-04-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: Right. So this is a hard problem for anyone to solve, and therefore os.sendfile should be the one solving it, not the caller of sendfile, right? -- ___ Python tracker _

[issue27181] Add geometric mean to `statistics` module

2019-04-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 6463ba3061bd311413d2951dc83c565907e10459 by Raymond Hettinger in branch 'master': bpo-27181: Add statistics.geometric_mean() (GH-12638) https://github.com/python/cpython/commit/6463ba3061bd311413d2951dc83c565907e10459 -- __

[issue27181] Add geometric mean to `statistics` module

2019-04-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Feel free to reopen this if something further needed to be changed or discussed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36259] exception text is being sourced from the wrong file

2019-04-07 Thread Jesse Farnham
Change by Jesse Farnham : -- nosy: +jesse.farnham ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue36259] exception text is being sourced from the wrong file

2019-04-07 Thread Jesse Farnham
Jesse Farnham added the comment: I did some digging into this, and the problem seems to be that _Py_FindSourceFile() in traceback.c searches through every directory in sys.path (of which the first entry is the working directory) to find a file with the passed filename. So if there's a file i

[issue36259] exception text is being sourced from the wrong file

2019-04-07 Thread Jesse Farnham
Jesse Farnham added the comment: Upon further digging, the filename to search for ultimately comes from the PyCodeObject where the error occurred. So a possible solution could be to populate the PyCodeObject with the absolute path to the file when it’s first created in compilation. Then no se

[issue36550] Avoid creating AttributeError exceptions in the debugger

2019-04-07 Thread daniel hahler
New submission from daniel hahler : pdb should try (hard) to avoid creating unnecessary exceptions, e.g. ``AttributeError`` when looking up commands, since this will show up in exception chains then (as "'Pdb' object has no attribute 'do_foo'"). See https://github.com/python/cpython/pull/4666

[issue36550] Avoid creating AttributeError exceptions in the debugger

2019-04-07 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch pull_requests: +12643 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36546] Add quantiles() to the statistics module

2019-04-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: I think adding quantiles (sometimes called fractiles) is a good feature to add. I especially have some use-cases for quartiles. I especially like that it delegates to the inv_cdf() method when available, and I'm happy with the API you suggested. Forgive me

[issue36503] remove references to aix3 and aix4 in \*.py

2019-04-07 Thread Inada Naoki
Inada Naoki added the comment: New changeset b7eec94c0e86f8ac318b135ca9146fff32b7203a by Inada Naoki (Michael Felt) in branch 'master': bpo-36503: remove references to 'aix3' and 'aix4' (GH-12658) https://github.com/python/cpython/commit/b7eec94c0e86f8ac318b135ca9146fff32b7203a -- n

[issue36503] remove references to aix3 and aix4 in \*.py

2019-04-07 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.7, Python 3.9 ___ Python tracker ___ __

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-07 Thread anthony shaw
New submission from anthony shaw : List comprehensions currently create a series of opcodes inside a code object, the first of which is BUILD_LIST with an oparg of 0, effectively creating a zero-length list with a preallocated size of 0. If you're doing a simple list comprehension on an itera

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-07 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +12644 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue31904] Python should support VxWorks RTOS

2019-04-07 Thread LihuaZhao
Change by LihuaZhao : -- pull_requests: +12645 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-07 Thread Aaron Hall
Change by Aaron Hall : -- nosy: +Aaron Hall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue36260] Cpython/Lib vulnerability found and request a patch submission

2019-04-07 Thread Victor Kung
Victor Kung added the comment: I see. @Christian Heimes Thank you for the response. -- ___ Python tracker ___ ___ Python-bugs-lis

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

2019-04-07 Thread miss-islington
miss-islington added the comment: New changeset a9a065addd175ed37a959118c90377ba60f90036 by Miss Islington (bot) in branch '3.7': bpo-9883: Update list of unimplemented interfaces in minidom. (GH-12677) https://github.com/python/cpython/commit/a9a065addd175ed37a959118c90377ba60f90036 --

[issue36552] Replace OverflowError with ValueError when calculating length of range objects > PY_SIZE_MAX

2019-04-07 Thread anthony shaw
New submission from anthony shaw : When calculating length of range() objects that have an r->length > PY_SIZE_MAX, the underlying PyLong_AsSsize_t() function will raise an OverflowError: >>> a = list(range(2**256)) Traceback (most recent call last): File "", line 1, in OverflowError: Pyth

[issue36552] Replace OverflowError with ValueError when calculating length of range objects > PY_SIZE_MAX

2019-04-07 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +12646 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2019-04-07 Thread Inada Naoki
Inada Naoki added the comment: I think this bug is critical, because it may break user's data silently. If we can not fix this bug soon, how about adding note in document and raise warning? -- ___ Python tracker

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-07 Thread anthony shaw
Change by anthony shaw : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2019-04-07 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I created https://github.com/python/cpython/pull/12587 as a preparation pull request to fix the __sgi issue mentioned in msg282782. -- ___ Python tracker __

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2019-04-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker ___