[issue33605] Detect accessing event loop from a different thread outside of _debug

2018-05-24 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: I would definitely not propose or condone sacrificing performance. Part of the reason why I suggested the check is that it can be done efficiently - it is literally a comparison of two integers, both of which are obtained trivially. I would hope that it doesn'

[issue33631] [ValueError] _strptime.py can't handle 12-hr format strings using '0' instead of '12' for noon and midnight

2018-05-24 Thread CatPaw Freed
New submission from CatPaw Freed : I have to process some data which date was specified in 12-hour format, eg. 9/24/2017 0:39:41 PM. I call datetime.datetime.strptime with "%m/%d/%Y %I:%M:%S %p" format. However, it throws me an error [File "C:\Python27\lib\_strptime.py", line 332, in _strptime

[issue33631] [ValueError] _strptime.py can't handle 12-hr format strings using '0' instead of '12' for noon and midnight

2018-05-24 Thread Ammar Askar
Ammar Askar added the comment: 0 is excluded because it is not a valid hour in the 12 hour clock. 0:39pm is not a valid time on a 12 hour clock. After 11am you reach 12pm, then 1pm. See the table on the right here: https://en.wikipedia.org/wiki/12-hour_clock Your data source is encoding the

[issue33622] Fix errors handling in the garbage collector

2018-05-24 Thread Antoine Pitrou
Change by Antoine Pitrou : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue33621] repr(threading._DummyThread) always fails.

2018-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you post the actual exception you are getting? Here I have: >>> import threading >>> repr(threading._DummyThread()) '<_DummyThread(Dummy-1, started daemon 140345620215552)>' -- nosy: +pitrou ___ Python tracker

[issue33627] test-complex of test_numeric_tower.test_complex() crashes intermittently on Ubuntu buildbots

2018-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Those two builders are using Ubuntu 14.04 specifically (with different CPU architectures). I couldn't reproduce on my 16.04 machine. Perhaps something odd on 14.04? Do we have builds with Adress Sanatizer or Undefined Behavior Sanitizer? -- nosy: +

[issue33632] undefined behaviour: signed integer overflow in threadmodule.c

2018-05-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : Modules/_threadmodule.c:52:47: runtime error: signed integer overflow: 2387971499048 + 92233720360 cannot be represented in type 'long' -- components: Library (Lib) messages: 317545 nosy: pitrou priority: normal severity: normal status: open

[issue33609] Document that dicts preserve insertion order

2018-05-24 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +6729 stage: needs patch -> patch review ___ Python tracker ___ ___ Python

[issue33631] [ValueError] _strptime.py can't handle 12-hr format strings using '0' instead of '12' for noon and midnight

2018-05-24 Thread CatPaw Freed
CatPaw Freed added the comment: Thanks for answering my question and giving me a solution. This issue has been dawned on me that these convention are quite strange. I feel confused when thinking of 12:00am/pm vs 0:00am/pm. (@_@) (^~^) -- ___ Python

[issue33462] reversible dict

2018-05-24 Thread INADA Naoki
INADA Naoki added the comment: I'm not sure it's worth enough for adding more builtin classes. Adding builtin class means Python interpreter core makes more fat, slow to start, and hard to maintain. -- ___ Python tracker

[issue33462] reversible dict

2018-05-24 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: This change does add built-in types but I think it's a reasonable expectation as a python user to be able to do reversed(dict(a=1, b=20) since the order is know defined in the specifications. It seems inconsistent to have an order on dict, views and not have re

[issue33462] reversible dict

2018-05-24 Thread INADA Naoki
INADA Naoki added the comment: > I think it's a reasonable expectation as a python user to be able to do > reversed(dict(a=1, b=20) since the order is know defined in the > specifications. I agree about "reasonable expectation". But I'm interested in is it really useful in real world? > It

