[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Maybe open an issue to attempt to install gdb on Travis CI? I created PR 14395 for this. -- ___ Python tracker ___

[issue37409] relative import without parent

2019-06-26 Thread Ben Lewis
Ben Lewis added the comment: >>> foo = 'oops' >>> from . import foo as fubar # should raise ImportError >>> fubar 'oops' After further investigation, the problem is that builtins.__import__ (the c port version) does not replicate the behaviour of importlib.__import__ (the python reference

[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is a duplicate of https://bugs.python.org/issue10375 -- nosy: +xtreak ___ Python tracker ___

[issue37366] Add an "onitem" callback parameter to shutil.rmtree()

2019-06-26 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +14232 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14419 ___ Python tracker

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread Eryk Sun
Eryk Sun added the comment: This update breaks long-path support in Windows. It includes the following unnecessary check, which is using the wrong comparison operator: if (len >= PY_SSIZE_T_MAX / sizeof(wchar_t)) PyMem_RawMalloc already checks this and returns NULL if size >

[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Eric V. Smith
Eric V. Smith added the comment: You might also want to look at python-modernize or similar tools. -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Jim Li
Jim Li added the comment: Thanks Eric. That does make sense. The code wasn't really Python 3, it was migrated from 2.7, which uses some Python 3 syntax. As a side note, if you run 2to3 on this instead of the previous `print(response.next_page_token)` print(response) Then 2to3 would say

[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Eric V. Smith
Eric V. Smith added the comment: 2to3 is designed to convert python2 code to python3. It is not designed to work on python3 code. I believe this behavior is correct. -- nosy: +eric.smith ___ Python tracker

[issue37422] Documentation on the change of __path__ in Python 3

2019-06-26 Thread Eric V. Smith
Eric V. Smith added the comment: Can you provide a short runnable example that used to work and now does not? And please show any error messages you're seeing. -- nosy: +eric.smith ___ Python tracker

[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Jim Li
New submission from Jim Li : I encountered this issue when I was running 2to3 on a package, Python version 3.7.2, CentOS 7. To reproduce this bug, create a file called test.py and paste the following code into it def testSomeRequest(self): request = {"someRequest": "request"}

[issue37421] Some tests leak temporary files

2019-06-26 Thread miss-islington
miss-islington added the comment: New changeset 7fe81ce47ff6725e2e4d667d499e23dac19834af by Miss Islington (bot) in branch '3.8': bpo-37421: Fix test_shutil: don't leak temporary files (GH-14416) https://github.com/python/cpython/commit/7fe81ce47ff6725e2e4d667d499e23dac19834af --

[issue37422] Documentation on the change of __path__ in Python 3

2019-06-26 Thread Jim Li
New submission from Jim Li : In Python 2, `__path__` used to be a list, so all of the operations available to list are available, e.g., `insert`; you can also do indexing; e.g., `__path__[0]`. However, I believe that starting from Python 3, it seems to be a , and a lot of operations that

[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14231 pull_request: https://github.com/python/cpython/pull/14418 ___ Python tracker ___

[issue37421] Some tests leak temporary files

2019-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +14230 pull_request: https://github.com/python/cpython/pull/14417 ___ Python tracker ___

[issue37421] Some tests leak temporary files

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4c26abd14f1b7242998eb2f7756aa375e0fe714f by Victor Stinner in branch 'master': bpo-37421: Fix test_shutil: don't leak temporary files (GH-14416) https://github.com/python/cpython/commit/4c26abd14f1b7242998eb2f7756aa375e0fe714f --

[issue37421] Some tests leak temporary files

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Using PR 14415, the following test of test_multiprocessing_spawn emits a false alarm because multiprocessing use "Finalizer" objects which are only finalized "later": test.test_multiprocessing_spawn.WithManagerTestMyManager.test_mymanager_context_prestarted

[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-26 Thread Giovanni Cappellotto
Giovanni Cappellotto added the comment: Serhiy, Victor: I didn't get what's your suggested solution for this task. Should we just close it as "wontfix", can I go ahead and merge the existing PR, or do you have a better suggestion on how to solve this issue? --

[issue37376] pprint for types.SimpleNamespace

2019-06-26 Thread Eric Snow
Eric Snow added the comment: Thanks, Carl Bordum Hansen! -- nosy: +eric.snow resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37376] pprint for types.SimpleNamespace

2019-06-26 Thread miss-islington
miss-islington added the comment: New changeset 06a8916cf465f139dca958685b0da899364b8a8c by Miss Islington (bot) (Carl Bordum Hansen) in branch 'master': bpo-37376: pprint support for SimpleNamespace (GH-14318) https://github.com/python/cpython/commit/06a8916cf465f139dca958685b0da899364b8a8c

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Here is a concrete example of ResourceWarning when debugging/stressing multiprocessing code, I interrupt (CTRL+c) test_resource_tracker while it's running: vstinner@apu$ ./python -m test test_multiprocessing_spawn --fail-env-changed -v -m

[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-26 Thread Brooke Storm
Brooke Storm added the comment: To answer Steve's question, the ver command gives me: Microsoft Windows [Version 10.0.18917.1000] Thank you for looking into this. -- ___ Python tracker

[issue37421] Tests leak temporary files

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pablogsal, serhiy.storchaka, zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37421] Tests leak temporary files

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Test leaking a temporary file in test_urllib: test.test_urllib.urlretrieve_HttpTests.test_short_content_raises_ContentTooShortError_without_reporthook I'm not sure of my fix: diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index

[issue37421] Tests leak temporary files

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14229 pull_request: https://github.com/python/cpython/pull/14416 ___ Python tracker ___

[issue37421] Tests leak temporary files

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14228 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14415 ___ Python tracker ___

[issue37421] Tests leak temporary files

2019-06-26 Thread STINNER Victor
New submission from STINNER Victor : When running tests, the tempoary directory is not left clean: there are temporary files which are not removed. I wrote a PoC change to detect such bugs and I found that at least test_shutil and test_urllib leak such temporary files/directories.

[issue37417] bytearray.extend does not handle errors during iteration.

2019-06-26 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +14227 pull_request: https://github.com/python/cpython/pull/14414 ___ Python tracker ___

[issue37420] os.sched_setaffinity does not handle errors during iteration.

2019-06-26 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +14226 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14414 ___ Python tracker ___

[issue37420] os.sched_setaffinity does not handle errors during iteration.

2019-06-26 Thread Brandt Bucher
New submission from Brandt Bucher : This is related to bpo-37417: os.sched_setaffinity doesn't properly handle errors that arise during iteration of the mask argument: Python 3.9.0a0 (heads/master:d52a83a, Jun 26 2019, 15:13:41) [GCC 5.4.0 20160609] on linux Type "help", "copyright",

[issue29412] IndexError thrown on email.message.Message.get

2019-06-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset b950cdb4beabeb093fa3ccc35f53d51cc0193aba by Barry Warsaw (Miss Islington (bot)) in branch '3.7': bpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387) (GH-14412)

[issue29412] IndexError thrown on email.message.Message.get

2019-06-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 82654a037211a3466a294d53952926fc87f8403d by Barry Warsaw (Miss Islington (bot)) in branch '3.8': bpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387) (GH-14411)

[issue37359] test_regrtest: test_list_cases() fails on x86 Gentoo Installed with X 3.x

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Until a solution is found, I disabled cleantest to repair *again* the Gentoo buildbot worker: https://github.com/python/buildmaster-config/commit/378f0e4daed2c26479ee9571bd869110a6733ecc -- ___ Python tracker

[issue37359] test_regrtest: test_list_cases() fails on x86 Gentoo Installed with X 3.x

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > * Another idea? Another idea is to change the name of temporary directories to add a different prefix per Python branch. Like use "test_python_39_" for Python 3.9. But I'm not sure how custom jobs come into the play here. Python is not aware of "custom",

[issue37359] test_regrtest: test_list_cases() fails on x86 Gentoo Installed with X 3.x

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Oh, this feature has an issue on buildbots. For the 2 workers which allows more than 1 job in parallel, cleantest removes working directories of other running tests... "x86 Gentoo Installed with X 3.7" is fighting with "x86 Gentoo Installed with X 3.8" for

[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-26 Thread Ned Deily
Ned Deily added the comment: OK, I"m bumping it to "deferred blocker" for now so it remains visible. -- priority: critical -> deferred blocker ___ Python tracker ___

[issue27071] unittest.TestCase.assertCountEqual is a very misleading name

2019-06-26 Thread Thomas Grainger
Thomas Grainger added the comment: How about assertIsPermutation? https://www.fluentcpp.com/2019/06/25/understanding-the-implementation-of-stdis_permutation/ -- nosy: +graingert ___ Python tracker

[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-26 Thread Steve Dower
Steve Dower added the comment: This seems to be a change in Windows at some point, as it still works on one of my other PCs. I've pinged some colleagues to find out what might have happened, but it definitely looks like the lack of Read+Execute permission is working correctly now :( One

[issue37419] Possible segfaults when passing large sequences to os.posix_spawn()

2019-06-26 Thread miss-islington
miss-islington added the comment: New changeset 04d4692579cc4e0204c7fbced3692f8aa4bbb857 by Miss Islington (bot) in branch '3.8': bpo-37419: Fix possible segfaults when passing large sequences to os.posix_spawn() (GH-14409)

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-26 Thread konstantin danilov
konstantin danilov added the comment: Same error, python3.7. I have attached minifyed code version. It runs into infinite recursion due to __setattr__ call inside 'with' statement on top of same object. As result: > python /tmp/text.py Fatal Python error: Cannot recover from stack

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Ok, the bug is now fixed in 2.7, 3.7, 3.8 and master branches. Thanks Miro for the report. I also enhanced the test to test all variables of handler.environ. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue37419] Possible segfaults when passing large sequences to os.posix_spawn()

2019-06-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d52a83a3d471ff3c7e9ebfa1731765e5334f7c24 by Pablo Galindo (Zackery Spytz) in branch 'master': bpo-37419: Fix possible segfaults when passing large sequences to os.posix_spawn() (GH-14409)

[issue37419] Possible segfaults when passing large sequences to os.posix_spawn()

2019-06-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37419] Possible segfaults when passing large sequences to os.posix_spawn()

2019-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +14225 pull_request: https://github.com/python/cpython/pull/14413 ___ Python tracker ___

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset dfa9499ccbc14a4227ca8d0c1728e2beacbb45c6 by Victor Stinner (Miss Islington (bot)) in branch '2.7': [2.7] bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394) (GH-14404)

[issue37417] bytearray.extend does not handle errors during iteration.

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

[issue36738] Add 'array_hook' for json module

2019-06-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37163] dataclasses.replace() fails with the field named "obj"

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

[issue37417] bytearray.extend does not handle errors during iteration.

2019-06-26 Thread miss-islington
miss-islington added the comment: New changeset 5c4ce3e2fa73125fb6f9c501e6c4c8512216b7e1 by Miss Islington (bot) in branch '3.8': bpo-37417: Fix error handling in bytearray.extend. (GH-14407) https://github.com/python/cpython/commit/5c4ce3e2fa73125fb6f9c501e6c4c8512216b7e1 --

[issue29412] IndexError thrown on email.message.Message.get

2019-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +14224 pull_request: https://github.com/python/cpython/pull/14412 ___ Python tracker ___

[issue29412] IndexError thrown on email.message.Message.get

2019-06-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 7213df7bbfd85378c6e42e1ac63144d5974bdcf6 by Barry Warsaw (Abhilash Raj) in branch 'master': bpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387)

[issue29412] IndexError thrown on email.message.Message.get

2019-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +14223 pull_request: https://github.com/python/cpython/pull/14411 ___ Python tracker ___

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-26 Thread Anthony Sottile
Anthony Sottile added the comment: yeah I guess I'm just curious why this bug (seemingly intentionally) made the implementation diverge from PEP 451 and require an empty `create_module` (and where I would have found that except by searching bugs.python.org) Everyone I've shown this bit of

[issue37163] dataclasses.replace() fails with the field named "obj"

2019-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6ef103fbdbc05adbc20838c94b1f0c40fa6c159a by Serhiy Storchaka in branch '3.7': [3.7] bpo-37163: dataclasses.replace() now supports the field named "obj". (GH-13877) (GH-14405)

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-26 Thread Brett Cannon
Brett Cannon added the comment: > Mostly looking for something that says how `create_module` should / shouldn't > be implemented Basically you only need to provide the method if you want to use a custom object for the module itself. So as long as the object can quack like a module object

[issue37417] bytearray.extend does not handle errors during iteration.

2019-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +14222 pull_request: https://github.com/python/cpython/pull/14410 ___ Python tracker ___

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Ok, it's merged into 3.8. Thanks for the review Steve. One less deprecation warning. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread miss-islington
miss-islington added the comment: New changeset bdbd5e895ddf9aefcb79cdc52341f0697ad6aea0 by Miss Islington (bot) in branch '3.8': bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394) https://github.com/python/cpython/commit/bdbd5e895ddf9aefcb79cdc52341f0697ad6aea0 --

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread miss-islington
miss-islington added the comment: New changeset 814c7aefc2b8e9892bce3d59c0ab39563d658aa2 by Miss Islington (bot) in branch '3.7': bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394) https://github.com/python/cpython/commit/814c7aefc2b8e9892bce3d59c0ab39563d658aa2 -- nosy:

