[issue33421] Missing documentation for typing.AsyncContextManager

2018-05-23 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: This is now fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-05-23 Thread Eric Snow
Eric Snow added the comment: I'll take a look. Thanks! -- assignee: -> eric.snow ___ Python tracker ___

[issue33569] dataclasses InitVar does not maintain any type info

2018-05-23 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

Usenet Gateway (was: Spam levels.)

2018-05-23 Thread Peter J. Holzer
On 2018-05-23 10:00:56 -0400, Dennis Lee Bieber wrote: > On Wed, 23 May 2018 08:01:35 +0200, dieter declaimed > the following: > > >Maybe something went wrong with the integration of your NTTP server > >with the Gmane one? > > GMANE doesn't (to my knowledge) peer to

[issue33616] typing.NoReturn is undocumented

2018-05-23 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue33618] Support TLS 1.3

2018-05-23 Thread Christian Heimes
Christian Heimes added the comment: More: * We also need a new API to request TLS client cert authentication *after* some application data was requested. The use case is e.g. HTTP web server. A client sends a GET request and then the server gets to decide if the route

[issue33618] Support TLS 1.3

2018-05-23 Thread Christian Heimes
New submission from Christian Heimes : Epic for various TLS 1.3 related tasks and improvements TLS 1.3 requires some changes to the SSL module and tests. The TLS 1.3 handshake behaves slightly differently, which causes some tests to fail. The new handshake and deferred

[issue27485] urllib.splitport -- is it official or not?

2018-05-23 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue33617] subprocess.Popen etc do not accept os.PathLike in passed sequence on Windows

2018-05-23 Thread Kyle Altendorf
Kyle Altendorf added the comment: I totally failed to fill out the metadata, sorry. I would personally consider this more of a bugfix than a feature enhancement, but I don't know how that's decided exactly. It's also quite small. There are a couple other open issues

[issue33617] subprocess.Popen etc do not accept os.PathLike in passed sequence on Windows

2018-05-23 Thread Kyle Altendorf
Change by Kyle Altendorf : -- keywords: +patch pull_requests: +6700 stage: -> patch review ___ Python tracker ___

[issue33565] strange tracemalloc results

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: > Hmm, GH-4587 is merged in 3.6 branch in last November, but 3.6.5 doesn't > include it? We decided to not fix the memory leak in Python 3.6: https://github.com/python/cpython/pull/4587#issuecomment-347659163 """ This change makes

[issue33617] subprocess.Popen etc do not accept os.PathLike in passed sequence on Windows

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: That's a feature request for Python 3.8 ;-) > PR to follow soon. Cool! -- components: +Library (Lib), Windows nosy: +paul.moore, steve.dower, tim.golden, vstinner, zach.ware resolution: duplicate -> stage: resolved -> status:

[issue33617] subprocess.Popen etc do not accept os.PathLike in passed sequence on Windows

2018-05-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> subprocess._execute_child doesn't accept a single PathLike argument for args ___ Python tracker

[issue33617] subprocess.Popen etc do not accept os.PathLike in passed sequence on Windows

2018-05-23 Thread Kyle Altendorf
New submission from Kyle Altendorf : PS C:\Users\FSTAB\Desktop\g\20\grid-tied> py -3.6 -c "import os, pathlib, subprocess; subprocess.run([pathlib.Path()])" Traceback (most recent call last): File "", line 1, in File "C:\Program Files\Python36\lib\subprocess.py", line 403,

Re: "Data blocks" syntax specification draft

2018-05-23 Thread Chris Angelico
On Wed, May 23, 2018 at 11:11 PM, Steven D'Aprano wrote: > On Wed, 23 May 2018 11:10:33 +0100, bartc wrote: >> 0 items within the list: >> >> ()Empty tuple >> []Empty list >> {}Empty dict > > Aye ... as we've acknowledged numerous times now, the

[issue30437] SSL_shutdown needs SSL_read() until SSL_ERROR_ZERO_RETURN

2018-05-23 Thread Christian Heimes
Christian Heimes added the comment: The session ticket issue in TLS 1.3 handshake will be fixed by upstream patch https://github.com/openssl/openssl/pull/6340. We still need to drain the SSL socket to remove pending application data before the second SSL_shutdown() call,

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

2018-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It succeeds after removing directories amd64 and obj in PCbuild. Seems they are left from old builds and the clean up script did nor remove them. This may be a cause of other weird bugs on Windows. --

[issue33547] Relative imports do not replace local variables