[issue33633] smtplib msg['To] = appends instead of assigning

2018-05-24 Thread Xavier Bonaventura
New submission from Xavier Bonaventura : The behavior when you assign an email to 'To' is counter intuitive. When you do: msg['To'] = 'f...@mail.com' this appends the email instead of really assigning it. This is because the assignment operator is overwritten. Imagine that you have code like t

[issue33462] reversible dict

2018-05-24 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: >> I think it's a reasonable expectation as a python user to be able to do >> reversed(dict(a=1, b=20) since the order is know defined in the >> specifications. > I agree about "reasonable expectation". But I'm interested in is it really > useful in real worl

[issue33621] repr(threading._DummyThread) always fails.

2018-05-24 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: Python 3.6.0 |Continuum Analytics, Inc.| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import threading >>> repr(threading._DummyThread()) Traceback (most recent

[issue33621] repr(threading._DummyThread) always fails.

2018-05-24 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: Actually, I tried on a more recent version of Python 3.6 (3.6.5) and it doesn't happen there (so, just happens in 3.6.0 -- i.e.: in the old conda env I had around). Sorry for the noise. Closing issue as it's already fixed. -- stage: -> resolved stat

[issue33632] undefined behaviour: signed integer overflow in threadmodule.c

2018-05-24 Thread Martin Panter
Martin Panter added the comment: Looks like this is what my thread.patch was fixing in . You’re welcome to use my patch, but I won’t have time to work on it myself. -- nosy: +martin.panter ___ Python tra

[issue33462] reversible dict

2018-05-24 Thread INADA Naoki
INADA Naoki added the comment: > Rémi Lapeyre added the comment: > >> I think it's a reasonable expectation as a python user to be able to do reversed(dict(a=1, b=20) since the order is know defined in the specifications. > > I agree about "reasonable expectation". But I'm interested in is i

[issue33632] undefined behaviour: signed integer overflow in threadmodule.c

2018-05-24 Thread STINNER Victor
STINNER Victor added the comment: > Modules/_threadmodule.c:52:47: runtime error: signed integer overflow: > 2387971499048 + 92233720360 cannot be represented in type 'long' How do you reproduce the issue? The thread module should limit the maximum timeout to PY_TIMEOUT_MAX. Maybe PY_

[issue33625] Disable GIL on getpwnam and getpwuid

2018-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Functions getpwnam() and getpwuid() are not reentrant. This is not a problem if their use is guarded with GIL and extensions don't call them directly. But if release GIL, we should use reentrant getpwnam_r() and getpwuid_r() instead. There may be an open is

[issue33634] Buildbot configuration issue on Windows7 buildbots

2018-05-24 Thread STINNER Victor
New submission from STINNER Victor : http://buildbot.python.org/all/#/builders/90/builds/342 D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build>"D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\PCbuild\win32\python_d.exe" -u -Wd -E -bb -m test -uall -rwW --slowest --timeout 1200 -j1

[issue33462] reversible dict

2018-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Inada. It is a "nice to have" feature, but it has too high cost. PR 6827 adds around 300 lines of new code in dictobject.c. Too large for rarely used feature. And dictobject.c is critically important, adding new code here can make the compiler

[issue33462] reversible dict

2018-05-24 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Since there seems to be a consensus about this change being too much, should we go back to the first proposal to implement dict.__reversed__ only and not reversed for the views, this would greatly reduce the bload or dump the PR as a whole ? -- __

[issue33634] Buildbot configuration issue on Windows7 buildbots

2018-05-24 Thread STINNER Victor
STINNER Victor added the comment: Ned comment: This is a side effect of our attempt to fix the test failures on this (Windows7) buildbot caused by "largefile" tests (see https://bugs.python.org/issue33355 ). It should go away once the buildbot config gets manually updated. https://github.c

[issue30773] async generator receives wrong value when shared between coroutines

2018-05-24 Thread Jan
Jan added the comment: I've reproduced the problem also in 3.7 branch. ``` import asyncio loop = asyncio.get_event_loop() async def consumer(): while True: await asyncio.sleep(0) message = yield print('received', message) async def amain(): agenerator = cons

[issue33462] reversible dict

2018-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This would make the feature incomplete and will add a pressure of implementing support for dict views. And even one new type adds much bloat. -- ___ Python tracker ___

[issue33462] reversible dict

2018-05-24 Thread INADA Naoki
INADA Naoki added the comment: > Since there seems to be a consensus about this change being too much, should > we go back to the first proposal to implement dict.__reversed__ only and not > reversed for the views, this would greatly reduce the bload or dump the PR as > a whole ? Since API o

[issue33547] Relative imports do not replace local variables

2018-05-24 Thread Rolf Campbell
Rolf Campbell added the comment: Is there any way to use relative imports and explicitly request a sub-module? >From PEP 328: "import <> is always absolute" So it sounds like there is no way to duplicate the explicit request for a sub-module when using relative imports. -- __

[issue33635] OSError when using pathlib.Path.rglob() to list device files

2018-05-24 Thread Victor Domingos
New submission from Victor Domingos : This method fails with an error when it finds a character or block device (like those found in /dev on macOS). However, in the same machine, with the same Python version, the alternative os.walk() performs basically the same job with no errors. I am not su

[issue33622] Fix errors handling in the garbage collector

2018-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +6730 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33622] Fix errors handling in the garbage collector

2018-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 301e3cc8a5bc68c5347ab6ac6f83428000d31ab2 by Serhiy Storchaka in branch 'master': bpo-33622: Fix issues with handling errors in the GC. (GH-7078) https://github.com/python/cpython/commit/301e3cc8a5bc68c5347ab6ac6f83428000d31ab2 -- ___

[issue33622] Fix errors handling in the garbage collector

2018-05-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6731 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33622] Fix errors handling in the garbage collector

2018-05-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6732 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33622] Fix errors handling in the garbage collector