[issue37419] Possible segfaults when passing large sequences to os.posix_spawn()

2019-06-26 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +14221 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14409 ___ Python tracker ___

[issue37419] Possible segfaults when passing large sequences to os.posix_spawn()

2019-06-26 Thread Zackery Spytz
New submission from Zackery Spytz : parse_file_actions() uses an int as it loops over the passed sequence, but it should use a Py_ssize_t. If the sequence is large enough, the int will overflow. -- components: Extension Modules messages: 346669 nosy: ZackerySpytz priority: normal

[issue37417] bytearray.extend does not handle errors during iteration.

2019-06-26 Thread miss-islington
miss-islington added the comment: New changeset 7675bca4b56c532875d8bc6a7832e3c51d71278f by Miss Islington (bot) in branch '3.7': bpo-37417: Fix error handling in bytearray.extend. (GH-14407) https://github.com/python/cpython/commit/7675bca4b56c532875d8bc6a7832e3c51d71278f -- nosy:

[issue37418] Code execution without calling it

2019-06-26 Thread SilentGhost
SilentGhost added the comment: The whole file is executed on import, you might as well have taken the "evil" code and placed in the global scope and not in the function. If you want to learn how to use decorators, again I suggest following a tutorial, SO or python-help. This is not a

[issue37418] Code execution without calling it

