[issue35735] Current "make test" status for AIX

2019-01-13 Thread Michael Felt
New submission from Michael Felt : Hi all, as we get closer to having the current tests all patched I want to have a place to post new "failures" - since the BOT process is unable to report regressions before all tests are passing for a time. Initially, the tests run normally, and report

[issue33416] Add endline and endcolumn to every AST node

2019-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is up to you Ivan. The end location can not be deduces from the start location of next sibling node or from the parent node. For example, the AST for the expression "foo.bar.baz" does not contain information for the end location of "foo.bar".

[issue35537] use os.posix_spawn in subprocess

2019-01-13 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35733] isinstance(ast.Constant(value=True), ast.Num) should be False

2019-01-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Added Serhiy since this seems to have been caused due to issue32892 and changes made in 6015cc50bc ➜ cpython git:(6015cc50bc) ./python.exe -c 'import ast; print(isinstance(ast.Constant(False), ast.Num))' True ➜ cpython git:(6015cc50bc) git

[issue35710] Make dataclasses.field() accept another name for __init__ field's name

2019-01-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: "target" seems too general for the OP's use case. "private=False" would be more focused. General renaming occasionally has uses but is mostly an anti-pattern. Some thought also needs to be given to downstream effects of renaming (what shows up in

[issue24780] unittest assertEqual difference output foiled by newlines

2019-01-13 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I have opened a PR for this. -- nosy: +nanjekyejoannah ___ Python tracker ___ ___

[issue24780] unittest assertEqual difference output foiled by newlines

2019-01-13 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +11168 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue24780] unittest assertEqual difference output foiled by newlines

2019-01-13 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +11168, 11169 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue24780] unittest assertEqual difference output foiled by newlines

2019-01-13 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +11168, 11169, 11170 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35733] isinstance(ast.Constant(value=True), ast.Num) should be False

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

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pmoody ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33416] Add endline and endcolumn to every AST node

2019-01-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: This idea seems reasonable. Most of the AST nodes have a span and it would be nice to know what that is. I'm sure we will find use cases though I doubt that many compiler syntax errors would benefit (since a syntax error means that we don't have a

[issue35378] multiprocessing.Pool.imaps iterators do not maintain alive the multiprocessing.Pool objects

2019-01-13 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35378] multiprocessing.Pool.imaps iterators do not maintain alive the multiprocessing.Pool objects

2019-01-13 Thread tzickel
tzickel added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

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

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-13 Thread ulin
New submission from ulin : valid netmask like 255.0.0.0 255.128.0.0, but 255.254.128.0 is not valid, but ipaddress._BaseV4._is_valid_netmask fails to detect the latter. Tested in Python 3.6.7, as the code stays the same, affects all after Python 3.6.7. -- components: Library (Lib)

[issue34294] re.finditer and lookahead bug

2019-01-13 Thread Ma Lin
Ma Lin added the comment: I tried to fix it, feel free to create a new PR if you don't want this one. PR11546 has a small question, should `state->data_stack` be dealloced as well? FYI, function `state_reset(SRE_STATE* state)` in file `_sre.c`:

[issue35733] isinstance(ast.Constant(value=True), ast.Num) should be False

2019-01-13 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +11165 stage: -> patch review ___ Python tracker ___ ___

[issue35733] isinstance(ast.Constant(value=True), ast.Num) should be False

2019-01-13 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch, patch, patch pull_requests: +11165, 11166, 11167 stage: -> patch review ___ Python tracker ___

[issue35733] isinstance(ast.Constant(value=True), ast.Num) should be False

2019-01-13 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch, patch pull_requests: +11165, 11166 stage: -> patch review ___ Python tracker ___

[issue35733] isinstance(ast.Constant(value=True), ast.Num) should be False

2019-01-13 Thread Anthony Sottile
New submission from Anthony Sottile : Noticing this in pyflakes https://github.com/PyCQA/pyflakes/pull/408 -- messages: 333579 nosy: Anthony Sottile priority: normal severity: normal status: open title: isinstance(ast.Constant(value=True), ast.Num) should be False versions: Python 3.8