2018-05-24 Thread miss-islington
miss-islington added the comment: New changeset 2fe940c727802ad54cff9486c658bc38743f7bfc by Miss Islington (bot) in branch '3.7': bpo-33622: Fix issues with handling errors in the GC. (GH-7078) https://github.com/python/cpython/commit/2fe940c727802ad54cff9486c658bc38743f7bfc -- nosy:

[issue33530] Implement Happy Eyeball in asyncio

2018-05-24 Thread twisteroid ambassador
Change by twisteroid ambassador : -- keywords: +patch pull_requests: +6733 stage: -> patch review ___ Python tracker ___ ___ Python-

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-05-24 Thread twisteroid ambassador
Change by twisteroid ambassador : -- keywords: +patch pull_requests: +6734 stage: -> patch review ___ Python tracker ___ ___ Python-

[issue33622] Fix errors handling in the garbage collector

2018-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f0e04b2ae27a4da940a76ae522f0438f80ce5d5a by Serhiy Storchaka in branch '3.6': [3.6] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (GH-7095) https://github.com/python/cpython/commit/f0e04b2ae27a4da940a76ae522f0438f80ce5d5a --

[issue33633] smtplib msg['To] = appends instead of assigning

2018-05-24 Thread Xavier Bonaventura
Xavier Bonaventura added the comment: I've seen that in the documentation is quite clear with it. The question would be if the print should behave different, it is quite difficult to debug if not. __setitem__(name, val) Add a header to the message with field name name and value val. The field

[issue28547] Python to use Windows Certificate Store

2018-05-24 Thread Jean-Philippe Landry
Change by Jean-Philippe Landry : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33634] Buildbot configuration issue on Windows7 buildbots

2018-05-24 Thread STINNER Victor
STINNER Victor added the comment: The configuration change is to fix bpo-33355. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue33636] Unexpected behavior with * and arrays