2019-06-26 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: -p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37418] Code execution without calling it

2019-06-26 Thread Paul Ganssle
Paul Ganssle added the comment: > why the code is executed? > I could do a library or a package and include evil code instead of a > print... The code is executed because the decorator syntax @decorator def f(): ... Is equivalent to def f(): ... f =

[issue37417] bytearray.extend does not handle errors during iteration.

2019-06-26 Thread SilentGhost
Change by SilentGhost : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37418] Code execution without calling it

2019-06-26 Thread Emilio López Arias
Emilio López Arias added the comment: why the code is executed? I could do a library or a package and include evil code instead of a print... El mié., 26 jun. 2019 a las 21:05, SilentGhost () escribió: > > SilentGhost added the comment: > > It seems you're misunderstanding mechanics of

[issue37417] bytearray.extend does not handle errors during iteration.

2019-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +14220 pull_request: https://github.com/python/cpython/pull/14408 ___ Python tracker ___

[issue37417] bytearray.extend does not handle errors during iteration.

2019-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2a7d596f27b2342caf168a03c95ebf3b56e5dbbd by Serhiy Storchaka (Brandt Bucher) in branch 'master': bpo-37417: Fix error handling in bytearray.extend. (GH-14407) https://github.com/python/cpython/commit/2a7d596f27b2342caf168a03c95ebf3b56e5dbbd