2018-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: Yes, while weird, that's expected behaviour. Rather than being due to absolute vs relative imports, the difference arises from the fact that in "import pkg.module", the request is explicitly for a submodule, so the submodule import always

RE: "Data blocks" syntax specification draft

2018-05-23 Thread Dan Strohl via Python-list
First of all, I suggest splitting this into a separate proposal (new thread) that way you will avoid confusion for people who are still considering the older proposal, and for the (probably many) people who have stopped reding the old thread due to some of the more heated conversations in

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2018-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: Adding a low level callback based mechanism to ask another interpreter to do work seems like a good way to go to me. As an example of why that might be needed, consider the case of sharing a buffer exporting object with another

Re: "Data blocks" syntax specification draft

2018-05-23 Thread Steven D'Aprano
On Wed, 23 May 2018 11:10:33 +0100, bartc wrote: [...] >> You haven't done enough testing. All you have done is found that "round >> brackets give a tuple, other brackets don't". But you need to test what >> happens if you take away the brackets to be sure that it is the round >> brackets which

[issue33607] [subinterpreters] Explicitly track object ownership (and allocator).

2018-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: Rather than tracking this per object, you could potentially track it per arena at the memory allocator level instead. Then if you really need the info (e.g. when running the debug allocator), you can check it in a reliable way, but in the

[issue23188] Provide a C helper function to chain raised (but not yet caught) exceptions

2018-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: Also see https://github.com/python/cpython/blob/55edd0c185ad2d895b5d73e47d67049bc156b654/Objects/exceptions.c#L2713 for the version we use in a few places to implicitly update the exception message, while keeping the exception type and

[issue32622] Implement loop.sendfile

2018-05-23 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___

[issue32710] test_asyncio leaked [4, 4, 3] memory blocks, sum=11 on AMD64 Windows8.1 Refleaks 3.x

2018-05-23 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___

[issue33565] strange tracemalloc results

2018-05-23 Thread INADA Naoki
INADA Naoki added the comment: I was wrong. It is not merged into 3.6 branch. The pull request is just closed. Now nothing strange in tracemalloc. -- ___ Python tracker

[issue33565] strange tracemalloc results

2018-05-23 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue33565] strange tracemalloc results

2018-05-23 Thread INADA Naoki
INADA Naoki added the comment: Hmm, GH-4587 is merged in 3.6 branch in last November, but 3.6.5 doesn't include it? -- ___ Python tracker

[issue31463] test_multiprocessing_fork hangs test_subprocess

2018-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Let's take another look at the issue: why does test_subprocess need to know about all child processes, rather than those that were launched during test_subprocess? -- ___ Python tracker

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

2018-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My bad, I didn't test that change on Windows myself, and CI seems was broken at that moment. But I have no ideas why the build is failed. These names are part of stable ABI since version 3.7. I don't see any difference between

[issue33565] strange tracemalloc results

2018-05-23 Thread INADA Naoki
INADA Naoki added the comment: I confirmed the leak on 3.6.5, and I can't reproduce it on 3.7.0b4. -- ___ Python tracker ___

[issue33565] strange tracemalloc results

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: > Thanks, I can reproduce. Are you testing the master branch? I fixed a memory leak in the _warnings module for ignored ResourceWarning warnings. -- ___ Python tracker

[issue33616] typing.NoReturn is undocumented

2018-05-23 Thread Sebastian Rittau
New submission from Sebastian Rittau : This exists at least in Python 3.6.5's typing module. https://github.com/python/typing/issues/165 has background on why it was added. -- assignee: docs@python components: Documentation messages: 317395 nosy: docs@python,

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-05-23 Thread STINNER Victor
New submission from STINNER Victor : http://buildbot.python.org/all/#/builders/1/builds/232 (...) 3:28:16 load avg: 3.67 [401/416/3] test__xxsubinterpreters crashed (Exit code -6) -- running: test_asyncio (4631 sec) python: Modules/gcmodule.c:277: visit_decref: Assertion

[issue33565] strange tracemalloc results

2018-05-23 Thread INADA Naoki
INADA Naoki added the comment: Alexander Mohr: Thanks, I can reproduce. I found ResourceWarning is happened when head_object. re may be used for filtering warning. You can use `-W always` to see the warnings. I don't know why the leak happened yet. --

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

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : -- components: +Build, Windows nosy: +paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware ___ Python tracker

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

2018-05-23 Thread STINNER Victor
New submission from STINNER Victor : http://buildbot.python.org/all/#/builders/80/builds/244 (Link target) -> python3_d.def : error LNK2001: unresolved external symbol PyImport_GetModule

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

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.8 ___ Python tracker ___ ___