2018-05-24 Thread nathan rogers
New submission from nathan rogers : https://repl.it/repls/ColorfulFlusteredPercent Here you can see the unexpected behavior I was speaking of. This behavior is NOT useful compared to the expected behavior. If I reference position 0 in the array, I expect position 0 to be appended. The sensible

[issue33635] OSError when using pathlib.Path.rglob() to list device files

2018-05-24 Thread Victor Domingos
Change by Victor Domingos : -- components: +IO, macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list ma

[issue33611] Fatal Python error: Py_Initialize: unable to load the file system codec

2018-05-24 Thread STINNER Victor
STINNER Victor added the comment: msg317525, s (sm): "Guys, (...)" In the future please use gender-neutral words such as "folks" and "y'all" instead of "guys". Thanks. -- ___ Python tracker

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2018-05-24 Thread Christian Heimes
Christian Heimes added the comment: The problem no longer affects Python 3.7 and 3.8. It may affects Python 3.6 and 2.7 if Debian to decide to disable TLS 1.0 and 1.1 again. If Debian uses the new OpenSSL 1.1.0 API to disable the protocols, then I have to backport https://bugs.python.org/issu

[issue32947] Support OpenSSL 1.1.1

2018-05-24 Thread Christian Heimes
Christian Heimes added the comment: 3.7 and 3.8 support OpenSSL 1.1.1-pre7-dev. For 3.6 and 2.7 I have to backport some test fixes and documentation. I prefer to wait until both TLS 1.3 and OpenSSL 1.1.1 have been finalized. Once 1.1.1 is out, I'll fix the outstanding issues on master and the

[issue32706] test_check_hostname() of test_ftplib started to fail randomly

2018-05-24 Thread STINNER Victor
STINNER Victor added the comment: Oh. I forgot about this change. The test is still skipped :-( -- ___ Python tracker ___ ___ Python

[issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-05-24 Thread William Grzybowski
William Grzybowski added the comment: I have updated the PR to used the re-entrant versions. Let me know what you guys think. Thanks! -- title: Disable GIL on getpwnam and getpwuid -> Release GIL for grp.getgr{nam,gid} and pwd.getpw{nam,uid} ___ Py

[issue33611] Fatal Python error: Py_Initialize: unable to load the file system codec

2018-05-24 Thread STINNER Victor
STINNER Victor added the comment: Slava doesn't seem to want to provide any useful information to debug his event, whereas Naoki asked multiple times gently. I also dislike Slava's tone in answers, trolling Python 3 doesn't help to fix your issue... There are millions of Python 3 users on Win

[issue33627] test-complex of test_numeric_tower.test_complex() crashes intermittently on Ubuntu buildbots

2018-05-24 Thread STINNER Victor
STINNER Victor added the comment: > Do we have builds with Adress Sanatizer or Undefined Behavior Sanitizer? Gregory recently added new USBan builders. Example: http://buildbot.python.org/all/#/builders/135 It's something very new, there are millions of logged warnings :-) -- ___

[issue33636] Unexpected behavior with * and arrays

2018-05-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, it is the documented behaviour: the * operator does not copy the lists, it duplicates references to the same list. There's even a FAQ for it: https://docs.python.org/3/faq/programming.html#how-do-i-create-a-multidimensional-list --

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-05-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -6734 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33530] Implement Happy Eyeball in asyncio

2018-05-24 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue32493] UUID Module - FreeBSD build failure

2018-05-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6735 stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue33636] Unexpected behavior with * and arrays

2018-05-24 Thread nathan rogers
nathan rogers added the comment: Can anyone give me a legitimate answer as to why this would be expected behavior? When at any point would you ever need that? If the list is local, you already have the thing. If it isn't local, you can pass it to a function by reference. So then, why would y

[issue32493] UUID Module - FreeBSD build failure