[issue37418] Code execution without calling it

2019-06-26 Thread SilentGhost
SilentGhost added the comment: It seems you're misunderstanding mechanics of decorators. Decorator is called when @decorator statement is executed and in that function *you* are calling the wrapped function. There are tutorials available on how to use this feature, I'd suggest you try them.

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-26 Thread Anthony Sottile
Anthony Sottile added the comment: Mostly looking for something that says how `create_module` should / shouldn't be implemented (and why `return None` is necessary) -- ___ Python tracker

[issue37418] Code execution without calling it

2019-06-26 Thread Emilio López Arias
New submission from Emilio López Arias : Create a new python file: example.py def my_decorator(f): print("before") f() print("after") @my_decorator def my_function(): print("hello world")

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-26 Thread Brett Cannon
Brett Cannon added the comment: The import machinery docs are split between the language reference and importlib itself. It really depends on what you're looking for. -- ___ Python tracker

[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-26 Thread Ned Deily
Ned Deily added the comment: > Does IDLE every run long enough with Apple's tk before failure to make > continuing useful? Yes, depending on what you are doing, IDLE *may* run just fine with the system Tk. But you may may run into this issue depending on how you scroll. Or, among the

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-26 Thread Anthony Sottile
Anthony Sottile added the comment: Where can I find up to date best practices / docs for the import machinery? I couldn't find a mention of this in docs.python.org -- ___ Python tracker

[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-26 Thread Steve Dower
Steve Dower added the comment: Okay, this definitely used to work, but now it's broken for me too. What version of Windows are you on (copy-paste from cmd.exe's ver command)? -- ___ Python tracker

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-26 Thread Brett Cannon
Brett Cannon added the comment: PEPs are not living documents unless they are marked as Active (which PEP 451 is not). -- ___ Python tracker ___

[issue37417] bytearray.extend does not handle errors during iteration.

2019-06-26 Thread Brandt Bucher
New submission from Brandt Bucher : bytearray.extend doesn't properly handle errors that arise during iteration of the argument: Python 3.9.0a0 (heads/master:5150d32, Jun 26 2019, 10:55:32) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information.

[issue37417] bytearray.extend does not handle errors during iteration.

2019-06-26 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +14219 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14407 ___ Python tracker ___

[issue37409] relative import_from without parent

2019-06-26 Thread Brett Cannon
Brett Cannon added the comment: I can't reproduce: >>> from importlib import abc >>> from . import util Traceback (most recent call last): File "", line 1, in ImportError: cannot import name 'util' from '__main__' (unknown location) >>> import importlib.util >>> Did you happen to do an

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-26 Thread Fabio Zadrozny
New submission from Fabio Zadrozny : I'm attaching a snippet which shows the issue (i.e.: threading.main_thread() and threading.current_thread() should be the same and they aren't). What I'd see as a possible solution is that the initial thread ident would be stored when the interpreter is