[issue27485] urllib.splitport -- is it official or not?

2018-05-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Serhiy, Thanks for finding this. I've submitted a PR to fix the tests. -- ___ Python tracker

pytest 3.6.0 released!

2018-05-23 Thread Bruno Oliveira
The pytest team is proud to announce the 3.6.0 release! pytest is a mature Python testing tool with more than 2000 tests against itself, passing on many different interpreters and platforms. This release contains a major internal refactoring of how marks are handled, fixing a long number of long

[issue27485] urllib.splitport -- is it official or not?

2018-05-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +6699 stage: resolved -> patch review ___ Python tracker ___

[issue33547] Relative imports do not replace local variables

2018-05-23 Thread Rolf Campbell
Rolf Campbell added the comment: OK, while I understand what you are saying, that is NOT how absolute imports work. I'll give an example: ./main.py:import func ./main.py:print(f"Value of func.func after import func:{func.func}") ./main.py:import func.func

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 23/05/2018 à 13:57, STINNER Victor a écrit : > > I agree that in a perfect world, Python should cleanup everything properly, > but in the current world, daemon threads and fork are a mess full of corner > cases like this one. For now, we

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: > Yes, simply removing the assertion feels more like a copout than an actual > fix. We are very close to the 3.7rc1, so I suggest to remove the assertion, just to get more time to fix the issue. -- I agree that in a perfect world,

[issue33603] Subprocess Thread handles grow with each call and aren't released [Windows]

2018-05-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: FYI, there's psutil.Process().num_handles() which you can use to count handles before and after subprocess invocation. -- ___ Python tracker

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, simply removing the assertion feels more like a copout than an actual fix. (perhaps it *is* the right fix to the issue, but it would be nice to find out why :-)) -- ___ Python tracker

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The assertion looked good to me when I reviewed this code, and I don't understand why it fails. Maybe it would be better to fix the case in which tstate->exc_info->previous_item != NULL before calling PyThreadState_Clear().

[issue33603] Subprocess Thread handles grow with each call and aren't released [Windows]

2018-05-23 Thread GranPrego
GranPrego added the comment: I'm now pretty convinced that sounddevice 0.3.11 library is the culprit, which may in turn point to the portaudio library, or CFFI. I make a call to sd.play() just before calling subprocess to run the dos cmd, the timing was such that

Re: "Data blocks" syntax specification draft

2018-05-23 Thread Steven D'Aprano
On Wed, 23 May 2018 03:02:48 -0600, Ian Kelly wrote: > Maybe you are the one who is being overly pedantic. I resemble that remark! -- Steve -- https://mail.python.org/mailman/listinfo/python-list

[issue33514] async and await as keywords not mentioned in What’s New In Python 3.7

2018-05-23 Thread Miro Hrončok
Miro Hrončok added the comment: This was fixed via issue32996 -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31463] test_multiprocessing_fork hangs test_subprocess

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: > It looks like test_multiprocessing_fork doesn't clean up some of its > subprocesses and then test_subprocess hangs on waitpid(0) forever. Oh strange. This issue was supposed to be fixed. I spent a lot of time to fix such bug, but also

[issue33330] Better error handling in PyImport_Cleanup()

2018-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue33379 about the bug in subinterpreters exposed when add yet one PyErr_WriteUnraisable() in PyImport_Cleanup() (it was not added because of this). -- ___ Python tracker

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also some information about this in issue31463. -- nosy: +serhiy.storchaka ___ Python tracker

[issue25612] nested try..excepts don't work correctly for generators

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6698 ___ Python tracker ___ ___

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +6697 stage: -> patch review ___ Python tracker ___

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: I created PR 7069 to remove the assertion. With this change, attached bug.py doesn't crash anymore, but it still logs warnings in verbose mode: vstinner@apu$ ./python -v bug.py (...) PyThreadState_Clear: warning: thread still has a frame

Re: "Data blocks" syntax specification draft