[issue34294] re.finditer and lookahead bug

2019-01-13 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch, patch, patch pull_requests: +11162, 11163, 11164 stage: -> patch review ___ Python tracker ___

[issue34294] re.finditer and lookahead bug

2019-01-13 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +11162 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34294] re.finditer and lookahead bug

2019-01-13 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch, patch pull_requests: +11162, 11163 stage: -> patch review ___ Python tracker ___ ___

[issue35693] test_httpservers fails

2019-01-13 Thread Jorge Ramos
Jorge Ramos added the comment: E:\RepoGiT\3.7>"E:\RepoGiT\3.7\PCbuild\amd64\python.exe" -u -Wd -E -bb -m test -v test_httpservers == CPython 3.7.2+ (heads/3.7:e1259886ab, Jan 13 2019, 19:16:24) [MSC v.1916 64 bit (AMD64)] == Windows-10-10.0.17763-SP0 little-endian == cwd:

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: The corresponding 3.7 buildbots failed the same way, 6 not greater than 6, as the 3.8 buildbots. https://buildbot.python.org/all/#/builders/108/builds/895/steps/5/logs/stdio https://buildbot.python.org/all/#/builders/115/builds/888/steps/4/logs/stdio One

[issue35732] Typo in library/warnings documentation

2019-01-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: That looks like an error indeed. Are you interested on making a PR for fixing this? -- nosy: +pablogsal ___ Python tracker ___

[issue33416] Add endline and endcolumn to every AST node

2019-01-13 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: FYI, I started working on this. I will have PR ready end of next week. Serhiy, I don't think we should keep both this and issue22616 open. Which one would you prefer to close? -- ___ Python tracker

[issue35732] Typo in library/warnings documentation

2019-01-13 Thread Antoine Wecxsteen
New submission from Antoine Wecxsteen : Hello, I believe there's a mistake in the documentation of library/warnings. https://docs.python.org/3.8/library/warnings.html#warnings.warn "This function raises an exception if the particular warning issued is changed into an error by the warnings

[issue33944] Deprecate and remove pth files

2019-01-13 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35378] multiprocessing.Pool.imaps iterators do not maintain alive the multiprocessing.Pool objects

2019-01-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have been playing with possible solutions for a while and the weak-reference solution seems not robust enough as there are too potential race conditions between the destruction of the weakreferences (the pool) and the handling code. I would

[issue33944] Deprecate and remove pth files