[issue37390] Generate table of audit events for docs

2019-06-26 Thread Steve Dower
Steve Dower added the comment: I think my PR is ready. I had to go through and update all the audit-event tags that existed, since the argument parsing in Sphinx didn't work the way I first thought it did, but now we can provide a back reference manually (or let it auto-generate one to the

[issue37390] Generate table of audit events for docs

2019-06-26 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +14218 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14406 ___ Python tracker

[issue37376] pprint for types.SimpleNamespace

2019-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 This would be a nice improvement. -- nosy: +rhettinger ___ Python tracker ___ ___

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2019-06-26 Thread Cooper Lees
Cooper Lees added the comment: @fantix - Is there anything I can do to help this progress. I'd be happy to potentially even do parts of the back porting if you're swamped. Would just need some guidance. I need this as I'm looking to add auth to some internal HTTP(S) proxies I use and in

[issue37163] dataclasses.replace() fails with the field named "obj"

2019-06-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +14217 pull_request: https://github.com/python/cpython/pull/14405 ___ Python tracker ___

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +14216 pull_request: https://github.com/python/cpython/pull/14404 ___ Python tracker ___

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +14215 pull_request: https://github.com/python/cpython/pull/14403 ___ Python tracker ___

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +14214 pull_request: https://github.com/python/cpython/pull/14402 ___ Python tracker ___

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5150d327924959639215ed0a78feffc0d88258da by Victor Stinner in branch 'master': bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394) https://github.com/python/cpython/commit/5150d327924959639215ed0a78feffc0d88258da --

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread miss-islington
miss-islington added the comment: New changeset 63429c839b19c6fe604deddcb12497443ca01a9a by Miss Islington (bot) in branch '3.8': bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396) https://github.com/python/cpython/commit/63429c839b19c6fe604deddcb12497443ca01a9a -- nosy:

