[issue37408] [DOC] Precise that Tarfile "format" argument only concerns writing.

2019-06-26 Thread Pascal Chambon
New submission from Pascal Chambon : According to https://bugs.python.org/issue30661#msg339300 , "format" argument of Tarfile.open() only concerns the writing of files. It's worth mentioning it in the doc, if it's True (confirmation from core maintainers is welcome). -- components: Li

[issue37408] [DOC] Precise that Tarfile "format" argument only concerns writing.

2019-06-26 Thread Pascal Chambon
Pascal Chambon added the comment: PR is on https://github.com/pakal/cpython/pull/1 -- ___ Python tracker ___ ___ Python-bugs-list m

[issue37406] Disable runtime checks in release mode

2019-06-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Given that extensions call these APIs, I find it highly risky to disable these checks in any version of the Python runtime and am -1 on such a change. Using assert() in C is a pretty bad alternative, since this crashes the whole process. It should really o

[issue37408] [DOC] Precise that Tarfile "format" argument only concerns writing.

2019-06-26 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +14203 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14389 ___ Python tracker ___ __

[issue37408] [DOC] Precise that Tarfile "format" argument only concerns writing.

2019-06-26 Thread Pascal Chambon
Pascal Chambon added the comment: My bad, this was a wrongly targeted PR, the real one is here: https://github.com/python/cpython/pull/14389 -- ___ Python tracker ___ ___

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

2019-06-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +14204 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/14390 ___ Python tracker ___

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Géry
Géry added the comment: @Pablo Galindo Salgado Thank you for the debugging information. I would have expected 8 "Adding a new item to the call_queue" instead of 3, since I submitted 8 calls to the process pool. The concurrent.futures._base module defines 5 future states: > _FUTURE_STATES =

[issue37408] [DOC] Precise that Tarfile "format" argument only concerns writing.

2019-06-26 Thread Pascal Chambon
Pascal Chambon added the comment: Looking at tarfile.py, "format" seems only used in addfile() indeed. -- ___ Python tracker ___ __

[issue37335] Add 646 ASCII alias to locale coercion tests.

2019-06-26 Thread Jakub Kulik
Jakub Kulik added the comment: I just added that in the way it was already there but I see why the current solution is not the best. Also I wanted to push this into 3.7 only as this problem is not present in 3.8 (as discussed in the PR 11195 opened incorrectly against the master). Just to b

[issue37408] [DOC] Precise that Tarfile "format" argument only concerns writing.

2019-06-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lars.gustaebel, serhiy.storchaka type: -> behavior versions: +Python 3.9 ___ Python tracker ___

[issue37409] relative import_from without parent

2019-06-26 Thread Ben Lewis
New submission from Ben Lewis : >>> from curses import ascii >>> from . import ascii The second line should raise an ImportError but instead succeeds (tested cpython 3.6.7, 3.7.0 and 3.7.3, and from interactive interpreter and scripts). Specifically, builtins.__import__ does not reproduce the

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Adding a new state for "not running and not pending but something in between" is useless, it can make .running() result a little more accurate but doesn't improve the real functionality. The easy "fix" is documentation updating to point that the value return

[issue37409] relative import_from without parent

2019-06-26 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +brett.cannon, eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36661] Missing dataclass decorator import in dataclasses module docs

2019-06-26 Thread Cheuk Ting Ho
Cheuk Ting Ho added the comment: I agree that for the more confusing ones, it would be better to write out the import statement explicitly. -- nosy: +Cheukting ___ Python tracker ___

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I concur with Andrew -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-06-26 Thread Akshay Takkar
Akshay Takkar added the comment: Can you please elaborate on how to get around this issue? -- ___ Python tracker ___ ___ Python-bug

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Use asyncio transports or streams. sock_recv() is a low-level API with a very limited audience. wrapped ssl socket provides a synchronous interface only. Perhaps we should raise an exception if SSLSocket is passed into asyncio functions. -- ___

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-06-26 Thread Akshay Takkar
Akshay Takkar added the comment: Ah, I see. Yes, raising an exception would probably be very useful. Thanks for the info. -- ___ Python tracker ___ __

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Depending on the compiler optimization level, gdb may or may not br able to read variables and function arguments. IHMO it is fine to skip test_gdb if Python "is optimized". I don't think it is worth it to check the exact optimizatio level. The worst debugg

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Depending on the compiler optimization level, gdb may or may not br able to > read variables and function arguments. I haven't seen that problem. As I said, all GDB tests pass when compiled with "-O3 -g". > IHMO it is fine to skip test_gdb if Python "is o

[issue37335] Add 646 ASCII alias to locale coercion tests.

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > what you propose is to rewrite current replaces to use > "codecs.lookup(encoding).name" instead and then push it into the master? I suggest to remove the code which does the .replace(), but instead normalize the encoding when checking for the expected enc

