[issue31822] Document that urllib.parse.{Defrag, Split, Parse}Result are namedtuples

2019-03-22 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Unfortunately, when the implementation was migrated to use collections.namedtuple (a benefit), the _replace method wasn't extended to support the additional computed addresses for these types. That would really be useful. -- nosy: +fdrake

[issue36228] Support coercion of complex to float/int

2019-03-22 Thread Марат Нагаев
Марат Нагаев added the comment: ping @tim.peters -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36405] Use dict unpacking in idlelib

2019-03-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : Replace 3 occurrences of 'd = d1.copy(); d.update(d2)' pattern with 'd = {**d1, **d2}'. Also remove unnecessary imports and uses of __main__. -- assignee: terry.reedy components: IDLE messages: 338643 nosy: terry.reedy priority: normal severity:

[issue36403] AsyncIterator on 3.7: __aiter__ no longer honors finally blocks

2019-03-22 Thread Ask Solem
Ask Solem added the comment: Ah, so the extra call_soon means it needs a: [code] loop.run_until_complete(asyncio.sleep(0))``` [/code] before the self.assertTrue(it.finally_executed) to finish executing agen.close(). Why is create_task different? Does it execute an iteration of the

[issue24759] Idle: require tk 8.5 and ttk widgets, and drop unneeded code.

2019-03-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25225] Idle doc: redo Syntax Colors section

2019-03-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27224] IDLE: editor versus grep line number differ

2019-03-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2019-03-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25199] Idle: add cross-references from and to macosxSupport

2019-03-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36286] Random failure in test_idle

2019-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reran test_cdfail and it did 2.7 million loops without failure. -- ___ Python tracker ___ ___

[issue36354] Use CreateProcessW for Python 2.7 on Windows.

2019-03-22 Thread Josh Rosenberg
Josh Rosenberg added the comment: 2.7 is in bug fix only mode, and even that ends at the end of this year. This seems more like a feature request than an actual bug; it works, but not great with Unicode in some cases (which describes large parts of Python 2). It does look like Python 3.7 at

[issue36301] Add _Py_PreInitialize() function

2019-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12457 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36404] Document PendingDeprecationWarning as deprecated

2019-03-22 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12456 stage: -> patch review ___ Python tracker ___ ___

[issue36404] Document PendingDeprecationWarning as deprecated

2019-03-22 Thread Inada Naoki
Change by Inada Naoki : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___

[issue36404] Document PendingDeprecationWarning as deprecated

2019-03-22 Thread Inada Naoki
Change by Inada Naoki : -- nosy: inada.naoki priority: normal severity: normal status: open title: Document PendingDeprecationWarning as deprecated versions: Python 3.8 ___ Python tracker

[issue30670] pprint for dict in sorted order or insert order?

2019-03-22 Thread GUIHOT Xavier
Change by GUIHOT Xavier : -- pull_requests: +12455 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36401] Readonly properties should be marked as such in help()

2019-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > but can we do the same thing with the PyGetSetDef declaration > for the C Part? The would likely take an API change. For now, using only what is already exposed in Python, we can only partition data descriptors in two groups: * Known to be readonly

[issue36403] AsyncIterator on 3.7: __aiter__ no longer honors finally blocks

2019-03-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The attached script fails on master too. On bisecting could this be possibly caused due to 41e5ec377b (bpo-34769) ? Tagging Ned since it was introduced from 3.7.1rc2 and also backported to 3.6 . ➜ cpython git:(41e5ec377b) git checkout 41e5ec377b

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-22 Thread STINNER Victor
STINNER Victor added the comment: > with your suggestions, I will move the serve.py in the documentation of > wsgiref and change Doc/Makefile. I suggest to write two separated PRs for each change. -- ___ Python tracker

[issue33319] `subprocess.run` documentation doesn't tell is using `stdout=PIPE` safe

2019-03-22 Thread Martin Panter
Martin Panter added the comment: This is a regression in the 3.7+ documentation. It previously said “To [capture output], pass PIPE for the ‘stdout’ and/or ‘stderr’ arguments”. This was removed by Bo Bayles in Issue 32102. -- keywords: +3.7regression nosy: +bbayles, gregory.p.smith,

[issue36354] Use CreateProcessW for Python 2.7 on Windows.

2019-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is CreateProcessW already used in current 3.x? -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue36286] Random failure in test_idle

2019-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: #36389 appears to be a similar failure. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36339] test_ttk_guionly: test_traversal() fails randomly on AMD64 Windows8.1 Refleaks 2.7

2019-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: My guess is that the failure is in event_generate(key), as in #36286. If so, this is a duplicate of the latter. How often have you seen a failure? For event_generate(''), etc, the failure time in my test script varies from 1000 to 100_000 tries and there

[issue36403] AsyncIterator on 3.7: __aiter__ no longer honors finally blocks

2019-03-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36322] Argument typo in dbm.ndbm.open

2019-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have trouble understanding this post. The parameter name is 'flag', not 'flags' and there are no typos, including in ndbm. The parameter name is singular because there is basically one flag with 4 possible values to indicate how to open. The fact that

[issue36401] Readonly properties should be marked as such in help()

2019-03-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @Raymond +1 but can we do the same thing with the PyGetSetDef declaration for the C Part? -- nosy: +matrixise ___ Python tracker ___

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-22 Thread Stefan Krah
Change by Stefan Krah : -- keywords: +patch pull_requests: +12454 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36322] Argument typo in dbm.ndbm.open

2019-03-22 Thread Marco Rougeth
Change by Marco Rougeth : -- keywords: +patch pull_requests: +12453 stage: -> patch review ___ Python tracker ___ ___

[issue36401] Readonly properties should be marked as such in help()

2019-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: For property objects, we have to look at *fset* and *fdel* to find-out whether they are assignable: >>> A.rop.fset is None True >>> A.wandr.fset is None False -- ___ Python tracker

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2019-03-22 Thread miss-islington
miss-islington added the comment: New changeset 868581ee7687ad25af70c0cb9cd6a0f2077e6422 by Miss Islington (bot) in branch '3.7': bpo-35155: clarify protocol handler method naming (GH-10313) https://github.com/python/cpython/commit/868581ee7687ad25af70c0cb9cd6a0f2077e6422 --

[issue36311] Flaw in Windows code page decoder for large input

2019-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have 24G if all working and would be willing to try to run a test case. -- nosy: +terry.reedy stage: -> test needed ___ Python tracker

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2019-03-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +12452 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2019-03-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +12451 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2019-03-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: We could backport this to older versions too. This documentation change is helpful, and backporting this will help with future backport patches against these files. -- status: closed -> open ___ Python tracker

[issue36402] test_threading: test_threads_join_2() failed with "Fatal Python error: Py_EndInterpreter: not the last thread" on AMD64 FreeBSD CURRENT Shared 3.x

2019-03-22 Thread STINNER Victor
STINNER Victor added the comment: As far as I remember, test_threads_join_2() was already unstable. I created this issue to try to track if it's a regression or not. If it's a regression, I would suggest to have a look at Eric Snow's recent commits. At this point, I simply have no idea if

[issue36402] test_threading: test_threads_join_2() failed with "Fatal Python error: Py_EndInterpreter: not the last thread" on AMD64 FreeBSD CURRENT Shared 3.x

2019-03-22 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/168/builds/801 0:23:17 load avg: 5.00 [334/420/1] test_threading crashed (Exit code -6) -- running: test_tools (8 min 42 sec), test_multiprocessing_spawn (5 min 41 sec), test_zipfile (30 sec 787 ms) Fatal Python

[issue36401] Readonly properties should be marked as such in help()

2019-03-22 Thread Raymond Hettinger
New submission from Raymond Hettinger : It is common to create read-only properties with the '@property' decoration but the existing help() output doesn't annotate them as such. One way to go is to annotate each one separately: |

[issue36396] Remove fgBg param of idlelib.config.GetHighlight()

2019-03-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2019-03-22 Thread Denton Liu
Change by Denton Liu : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue36396] Remove fgBg param of idlelib.config.GetHighlight()

2019-03-22 Thread miss-islington
miss-islington added the comment: New changeset 2d7798ad12456e137b3e3bc82a9824d0d3d45af0 by Miss Islington (bot) in branch '3.7': bpo-36396: Remove fgBg param of idlelib.config.GetHighlight() (GH-12491) https://github.com/python/cpython/commit/2d7798ad12456e137b3e3bc82a9824d0d3d45af0

[issue36396] Remove fgBg param of idlelib.config.GetHighlight()

2019-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c1419578a18d787393c7ccee149e7c1fff17a99e by Terry Jan Reedy in branch 'master': bpo-36396: Remove fgBg param of idlelib.config.GetHighlight() (GH-12491) https://github.com/python/cpython/commit/c1419578a18d787393c7ccee149e7c1fff17a99e

[issue36396] Remove fgBg param of idlelib.config.GetHighlight()

2019-03-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +12450 stage: commit review -> patch review ___ Python tracker ___ ___

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-22 Thread miss-islington
miss-islington added the comment: New changeset 5086589305ff5538709856b27314b68f06ae93db by Miss Islington (bot) (Brett Cannon) in branch 'master': bpo-36298: Raise ModuleNotFoundError in pyclbr when a module can't be found (GH-12358)

[issue35900] Add pickler hook for the user to customize the serialization of user defined functions and types.

2019-03-22 Thread Pierre Glaser
Change by Pierre Glaser : -- pull_requests: +12449 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2019-03-22 Thread miss-islington
miss-islington added the comment: New changeset dd7c4ceed90792f711347024852d4cf883a9ab9e by Miss Islington (bot) (Denton Liu) in branch 'master': bpo-35155: clarify protocol handler method naming (GH-10313) https://github.com/python/cpython/commit/dd7c4ceed90792f711347024852d4cf883a9ab9e

[issue36326] Teach inpsect.getdoc() to read __slots__ with an optional data dictionary

2019-03-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: Build-out help() to read __slots__ with an optional data dictionary -> Teach inpsect.getdoc() to read __slots__ with an optional data dictionary ___ Python tracker

[issue36326] Build-out help() to read __slots__ with an optional data dictionary

2019-03-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +12448 stage: -> patch review ___ Python tracker ___ ___

[issue35528] [DOC] [LaTeX] Sphinx 2.0 uses GNU FreeFont as default for xelatex

2019-03-22 Thread Julien Palard
Change by Julien Palard : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35528] [DOC] [LaTeX] Sphinx 2.0 uses GNU FreeFont as default for xelatex

2019-03-22 Thread Julien Palard
Julien Palard added the comment: Thanks a lot for the heads up jfbu! Opened a PR here: https://github.com/python/psf-salt/pull/167 -- ___ Python tracker ___

[issue30670] pprint for dict in sorted order or insert order?

2019-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the contribution. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30670] pprint for dict in sorted order or insert order?

2019-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 96831c7fcf888af187bbae8254608cccb4d6a03c by Raymond Hettinger (Rémi Lapeyre) in branch 'master': bpo-30670: Add pp function to the pprint module (GH-11769) https://github.com/python/cpython/commit/96831c7fcf888af187bbae8254608cccb4d6a03c

[issue36085] Enable better DLL resolution

2019-03-22 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36400] Add activate script to venv root folder

2019-03-22 Thread Brett Cannon
Brett Cannon added the comment: I agree with Eric. Thanks for the idea, Ivan, but I'm closing this as an idea we won't be pursuing. -- nosy: +brett.cannon resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue36299] array: Deprecate 'u' type in array module

2019-03-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-03-22 Thread STINNER Victor
STINNER Victor added the comment: > I don't think calling APIs like _PyDict_CheckConsistency() is super useful. I looked a multiple old issues which contain "visit_decref". Most of them are really strange crashes and were closed with a message like "we don't have enough info to debug,

[issue36299] array: Deprecate 'u' type in array module

2019-03-22 Thread Stefan Krah
Stefan Krah added the comment: The funny thing is that array() already knows this: >>> import array >>> a = array.array("u", "123") >>> memoryview(a).format 'w' -- ___ Python tracker

[issue36299] array: Deprecate 'u' type in array module

2019-03-22 Thread Stefan Krah
Stefan Krah added the comment: array() uses struct module characters except for 'u'. PEP-3118 was supposed to be implemented in the struct module. If array() continues to use 'u', the only sensible thing would be to remove (or rename) 'a', 'u' and 'w' from PEP-3118. --

[issue36299] array: Deprecate 'u' type in array module

2019-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: array('u') is not tied with the legacy Unicode C API. It is possible to use the modern wchar_t based Unicode C API for it. See issue36346. There are benefits from getting rid of the legacy Unicode C API, but not from array('u'). -- nosy:

[issue36299] array: Deprecate 'u' type in array module

2019-03-22 Thread Stefan Krah
Stefan Krah added the comment: Just to demonstrate what the format would look like, this is working for an array of fixed bytes: >>> x = xnd([b"123", b"23456"], dtype="fixed_bytes(size=10)") >>> memoryview(x).format '10s' So the formats in the previous message would be '10u' and '10w'.

[issue36299] array: Deprecate 'u' type in array module

2019-03-22 Thread Stefan Krah
Stefan Krah added the comment: I think the problem is still whether to use 'u' == UCS2 and 'w' == UCS4 like in PEP-3118. For the project I'm currently working on I'd need these for buffer exports: >>> from xnd import * >>> x = xnd(["abc", "xyz"], dtype="fixed_string(10, 'utf16')") >>> y =

[issue36233] xml ElementTree quotation marks of xml version string

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

[issue35284] Incomplete error handling in Python/compile.c:compiler_call()

2019-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I wonder how did you find this bug? -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36400] Add activate script to venv root folder

2019-03-22 Thread Eric V. Smith
Eric V. Smith added the comment: While I think this might have been a reasonable choice when this was first added, I think it's too late to change. We'd have to keep the files in bin (or Scripts) indefinitely because there are a zillion tutorials that talk about them. And having them in

[issue36400] Add activate script to venv root folder

2019-03-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36400] Add activate script to venv root folder

2019-03-22 Thread Ivan Marin
New submission from Ivan Marin : Instead of keeping the activate script of a virtualenv created with venv on the bin folder, move the file or create a link to the root folder of the venv file. Even better if there´s a way to make it easier to make shell autocomplete faster. The rationale is

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-03-22 Thread Inada Naoki
Inada Naoki added the comment: I don't think calling APIs like _PyDict_CheckConsistency() is super useful. Can the PR find bugs like issue33803 quickly? I think calling tp_traverse is better. static int check_object(PyObject *obj, void *unused) { _PyObject_ASSERT(obj, Py_REFCNT(obj) >

[issue35284] Incomplete error handling in Python/compile.c:compiler_call()

2019-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bdb9c497e177cdf881892de289b9d8a2b132f138 by Serhiy Storchaka (Zackery Spytz) in branch '3.7': bpo-35284: Fix the error handling in the compiler's compiler_call(). (GH-10625) (GH-12496)

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2019-03-22 Thread Brecht Machiels
Brecht Machiels added the comment: In order to adapt code to this change, can we assume that a NEWLINE token with an empty string only occurs right before the ENDMARKER? -- nosy: +brechtm ___ Python tracker

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2019-03-22 Thread Anders Hovmöller
Anders Hovmöller added the comment: I just discovered this ticket again and see that it's stuck! I have read through the thread but it's still a bit unclear what would be required to test this with homebrew like Guido says is needed for this to go forward. Is there anyone who can explain or

[issue36338] urlparse of urllib returns wrong hostname

2019-03-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue20271 that discusses the other format http://[::1]spam where ::1 is returned as hostname. urlparse tries to parse the hostname as IPV6 address when there is [ and parses till ] at [0] thus "benign.com\[attacker.com]" is treated as a

[issue36299] array: Deprecate 'u' type in array module

2019-03-22 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +ncoghlan, skrah, vstinner stage: patch review -> title: Deprecate 'u' type in array module -> array: Deprecate 'u' type in array module ___ Python tracker

[issue34506] Traceback logged when SSL handshake fails

2019-03-22 Thread lilydjwg
Change by lilydjwg : -- nosy: +lilydjwg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36299] Deprecate 'u' type in array module

2019-03-22 Thread Inada Naoki
Inada Naoki added the comment: I found converting Py_UNICODE to Py_UCS4 wad happened, and reverted. ref: https://bugs.python.org/issue13072 -- ___ Python tracker ___

[issue36299] Deprecate 'u' type in array module

2019-03-22 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12447 stage: -> patch review ___ Python tracker ___ ___

[issue24565] the f_lineno getter is broken

2019-03-22 Thread daniel hahler
Change by daniel hahler : -- versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36233] xml ElementTree quotation marks of xml version string

2019-03-22 Thread Stefan Behnel
Stefan Behnel added the comment: As a work-around, you can provide your own XML declaration (or not) and pass "xml_declaration=False" into ElementTree.write() to prevent it from adding one. UTF-8 encoded XML is ok without such a declaration. --

[issue36233] xml ElementTree quotation marks of xml version string

2019-03-22 Thread Stefan Behnel
Stefan Behnel added the comment: I concur with Serhiy that the bug is in OpenCV (or its parser project), and that it is best solved there. Otherwise, we would create a dependency on a future/recent Python version for exporting XML to it. -- ___

[issue36299] Deprecate 'u' type in array module

2019-03-22 Thread Inada Naoki
Inada Naoki added the comment: https://mail.python.org/pipermail/python-dev/2019-March/156807.html We may able to convert 'u' to wchar_t to int32_t and un-deprecate it. -- ___ Python tracker

[issue36399] multiprocessing: Queue does not work in virtualenv but works fine in main interpreter

2019-03-22 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: I also checked using 3.8 (built from commit 1f58f4fa6a0e3c60cee8df4a35c8dcf3903acde8), and it works there, so it looks as if 3.7 is the problem. > VENV38\Scripts\python.exe --version Python 3.8.0a2+ > VENV38\Scripts\python.exe mp_queue_example.py main,

[issue36399] multiprocessing: Queue does not work in virtualenv but works fine in main interpreter

2019-03-22 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: Versions: > VENV\Scripts\python.exe --version Python 3.7.2 > VENV36\Scripts\python.exe --version Python 3.6.8 -- ___ Python tracker

[issue36399] multiprocessing: Queue does not work in virtualenv but works fine in main interpreter

2019-03-22 Thread SilentGhost
Change by SilentGhost : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36399] multiprocessing: Queue does not work in virtualenv but works fine in main interpreter

2019-03-22 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: I just checked using 3.6. The program does NOT hang when executed from a 3.6 virtualenv. So this is a possible regression (or something could be messed up on my system). D:\dev\eva_v_next>VENV36\Scripts\python.exe mp_queue_example.py main, pid=28956,

[issue36399] multiprocessing: Queue does not work in virtualenv but works fine in main interpreter

2019-03-22 Thread Bernt Røskar Brenna
New submission from Bernt Røskar Brenna : When executing mp_queue_example.py in the system interpreter: D:\dev\eva_v_next>d:\python372\python.exe mp_queue_example.py main, pid=892, executable=d:\python372\python.exe process_worker, pid=12848, executable=d:\python372\python.exe submitting...

[issue21269] Provide args and kwargs attributes on mock call objects

2019-03-22 Thread Chris Withers
Chris Withers added the comment: New changeset b0df45e55dc8304bac0e3cad0225472b84190964 by Chris Withers (Kumar Akshay) in branch 'master': bpo-21269: Provide args and kwargs attributes on mock call objects GH11807

[issue23984] Documentation error: Descriptors

2019-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset cb2d71b28e5cac04bbd59b8b6dbec220c4da7beb by Raymond Hettinger (Miss Islington (bot)) in branch '3.7': bpo-23984: Improve descriptor documentation (GH-1034) (GH-12459)

[issue35284] Incomplete error handling in Python/compile.c:compiler_call()

2019-03-22 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +12446 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33081] multiprocessing Queue leaks a file descriptor associated with the pipe writer

2019-03-22 Thread Yongzhi Pan
Yongzhi Pan added the comment: On macOS with Python 3.7.2, using pitrou's code, I suspect Python does not delete some semaphores used by Queue. Run these: import multiprocessing import os import threading os.system('lsof -p {} | grep -v txt'.format(os.getpid())) q =

[issue35284] Incomplete error handling in Python/compile.c:compiler_call()

2019-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 97f5de01adf993aee17dcd26e22ae421d013f372 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-35284: Fix the error handling in the compiler's compiler_call(). (GH-10625)

[issue36398] A possible crash in structseq.c's structseq_repr()

2019-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 93e8012f2cabd84f30b52e19fd3dc557efa9f8af by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-36398: Fix a possible crash in structseq_repr(). (GH-12492) https://github.com/python/cpython/commit/93e8012f2cabd84f30b52e19fd3dc557efa9f8af

[issue36396] Remove fgBg param of idlelib.config.GetHighlight()

2019-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: There were two uses in IDLE and a few in the tests. -- stage: patch review -> commit review ___ Python tracker ___