2018-05-23 Thread bartc
On 23/05/2018 07:03, Chris Angelico wrote: On Wed, May 23, 2018 at 3:32 PM, Christian Gollwitzer wrote: I'd think that the definitive answer is in the grammar, because that is what is used to build the Python parser: https://docs.python.org/3/reference/grammar.html

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: (Oops, I attached a file and added two comments to this issue, whereas I wanted to comment bpo-33612.) -- ___ Python tracker

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: Attached bug.py reproduces the bug with a daemonic thread but without fork(): $ ./python bug.py ls coredpython: Python/pystate.c:589: PyThreadState_Clear: Assertion `tstate->exc_info->previous_item == NULL' failed. Aborted (core dumped)

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : Removed file: https://bugs.python.org/file47611/bug.py ___ Python tracker ___

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : -- Removed message: https://bugs.python.org/msg317376 ___ Python tracker ___

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : -- Removed message: https://bugs.python.org/msg317375 ___ Python tracker ___

Re: "Data blocks" syntax specification draft

2018-05-23 Thread bartc
On 23/05/2018 07:47, Steven D'Aprano wrote: On Tue, 22 May 2018 18:51:30 +0100, bartc wrote: On 22/05/2018 15:25, Chris Angelico wrote: [...] The tuple has nothing to do with the parentheses, except for the special case of the empty tuple. It's the comma. No? Take these: a = (10,20,30)

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: Using bug.py, the assertion fails at: python: Python/pystate.c:589: PyThreadState_Clear: Assertion `tstate->exc_info->previous_item == NULL' failed. Aborted (core dumped) (...) vstinner@apu$ gdb ./python -c coredump-python.24130 GNU gdb

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: Attached bug.py reproduces the bug with a daemonic thread but without fork(): $ ./python bug.py ls coredpython: Python/pystate.c:589: PyThreadState_Clear: Assertion `tstate->exc_info->previous_item == NULL' failed. Aborted (core dumped)

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: Note: I found this bug while working on bpo-33612. -- ___ Python tracker ___

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-33613: "test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error". I don't think that it's directly related. -- ___ Python tracker

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
New submission from STINNER Victor : test_semaphore_tracker_sigint() emits a warning. If the test is run with -W error, the test fails. vstinner@apu$ ./python -m test test_multiprocessing_fork -v -m test_semaphore_tracker_sigint (...) test_semaphore_tracker_sigint

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

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: > Maybe, your Python installation is broken, or you have wrong PYTHONPATH > envvar. We should maybe dump sys.path into stderr on the specific "unable to load the file system codec" error. -- nosy: +vstinner

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

2018-05-23 Thread INADA Naoki
INADA Naoki added the comment: It seems not a bug of Python. Maybe, your Python installation is broken, or you have wrong PYTHONPATH envvar. -- nosy: +inada.naoki ___ Python tracker

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: Failing assertion: /* The stack of exception states should contain just this thread. */ assert(tstate->exc_info->previous_item == NULL); "test_multiprocessing_fork passed in 9 min 13 sec" Oh. A child process crashed on "self.pid

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: The assertion has been added by bpo-25612: commit ae3087c6382011c47db82fea4d05f8bbf514265d Author: Mark Shannon Date: Sun Oct 22 22:41:51 2017 +0100 Move exc state to generator. Fixes bpo-25612 (#1773) Move

[issue33330] Better error handling in PyImport_Cleanup()

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue because I created the PR 7068 to propose further checks (in debug mode). -- resolution: fixed -> status: closed -> open ___ Python tracker

Re: "Data blocks" syntax specification draft

2018-05-23 Thread Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Comments, suggestions are welcome. > nice effort well as far as i've seen, it is more suited as a data standard than a direct python integration why? same as why do we write .json files, xml files, csv files apart as, in-source you

[issue26826] Expose new copy_file_range() syscall in os module.

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: > As for the patch attached to this ticket, is there anything missing in order > to push it forward? IMHO the next step would be to create a pull request on GitHub. -- ___ Python tracker

[issue33330] Better error handling in PyImport_Cleanup()

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6696 ___ Python tracker ___ ___

Re: "Data blocks" syntax specification draft

2018-05-23 Thread Ian Kelly
On Wed, May 23, 2018 at 12:49 AM, Steven D'Aprano wrote: > On Tue, 22 May 2018 09:43:55 -0600, Ian Kelly wrote: > >> In other words, the rule is not really as simple as "commas make >> tuples". I stand by what I wrote. > > Being pedantic is great, but if

[issue26826] Expose new copy_file_range() syscall in os module.

2018-05-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: This is a great addition. I have a working patch adding sendfile() support for shutil.copyfileobj() which speeds it up by a factor of 1.3x on Linux. According to this

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread Antoine Pitrou
Change by Antoine Pitrou : -- priority: normal -> critical ___ Python tracker ___ ___

[issue19251] bitwise ops for bytes of equal length

2018-05-23 Thread Matthias Gilch
Change by Matthias Gilch : -- nosy: +MGilch ___ Python tracker ___ ___

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: 11. Use read-only Text instead of Label for context. Text.index(f'@{e.x},{e.y}', where e is event, converts mouse click to line number. That can be mapped to text line number for 8. above. Text also enables 12. If context box is too short

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +vstinner ___ Python tracker ___ ___

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : I got the following output when run tests in the huntrleaks mode. $ ./python -We -m test -R 3:3 -x test_builtin -x test_urlparse ... 1:24:54 load avg: 2.48 [225/414] test_multiprocessing_fork beginning 6 repetitions 123456

[issue33565] strange tracemalloc results

2018-05-23 Thread Alexander Mohr
Alexander Mohr added the comment: INADA Naoki: Unfortunately you'll need to use credentials from a free AWS account: https://aws.amazon.com/free/. Then create a credentials file in ~/.aws/credentials:

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

2018-05-23 Thread s
New submission from s : Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' ### Process: Python [1889] Path:

Re: "Data blocks" syntax specification draft

2018-05-23 Thread Steven D'Aprano
On Tue, 22 May 2018 09:43:55 -0600, Ian Kelly wrote: > In other words, the rule is not really as simple as "commas make > tuples". I stand by what I wrote. Being pedantic is great, but if you're going to be pedantic, it pays to be *absolutely correctly* pedantic *wink* Chris is right to say

Re: "Data blocks" syntax specification draft

2018-05-23 Thread Steven D'Aprano
On Tue, 22 May 2018 18:51:30 +0100, bartc wrote: > On 22/05/2018 15:25, Chris Angelico wrote: [...] >> The tuple has nothing to do with the parentheses, except for the >> special case of the empty tuple. It's the comma. > > No? Take these: > > a = (10,20,30) > a = [10,20,30] > a =

Re: Getting Unicode decode error using lxml.iterparse

2018-05-23 Thread dieter
digi...@gmail.com writes: > I'm trying to read my iTunes library in Python using iterparse. My current > stub is: > ... > My input file (reduced to home in on the error) is: > > snip - > > > > > > 15078 > > NamePart 2. The

Re: "Data blocks" syntax specification draft

2018-05-23 Thread Ian Kelly
On Wed, May 23, 2018 at 12:01 AM, Ian Kelly wrote: > On Tue, May 22, 2018 at 11:32 PM, Christian Gollwitzer > wrote: >> Am 23.05.18 um 07:22 schrieb Chris Angelico: >>> >>> On Wed, May 23, 2018 at 9:51 AM, bartc wrote: Sorry,

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-05-23 Thread Steven D'Aprano
On Wed, 23 May 2018 00:31:03 +0200, Peter J. Holzer wrote: > On 2018-05-23 07:38:27 +1000, Chris Angelico wrote: [...] >> You can find an encoding which is capable of decoding a file. That's >> not the same thing. > > If the result is correct, it is the same thing. But how do you know what is

Re: "Data blocks" syntax specification draft

2018-05-23 Thread Marko Rauhamaa
Christian Gollwitzer : > I'd think that the definitive answer is in the grammar, because that is > what is used to build the Python parser: > > https://docs.python.org/3/reference/grammar.html > > Actually, I'm a bit surprised that tuple, list etc. does not appear > there

Re: "Data blocks" syntax specification draft

2018-05-23 Thread Chris Angelico
On Wed, May 23, 2018 at 3:32 PM, Christian Gollwitzer wrote: > Am 23.05.18 um 07:22 schrieb Chris Angelico: >> >> On Wed, May 23, 2018 at 9:51 AM, bartc wrote: >>> >>> Sorry, but I don't think you're right at all. unless the official >>> references >>> for the

Re: Spam levels.

2018-05-23 Thread dieter
"Peter J. Holzer" writes: > ... > I didn't read on Gmane. I read on my usenet server. But the broken > messages were all coming from Gmane. I am reading with an NNTP client connected to the Gmane NNTP server and and threading works - with very rare exceptions. The exeptions

Re: "Data blocks" syntax specification draft

2018-05-23 Thread Ian Kelly
On Tue, May 22, 2018 at 11:32 PM, Christian Gollwitzer wrote: > Am 23.05.18 um 07:22 schrieb Chris Angelico: >> >> On Wed, May 23, 2018 at 9:51 AM, bartc wrote: >>> >>> Sorry, but I don't think you're right at all. unless the official >>> references >>> for the

Re: Tkinter and root vs. Wayland

2018-05-23 Thread Terry Reedy
On 5/22/2018 5:52 PM, Grant Edwards wrote: For a couple decades now, I've been distributing a couple smallish Tkinter applications that need to run as root for a variety of reasons (raw Ethernet access, starting/stopping daemons, loading and unloading kernel modules, reading and writing config

<    1   2   3