[issue37410] [Windows] subprocess: close the handle when the process completes

2019-06-26 Thread STINNER Victor
New submission from STINNER Victor : subprocess.Popen uses _winapi.CreateProcess() to spawn a child process. It stores the process handle using a Handle class. Popen never explicitly releases the handle, it rely on Handle.__del__ when the Popen object is detroyed (when Popen._handle attribute

[issue37410] [Windows] subprocess: close the handle when the process completes

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

[issue37410] [Windows] subprocess: close the handle when the process completes

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: IMHO it's safe to backport PR 14391 to Python 3.7 and 3.8. -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ __

[issue37405] socket.getsockname() returns string instead of tuple

2019-06-26 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +14206 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14392 ___ Python tracker ___ __

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

2019-06-26 Thread Miro Hrončok
New submission from Miro Hrončok : In Fedora CI, we use the environment variable X to set tests to skip: https://src.fedoraproject.org/tests/python/blob/bd3ec9505cd37d80fe47fbb8234928abcfc0c658/f/selftest/parallel.sh#_9 - lines 9 and 21 However, I'Ve realized that testEnviron (test.test_wsgire

[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: > In Unix, the zombie remains visible in the task list (marked as in > Linux), but in Windows an exited process is removed from the Process > Manager's active list, so it's no longer visible to users. Also, a Process > object is reaped as soon as the last r

[issue37410] [Windows] subprocess: close the handle when the process completes

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-37380: subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone. -- ___ Python tracker ___ _

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > I haven't seen that problem. As I said, all GDB tests pass when compiled with > "-O3 -g". Again, it depends on the optimization level, but IMHO it's not worth it to implement an heuristic to check if gdb has enough info to run tests. > The fact that thes

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-06-26 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-06-26 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36168] DOC: Fix capitalization in string.rst

2019-06-26 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > If you modify code which can impact test_gdb, you can run test_gdb locally I do run test_gdb locally but it's not very useful since most tests are skipped by default because python_is_optimized() is True. That's the whole point of this issue: tests are ski

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Géry
Géry added the comment: @Andrew Svetlov > Adding a new state for "not running and not pending but something in between" > is useless I have not suggested that. I have just reported that when the number of submitted calls is strictly greater than the number of pool worker processes, the numb

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: I don't mind, sorry. Feel free to make a pull request with the fix though. -- ___ Python tracker ___ ___

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > I do run test_gdb locally but it's not very useful since most tests are > skipped by default because python_is_optimized() is True. Ah, I forgot to mention that I always compile Python using: ./configure -C --with-pydebug CFLAGS="-O0" && make -O0 is not r

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

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is it ok to have File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 76 in __call__ so many times? Looks very suspicious --

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

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

[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 requires the "largefile" resource on Windows. If "-u largefile" is specified and the test is failed, it is a correct behavior. The correct solution is either increase the amount of available free disk space or remove the "largefile" resource on th

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

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14208 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14394 ___ 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: I wrote PR 14394 to fix the test. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 2.7 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[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: libregrtest usage says: largefile - It is okay to run some test that may create huge files. These tests can take a long time and may consume >2 GiB of disk space temporarily. > The test requires the "largefile" resource on

[issue37410] [Windows] subprocess: close the handle when the process completes

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: We may backport the change to Python 2.7 as well, but in this case terminate() must be changed to test returncode: def terminate(self): """Terminates the process.""" # Don't terminate a process that we know has already died.

[issue37410] [Windows] subprocess: close the handle when the process completes

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: terminate() was changed by: commit a0c9caad66f01328155177180df1c46fe7c62e57 Author: Gregory P. Smith Date: Sun Nov 15 18:19:10 2015 -0800 Fix issue #6973: When we know a subprocess.Popen process has died, do not allow the send_signal(), terminate()

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > The worst debugging experience is provided by PGO build. That's true but unrelated to this issue. We already skip test_gdb completely when PGO is enabled. -- ___ Python tracker

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +14209 pull_request: https://github.com/python/cpython/pull/14395 ___ Python tracker ___ __

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

2019-06-26 Thread STINNER Victor
New submission from STINNER Victor : On Windows, os.getcwdb() is implemented using getcwd() on Windows. This function uses the ANSI code page, whereas PEP 529 "Change Windows filesystem encoding to UTF-8" is supposed to use UTF-8 for all bytes paths and filenames. Moreover, this function emit

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

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14210 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14396 ___ 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: My PR 14396 modify os.getcwdb() to use UTF-8 and it removes the deprecation warning. -- ___ Python tracker ___ _

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

2019-06-26 Thread Zackery Spytz
Zackery Spytz added the comment: See also bpo-32920. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue32920] Implement PEP 529 for os.getcwdb on Windows

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: I just opened the same issue: bpo-37412, but I proposed a PR to implement my idea ;-) -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows ___

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

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > That's true but unrelated to this issue. We already skip test_gdb completely > when PGO is enabled. What do you mean? support.PGO is something different: it's only used while profiling Python before Python is recompiled a second time. --

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I meant this part in test_gdb.py: if ((sysconfig.get_config_var('PGO_PROF_USE_FLAG') or 'xxx') in (sysconfig.get_config_var('PY_CORE_CFLAGS') or '')): raise unittest.SkipTest("test_gdb is not reliable on PGO builds") -- __

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

2019-06-26 Thread Steve Dower
Steve Dower added the comment: Definitely just an oversight. Thanks for fixing this! I think it can go to 3.8 as well. Thoughts? -- ___ Python tracker ___ ___

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: If you want to understand why tests are currently skipped when Python is optimized, you should dig into the Git history. Not simply remove the decorator because it looks wrong to you. There is likely a story behind it. https://en.wikipedia.org/wiki/Wikipedia

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

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > I think it can go to 3.8 as well. Thoughts? Oh, 3.8 is not released yet. Well, it's more or less a new feature, or a bugfix, depending on the point of view. I would not be comfortable to change the encoding in 3.8.1, but it should be fine to do the change

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

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: I retargeted my PR 14396 to Python 3.8. -- versions: +Python 3.8 -Python 3.9 ___ Python tracker ___ _

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: These python_is_optimized() tests were added in #8605 and #13628. Those issues talk about tests failing when CPython is compiled with -O2 or -O3. But, as I said here, I see no problems today with gcc -O3. So I'm guessing that either gcc or gdb improved such

[issue37413] Deprecate sys._enablelegacywindowsfsencoding()?

2019-06-26 Thread STINNER Victor
New submission from STINNER Victor : sys._enablelegacywindowsfsencoding() was added late in PEP 529 design "just in case" if something goes wrong. But I'm not aware of anyone using it. Do we want to keep supporting the *legacy* Windows filesystem encoding (ANSI code page) forever? IMHO using

[issue37413] Deprecate sys._enablelegacywindowsfsencoding()?

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > By the way, I'm not aware of any issue with io._WindowsConsoleIO. Should we > also deprecated PYTHONLEGACYWINDOWSSTDIO environment variable which opt-out > from the new io._WindowsConsoleIO? It was added to Python 3.6 by PEP 528 "Change Windows console enc

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: There is a fleet of buildbots with a variety og versions of gcc and gdb, so if a change like that is pushed, all the fleet has to be monitored for potential failures, as there are many older OSes supported there. -- nosy: +cstratak __

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-06-26 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +14211 pull_request: https://github.com/python/cpython/pull/14397 ___ Python tracker ___ __

[issue37414] Remove sys.callstats()

2019-06-26 Thread STINNER Victor
New submission from STINNER Victor : In Python 3.6, sys.callstats() was a way to retrieve statistics produced by Python/ceval.c when Python was compiled with a special build option: CALL_PROFILE. The function was implemented with PyEval_GetCallStats(). I removed CALL_PROFILE special build an

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

2019-06-26 Thread Eryk Sun
Eryk Sun added the comment: > The process is not polled to be able to emit the warning in more > cases, again, to ease debug. It emits an incorrect warning if the process has already exited: "subprocess %s is still running". This can be rectified. Here's my current understanding: def __

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

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

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

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- title: Remove sys.callstats() -> Remove undocumented and deprecated sys.callstats() function ___ 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: New changeset 689830ee6243126798a6c519c05aa11ba73db7cd by Victor Stinner in branch 'master': bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396) https://github.com/python/cpython/commit/689830ee6243126798a6c519c05aa11ba73db7cd -- _

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

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

[issue37415] Error build Python with Intel compiler

2019-06-26 Thread Borja
New submission from Borja : I'm trying to build Python 3.7 on CentOS 7 with Intel compilers. To compile I do the following: export CC=icc export CXX=icpc export FC=ifort ./configure --prefix=my_prefix --enable-optimizations --without-gcc make make install In the configure, no error is seen,

[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: Sorry, I'm lost :-( More and more different issues are discussed here. Would it be possible please to stick this issue to _active list and _cleanup() on Windows? From what I read, remove/disable _active and _cleanup() makes sense on Windows. I already creat

[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

[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 behavio

[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. --

[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 correspond

[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

[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

[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 ___ ___ Python-bugs-li

[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) https://github.com/python/cpython/commit/2d88e63bfcf7bccba925ab80b3f47ccf

[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 ___ __

[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: +

[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 -- _

[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 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: +14216 pull_request: https://github.com/python/cpython/pull/14404 ___ Python tracker ___ __

[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 ___

[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 ord

[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 ___ ___ Python-bu

[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 _

[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 l

[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 in

[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 `im

[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 ___ __

[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. >>

[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 ___ _

[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 _

[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 wors

  1   2   >