2018-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is AIX big-endian? On *BSD systems uuid_t is a structure of integers with platform-depending endianess. Thus on little-endian platform UUID should be called with the bytes_le argument. This doesn't fix test on OpenBSD and NetBSD, but at least the result is

[issue32493] UUID Module - FreeBSD build failure

2018-05-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue33636] Unexpected behavior with * and arrays

2018-05-24 Thread nathan rogers
nathan rogers added the comment: [[], [], [], [], []] How is it expected behavior in python, that when I update position 0, it decides to update positions 1-infinity as well? That is nonsense, and there is not a use case for this behavior. If you have already created the value, you have

[issue33611] Fatal Python error: Py_Initialize: unable to load the file system codec

2018-05-24 Thread s
s added the comment: :) sure. if you want to close it - it's up to you. if you however, want to fix it, please tell me what information do you need me to provide. I don't think my tone was bad/offensive. ...and it's still a bug, regardless of my tone or anything else. and by the way, I don't li

[issue33611] Fatal Python error: Py_Initialize: unable to load the file system codec

2018-05-24 Thread Ned Deily
Ned Deily added the comment: > PYTHONPATH=/usr/local/lib/python2.7/site-packages That looks pretty suspicious right there. It's pulling in 2.7 modules. Normally you should never need to set PYTHONPATH in a shell initialization script, like .profile, rarely elsewhere. -- ___

[issue33396] IDLE: Improve and document help doc viewer

2018-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Point 1 is #33397. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue33355] Windows 10 buildbot: 15 min timeout on test_mmap.test_large_filesize()

2018-05-24 Thread Ned Deily
Ned Deily added the comment: The Windows7 buildbot now runs the test suite with the "largefile" resource disabled and no longer timed out on test_mmap. So that immediate problem is now resolved. Before closing the issue, it would be good to discuss whether we should do the same for some of

[issue33633] smtplib msg['To] = appends instead of assigning

2018-05-24 Thread R. David Murray
R. David Murray added the comment: smtplib doesn't define any behavior for messages. I presume you are talking about the email library? Vis the print behavior, dict-style lookup is defined to return the first matching header. If you want to see all of them, you can use get_all. For debugg

[issue33637] pip cannot build extensions for debug Python

2018-05-24 Thread Ivan Pozdeev
New submission from Ivan Pozdeev : (the output is for 2.7 head; for master, it's the same save for paths, library versions and DeprecationWarning's) >python.bat -m ensurepip Running Debug|x64 interpreter... Looking in links: c:\users\sasha\appdata\local\temp\tmpiysoby Collecting setuptools Coll

[issue33636] Unexpected behavior with * and arrays

2018-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: @nanthil: If you want to discuss the reasons behind this design decision further, I'd suggest asking on one of the mailing lists, e.g. https://mail.python.org/mailman/listinfo/python-list This is not the right forum for this discussion. Please don't re-open t

[issue33174] error building the _sha3 module with Intel 2018 compilers

2018-05-24 Thread William Scullin
William Scullin added the comment: Hi Kenneth: I can recreate this issue on Haswell, Skylake-X, and KNL running SLES 12, Clear Linux, and Centos 7.5. I've tried 18.1 and 18.2. It's still present across the board with Intel C/C++ 18.0.2.199. On the Centos 7.5.1804 image, the build will seemin

[issue32493] UUID Module - FreeBSD build failure

2018-05-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6736 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue32493] UUID Module - FreeBSD build failure

2018-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 7099 is an alternate solution. I uses uuid_enc_be() which is not part of the DCE 1.1 RPC specification but exists on all *BSD. Both solutions gives the same result on *BSD and AIX. I have no idea what solution is appropriate for little-endian non-BSD pl

[issue33636] Unexpected behavior with * and arrays

2018-05-24 Thread R. David Murray
R. David Murray added the comment: I wrote up a response before Mark closed the issue, so despite his excellent no discussion suggestion I'm going to post it for the edification of anyone reading the issue later rather than waste the work :) Nathan: this is *long* established behavior of pyth