2019-01-13 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > This brings to mind the transition of many programs from using a single > config file or startup script to using a directory of config/startup files > parsed/executed in alphabetical order. Would a sitecustomize.d/ directory > (with files within it executed

[issue35537] use os.posix_spawn in subprocess

2019-01-13 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > * On FreeBSD, if setting posix_spawn() "attributes" or execute posix_spawn() > "file actions" fails, posix_spawn() succeed but the child process exits > immediately with exit code 127 without trying to call execv(). If execv() > fails, posix_spawn()

[issue35679] pdb restart hooks

2019-01-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hi Hernot, I think I understand what you are indicating but I still find it a bit confusing. Could you provide a reproducer and document a bit more the expected and actual behaviour, maybe with some code snippets? Thanks -- nosy: +pablogsal

[issue35674] Expose os.posix_spawnp()

2019-01-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch pull_requests: +11158, 11159 stage: -> patch review ___ Python tracker ___

[issue35674] Expose os.posix_spawnp()

2019-01-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch, patch pull_requests: +11158, 11159, 11161 stage: -> patch review ___ Python tracker ___

[issue35674] Expose os.posix_spawnp()

2019-01-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch, patch, patch pull_requests: +11158, 11159, 11160, 11161 stage: -> patch review ___ Python tracker ___

[issue35674] Expose os.posix_spawnp()

2019-01-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +11158 stage: -> patch review ___ Python tracker ___ ___

[issue33944] Deprecate and remove pth files

2019-01-13 Thread Chris Billington
Chris Billington added the comment: coverage.py's documentation mentions: > The sitecustomize.py technique is cleaner, but may involve modifying an > existing sitecustomize.py, since there can be only one. If there is no > sitecustomize.py already, you can create it in any directory on the

[issue33944] Deprecate and remove pth files

2019-01-13 Thread Nick Coghlan
Nick Coghlan added the comment: I'm suggesting PendingDeprecationWarning because we can't *actually* deprecate anything until we provide a more transparent alternative that offers comparable functionality, and I haven't seen a credible proposal for a replacement yet. So using PDW would

[issue33944] Deprecate and remove pth files

2019-01-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: > To make a potentially viable concrete proposal here, I think a reasonable > first step would be to change the ".pth" file processing code in site.py to > emit PendingDeprecationWarning for the 'if line.startswith(("import ", > "import\t")):' branch.

[issue35383] lib2to3 raises ParseError on argument called "print"

2019-01-13 Thread timokau
timokau added the comment: Also `print("a", file=sys.stderr)` *is* valid python2 provided that `print_function` is imported. -- ___ Python tracker ___

[issue35731] Modify to support multiple urls in webbrowser.open

2019-01-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Since you can do list comprehension over the URLs as in your example I don't see a good reason to change the current API to take multiple URLs. [browser.open(url, new, autoraise) for url in urls] -- nosy: +xtreak

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just realized that the Gentoo bots where this failed are, last I knew, the only *nix bots with X installed. The non-Windows CI bots run the gui tests with an X simulator. So Gentoo might not be the only distribution where this would fail. Two debug

[issue35731] Modify to support multiple urls in webbrowser.open

2019-01-13 Thread Arlen
New submission from Arlen : Note: new to python, please provide any feedback Currently webbrowser.open supports one url, and there is no fn for url batching. I am proposing modifying webbrowser.open to support something along these lines: ``` def open(*urls, new=0, autoraise=True):

[issue35715] ProcessPool workers hold onto return value of last task in memory

2019-01-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +bquinlan, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11157 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread miss-islington
miss-islington added the comment: New changeset 890d3fa10c68af6306cf6b989b2133978e6e7a12 by Miss Islington (bot) in branch '3.7': bpo-35730: Disable IDLE test_reload assertion. (GH-11543) https://github.com/python/cpython/commit/890d3fa10c68af6306cf6b989b2133978e6e7a12 -- nosy:

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +11156 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +11156, 11157 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5bb146aaea1484bcc117ab6cb38dda39ceb5df0f by Terry Jan Reedy in branch 'master': bpo-35730: Disable IDLE test_reload assertion. (GH-11543) https://github.com/python/cpython/commit/5bb146aaea1484bcc117ab6cb38dda39ceb5df0f --

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, a particular test assert fails only on Gentoo bots (see above). Questions: 1. Can we disable the assert only on those machines? 2. I sometimes see what look like debug prints in buildbot test logs. Correct? If so, stdout or stderr? --

[issue35383] lib2to3 raises ParseError on argument called "print"

2019-01-13 Thread timokau
timokau added the comment: I disagree that this is "not a bug". While conversion from 2 to 3 is 2to3's main intention, the documentation advertises: 2to3 supporting library lib2to3 is, however, a flexible and generic library, so it is possible to write your own fixers for 2to3. lib2to3

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11155 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11154 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +11153 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch, patch, patch pull_requests: +11153, 11154, 11155 stage: needs patch -> patch review ___ Python tracker ___

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch, patch pull_requests: +11153, 11154 stage: needs patch -> patch review ___ Python tracker ___

[issue35428] xml.etree.ElementTree.tostring violates W3 standards allowing encoding='unicode' without error

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

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-13 Thread Terry J. Reedy
New submission from Terry J. Reedy : PR 10454 for #35196 added, among other things, more tests to test_squeezer.py. SqueezerTest.test_reload initially worked on Mac and personal Windows machines. It failed on Cheryl Sabella's personal Ubuntu machine because doubling the nominal font size

[issue35729] iterparse does not return the full subtree on "start" events

2019-01-13 Thread Ned Deily
Change by Ned Deily : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11151 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11152 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35674] Expose os.posix_spawnp()

2019-01-13 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- nosy: +izbyshev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-13 Thread miss-islington
miss-islington added the comment: New changeset 47bd7770229b5238a438703ee1d52da2e983ec9e by Miss Islington (bot) in branch '3.7': bpo-35196: Optimize Squeezer's write() interception (GH-10454) https://github.com/python/cpython/commit/47bd7770229b5238a438703ee1d52da2e983ec9e --

[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +11150, 11151 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +11150 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +11150, 11151, 11152 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-13 Thread Tal Einat
Tal Einat added the comment: New changeset 39a33e99270848d34628cdbb1fdb727f9ede502a by Tal Einat in branch 'master': bpo-35196: Optimize Squeezer's write() interception (GH-10454) https://github.com/python/cpython/commit/39a33e99270848d34628cdbb1fdb727f9ede502a --

[issue35707] time.sleep() should support objects with __float__

2019-01-13 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > The correct code works for float and int (and maybe decimal.Decimal, I don't > recall!) Not for Decimal! In fact sleep(Decimal("0.99")) is interpreted as sleep(0) because __int__ is used to convert. -- ___

[issue35707] time.sleep() should support objects with __float__

2019-01-13 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > the most reliable way is to represent them as fractions (x.as_integer_ratio() > or (x.numerator, x.denominator)) I don't think that we can rely on non-dunder names like that. They are not reserved names, so classes can give them any semantics that they

[issue35727] sys.exit() in a multiprocessing.Process does not align with Python behavior

2019-01-13 Thread Emmanuel Arias
Emmanuel Arias added the comment: The same behavior on 3.8 and 3.5 -- nosy: +eamanu versions: +Python 3.5, Python 3.8 ___ Python tracker ___

[issue35688] "pip install --user numpy" fails on Python from the Windows Store

2019-01-13 Thread mattip
mattip added the comment: The difference in search order between apps from the app store and desktop applications may be relevant https://docs.microsoft.com/en-us/windows/desktop/Dlls/dynamic-link-library-search-order#alternate-search-order-for-windows-store-apps --

[issue35729] iterparse does not return the full subtree on "start" events

2019-01-13 Thread Stefan Behnel
Change by Stefan Behnel : -- title: XML.etree bug -> iterparse does not return the full subtree on "start" events type: performance -> behavior ___ Python tracker ___

[issue35729] XML.etree bug

2019-01-13 Thread Stefan Behnel
Stefan Behnel added the comment: This is not a bug, it's normal, documented behaviour. The children are not guaranteed to be available during the "start" event. Only the tag itself is guaranteed to be there. The guarantee that the subtree is complete is only given for the "end" event. See

[issue35707] time.sleep() should support objects with __float__

2019-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This can cause a loss of precision for Decimal. If we want to support other numerical types with loss in double rounding, the most reliable way is to represent them as fractions (x.as_integer_ratio() or (x.numerator, x.denominator)) and use precise

[issue35729] XML.etree bug

2019-01-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +XML nosy: +eli.bendersky, scoder, serhiy.storchaka ___ Python tracker ___ ___

[issue35729] XML.etree bug

2019-01-13 Thread Igor Nowicki
New submission from Igor Nowicki : Consider we have big XML file and we can't load it all into memory. We use then `iterparse` function from XML.etree.ElementTree module to parse it element by element. Problem is, XML doesn't allow to run this smoothly and starts outputing wrong data after

[issue34294] re.finditer and lookahead bug

2019-01-13 Thread Ma Lin
Ma Lin added the comment: Simplify the test-case, it seem the `state` is not reset properly. Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) >>> import re >>> re.findall(r"(?=(<\w+>)(<\w+>)?)", "") [('', ''), ('', '')] Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28)