[issue37414] Remove undocumented and deprecated sys.callstats() function

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37163] dataclasses.replace() fails with the field named "obj"

2019-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2d88e63bfcf7bccba925ab80b3f47ccf8b7aefa8 by Serhiy Storchaka in branch 'master': bpo-37163: Make the obj argument of dataclasses.replace() a positional-only. (GH-14390)

[issue28799] Drop CALL_PROFILE special build?

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: I removed the function from Python 3.9 in bpo-37414. -- ___ Python tracker ___ ___

[issue37414] Remove undocumented and deprecated sys.callstats() function

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 69150669f224a1fc47de483557736e725ac5b2a1 by Victor Stinner in branch 'master': bpo-37414: Remove sys.callstats() (GH-14398) https://github.com/python/cpython/commit/69150669f224a1fc47de483557736e725ac5b2a1 --

[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it is a solution. In this particular case it may be that the disk is fulled by test files leaked from the past test runs. -- ___ Python tracker

[issue37406] Disable runtime checks in release mode

2019-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that the public C API should have runtime checks for its arguments, except performance sensitive functions and macros (like PyTuple_GET_ITEM). The internal C API can use just asserts. I have a work-in-progress patch which adds tests for the public

[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: > The test suite fails if there is less than 500 or 600 MB of RAM, not counting > bigmem tests. It is not a Python bug, but an environment issue. A buildbot > worker should have some free disk space and RAM, and set tests running > options

[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test suite fails if there is less than 500 or 600 MB of RAM, not counting bigmem tests. It is not a Python bug, but an environment issue. A buildbot worker should have some free disk space and RAM, and set tests running options correspondingly.

[issue37413] Deprecate sys._enablelegacywindowsfsencoding()?

2019-06-26 Thread Steve Dower
Steve Dower added the comment: It's probably worth at least a post to python-dev to expand the audience, but unless someone speaks up with some really good reason why they must update to Python 3.10 without updating their own code then let's deprecate it. FWIW, even with the flag the

[issue37415] Error build Python with Intel compiler

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: atomic_uintptr_t is used if HAVE_STD_ATOMIC defined is defined. Can you please check in pyconfig.h if it's defined? So doesn't provide atomic_uintptr_t with ICC? -- nosy: +vstinner ___ Python tracker

  1   2   >