[issue33614] Compilation of Python fails on AMD64 Windows8.1 Refleaks 3.x

2018-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the underlying issue is not fixed still. Adding new symbols in python3.def will break this buildbot (as well as users worktrees) again. -- ___ Python tracker _

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for fixing this Victor! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue33636] Unexpected behavior with * and arrays

2018-05-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: Nathan, the bug tracker is not the place to debate Python behaviour. For the purposes of the bug tracker, all we need say is that it is documented behaviour and not a bug. If you want to change that behaviour, there is a process to follow, and asking snarky

[issue33614] Compilation of Python fails on AMD64 Windows8.1 Refleaks 3.x

2018-05-24 Thread Steve Dower
Steve Dower added the comment: Considering we didn't change anything in the sources, I wouldn't expect it to be fixed. It doesn't have to block 3.7 if Ned's okay with it, but I'd like to keep this open and fix the build scripts. -- resolution: fixed -> stage: resolved -> needs patch

[issue33614] Compilation of Python fails on AMD64 Windows8.1 Refleaks 3.x

2018-05-24 Thread Ned Deily
Ned Deily added the comment: Sorry, I *did* close the issue prematurely; thanks for noticing! -- ___ Python tracker ___ ___ Python-b

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: With #33628 merged, I consider the next priorities to be 5. #22703 (overt bug, highest), 7, and 8, to make the feature more usable. 10. is a vague speculative feature that would use get_indent_firstword but would actually be for the editor. Update problem: I

[issue33637] pip cannot build extensions for debug Python

2018-05-24 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: >one will see all the variables and call hierarchy and be able to step through the code. With optimizations, the current line jumps unpredictably, and some lines can't be visited because they're optimized away. -- _

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've started looking at #22703, more specifically, I've been trying to recreate it. Since the config changes in 3.6/3.7 where the flag was removed from config dialog, the code context needs to be turned on explicitly for each editor. 3.5 has the old behavio

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-24 Thread Yury Selivanov
Yury Selivanov added the comment: > Then we should find what callable is NULL and fix the place where it is > called. _PyObject_FastCallDict() should never be called with NULL. My understanding is that the interpreter is being shutdown and half of the objects are freed. We're still holding a

[issue30773] async generator receives wrong value when shared between coroutines

2018-05-24 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks Jan. Thanks a lot for a short script to reproduce this bug. The actual problem here is that asynchronous generators don't control their 'asend' and 'athrow' coroutines in any way. So if you have two of them iterating *in parallel* they will cause their

[issue30773] async generator receives wrong value when shared between coroutines

2018-05-24 Thread Yury Selivanov
Change by Yury Selivanov : -- assignee: -> yselivanov components: +Interpreter Core -asyncio priority: normal -> high versions: +Python 3.8 ___ Python tracker ___ _

[issue33638] condition lock not re-acquired

2018-05-24 Thread christof
New submission from christof : Hello, I have a simple code which triggers a timeout if a task did not complete import asyncio async def task_timeout(): condition = asyncio.Condition() with await condition: try: await asyncio.wait_for(condition.wait(), timeout=4)

[issue30773] async generator receives wrong value when shared between coroutines

2018-05-24 Thread Nathaniel Smith
Nathaniel Smith added the comment: My thoughts: https://bugs.python.org/issue32526#msg309783 -- ___ Python tracker ___ ___ Python-bu

[issue33355] Windows 10 buildbot: 15 min timeout on test_mmap.test_large_filesize()

2018-05-24 Thread David Bolen
David Bolen added the comment: For my buildbots, I suspect win8/win10 should be ok at this point. Among any other changes their local disk appears to be an SSD now, which makes a big difference. I observed steady 250-300MB/s write I/O for the duration of the mmap test, for example, so no wo

[issue30773] async generator receives wrong value when shared between coroutines

2018-05-24 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks, I'll look into adding ag_running properly. -- ___ Python tracker ___ ___ Python-bugs-list

[issue33629] test_importlib creates a coredump on AMD64 FreeBSD 10.x Shared 3.7

2018-05-24 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +ncoghlan, petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue33638] condition lock not re-acquired

2018-05-24 Thread christof
christof added the comment: In my previous comment, what I want to implement is not a timeout for a task to complete but more precisely a timeout triggered if the coroutine was not wake up by a notify on the condition. -- ___ Python tracker

[issue22703] Idle Code Context: separate changing current and future editors

2018-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: [In #33610, msg317601, Cheryl Sabella wrote, copying here:] I've started looking at #22703, more specifically, I've been trying to recreate it. Since the config changes in 3.6/3.7 where the flag was removed from config dialog, the code context needs to be tu

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2018-05-24 Thread Kurt Roeckx
Kurt Roeckx added the comment: Note that the version in experimental only supports TLS 1.2 and 1.3 with the default config. It's moved from fixed in the code, to the default config file. I expect to upload that to unstable "soon", at which point people will be affected by this again. ---

[issue33634] Buildbot configuration issue on Windows7 buildbots

2018-05-24 Thread Zachary Ware
Zachary Ware added the comment: This was fixed by https://github.com/python/buildmaster-config/pull/36 -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker __

[issue33639] Use high-performance os.sendfile() in shutil.copy*

2018-05-24 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : This is a follow up of #25063 and similar to socket.sendfile() (#17552). It provides a 20/25% speedup when copying files with shutil.copyfile(), shutil.copy() and shutil.copy2(). Differently from #25063 this is used for filesystem files only and copyfile

[issue33639] Use high-performance os.sendfile() in shutil.copy*

2018-05-24 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- keywords: +patch pull_requests: +6737 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-24 Thread STINNER Victor
STINNER Victor added the comment: > Thank you for fixing this Victor! You're welcome. It's always a pleasure to remove code! -- ___ Python tracker ___

[issue33629] test_importlib creates a coredump on AMD64 FreeBSD 10.x Shared 3.7

2018-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 483000e164ec68717d335767b223ae31b4b720cf by Victor Stinner in branch 'master': bpo-33629: Prevent coredump in test_importlib (GH-7090) https://github.com/python/cpython/commit/483000e164ec68717d335767b223ae31b4b720cf -- ___

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 483000e164ec68717d335767b223ae31b4b720cf by Victor Stinner in branch 'master': bpo-33629: Prevent coredump in test_importlib (GH-7090) https://github.com/python/cpython/commit/483000e164ec68717d335767b223ae31b4b720cf -- ___

[issue33629] test_importlib creates a coredump on AMD64 FreeBSD 10.x Shared 3.7

2018-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +6738 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +6739 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33629] test_importlib creates a coredump on AMD64 FreeBSD 10.x Shared 3.7

2018-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +6740 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +6741 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-24 Thread STINNER Victor
STINNER Victor added the comment: MultiPhaseExtensionModuleTests.test_bad_traverse() of Lib/test/test_importlib/extension/test_loader.py runs the following code: --- import importlib.util as util spec = util.find_spec('_testmultiphase') spec.name = '_testmultiphase_with_bad_traverse' m = spec.l

[issue33622] Fix errors handling in the garbage collector

2018-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9044cd675902b438bc500908e410382ff48299d8 by Serhiy Storchaka in branch '2.7': [2.7] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (#7096) https://github.com/python/cpython/commit/9044cd675902b438bc500908e410382ff48299d8

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2018-05-24 Thread Christian Heimes
Christian Heimes added the comment: Thanks Kurt, which API are you using to disable TLS 1.0 and 1.1? Is it the old SSL_CTX_set_options() or the new SSL_CTX_set_min/max_proto_version() API? -- ___ Python tracker

  1   2   >