From report at bugs.python.org Sun May 1 00:28:29 2016 From: report at bugs.python.org (Berker Peksag) Date: Sun, 01 May 2016 04:28:29 +0000 Subject: [issue26896] mix-up with the terms 'importer', 'finder', 'loader' in the import system and related code In-Reply-To: <1462046496.61.0.778323150916.issue26896@psf.upfronthosting.co.za> Message-ID: <1462076909.62.0.948288665698.issue26896@psf.upfronthosting.co.za> Changes by Berker Peksag : ---------- nosy: +brett.cannon stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 00:32:17 2016 From: report at bugs.python.org (Yclept Nemo) Date: Sun, 01 May 2016 04:32:17 +0000 Subject: [issue26897] Clarify Popen stdin, stdout, stderr Message-ID: <1462077137.11.0.0338937138998.issue26897@psf.upfronthosting.co.za> New submission from Yclept Nemo: From: https://docs.python.org/dev/library/subprocess.html#popen-constructor "..., an existing file descriptor (a positive integer), an existing file object, and None." It should be made clear that the file object must be backed by an operating system file, i.e. must have a valid file descriptor. As it stands, the documentation suggests implicit concurrency: that any file object can be used, and on read/write from the subprocess/OS arbitrary python code will be executed, i.e. the python interpreter is pre-empted or python spawns a hidden I/O thread. Anyway, I'm pretty sure subprocess.Popen() just redirects the forked process' stdout/stdin/stderr to the file descriptors from the provided file object. ---------- assignee: docs at python components: Documentation messages: 264579 nosy: Yclept.Nemo, docs at python priority: normal severity: normal status: open title: Clarify Popen stdin, stdout, stderr versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 00:45:35 2016 From: report at bugs.python.org (Berker Peksag) Date: Sun, 01 May 2016 04:45:35 +0000 Subject: [issue26896] mix-up with the terms 'importer', 'finder', 'loader' in the import system and related code In-Reply-To: <1462046496.61.0.778323150916.issue26896@psf.upfronthosting.co.za> Message-ID: <1462077935.26.0.440121029242.issue26896@psf.upfronthosting.co.za> Berker Peksag added the comment: Thanks for the patch. I left two review comments about unused variables on Rietveld. ---------- nosy: +berker.peksag _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 02:07:05 2016 From: report at bugs.python.org (Roundup Robot) Date: Sun, 01 May 2016 06:07:05 +0000 Subject: [issue23960] PyErr_SetImportError doesn't clean up on some errors In-Reply-To: <1429053168.87.0.990858167954.issue23960@psf.upfronthosting.co.za> Message-ID: <20160501060701.84637.84336.D8439DC3@psf.io> Roundup Robot added the comment: New changeset 5871b48f4c2e by Berker Peksag in branch '3.5': Issue #23960: Cleanup args and kwargs on error in PyErr_SetImportError https://hg.python.org/cpython/rev/5871b48f4c2e New changeset 94471357db08 by Berker Peksag in branch 'default': Issue #23960: Cleanup args and kwargs on error in PyErr_SetImportError https://hg.python.org/cpython/rev/94471357db08 ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 02:07:28 2016 From: report at bugs.python.org (Berker Peksag) Date: Sun, 01 May 2016 06:07:28 +0000 Subject: [issue23960] PyErr_SetImportError doesn't clean up on some errors In-Reply-To: <1429053168.87.0.990858167954.issue23960@psf.upfronthosting.co.za> Message-ID: <1462082848.93.0.390659559266.issue23960@psf.upfronthosting.co.za> Berker Peksag added the comment: Thanks! ---------- resolution: -> fixed stage: commit review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 02:55:08 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Sun, 01 May 2016 06:55:08 +0000 Subject: [issue26849] android does not support versioning in SONAME In-Reply-To: <1461662690.12.0.966004358302.issue26849@psf.upfronthosting.co.za> Message-ID: <1462085708.13.0.219036733213.issue26849@psf.upfronthosting.co.za> Xavier de Gaye added the comment: Python builds and runs fine on android without this patch. I cannot reproduce the 'Fatal Python error: PyThreadState_Get: no current thread' abort either. Closing the issue. ---------- resolution: -> works for me status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 03:08:58 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Sun, 01 May 2016 07:08:58 +0000 Subject: [issue26884] cross-compilation of extension module links to the wrong python library In-Reply-To: <1461925930.98.0.579147295527.issue26884@psf.upfronthosting.co.za> Message-ID: <1462086538.8.0.785834058647.issue26884@psf.upfronthosting.co.za> Changes by Xavier de Gaye : ---------- nosy: +dstufft, eric.araujo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 03:11:18 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Sun, 01 May 2016 07:11:18 +0000 Subject: [issue26851] android compilation and link flags In-Reply-To: <1461673211.54.0.945034926098.issue26851@psf.upfronthosting.co.za> Message-ID: <1462086678.62.0.81204214601.issue26851@psf.upfronthosting.co.za> Changes by Xavier de Gaye : ---------- nosy: +twouters _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 03:12:24 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Sun, 01 May 2016 07:12:24 +0000 Subject: [issue26852] add a COMPILEALL_FLAGS Makefile variable In-Reply-To: <1461674611.23.0.732409522866.issue26852@psf.upfronthosting.co.za> Message-ID: <1462086744.46.0.287144075561.issue26852@psf.upfronthosting.co.za> Changes by Xavier de Gaye : ---------- nosy: +twouters _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 03:15:08 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Sun, 01 May 2016 07:15:08 +0000 Subject: [issue26858] setting SO_REUSEPORT fails on android In-Reply-To: <1461677842.81.0.574068471289.issue26858@psf.upfronthosting.co.za> Message-ID: <1462086908.32.0.919581397404.issue26858@psf.upfronthosting.co.za> Changes by Xavier de Gaye : ---------- nosy: +giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 03:40:10 2016 From: report at bugs.python.org (Berker Peksag) Date: Sun, 01 May 2016 07:40:10 +0000 Subject: [issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet) In-Reply-To: <1453293464.25.0.570690037157.issue26163@psf.upfronthosting.co.za> Message-ID: <1462088410.11.0.698449494124.issue26163@psf.upfronthosting.co.za> Berker Peksag added the comment: I just saw the same failure on s390x RHEL 3.x: http://buildbot.python.org/all/builders/s390x%20RHEL%203.x/builds/1004/steps/test/logs/stdio ====================================================================== FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_set.py", line 738, in test_hash_effectiveness self.assertGreater(4*u, t) AssertionError: 124 not greater than 128 ====================================================================== FAIL: test_hash_effectiveness (test.test_set.TestFrozenSetSubclass) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_set.py", line 738, in test_hash_effectiveness self.assertGreater(4*u, t) AssertionError: 124 not greater than 128 It looks like the failed assert was added in 1d0038dbd8f8. ---------- nosy: +berker.peksag, rhettinger resolution: out of date -> status: closed -> open type: -> behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 04:06:17 2016 From: report at bugs.python.org (Marco Buttu) Date: Sun, 01 May 2016 08:06:17 +0000 Subject: [issue26898] Error in the Message-ID: <1462089977.93.0.233622268862.issue26898@psf.upfronthosting.co.za> New submission from Marco Buttu: The math.isclose() documentation reports is_close() as function name, instead of isclose(): >>> import math >>> math.isclose.__doc__[:45] 'is_close(a, b, *, rel_tol=1e-09, abs_tol=0.0)' ---------- assignee: docs at python components: Documentation files: isclose.patch keywords: patch messages: 264585 nosy: docs at python, marco.buttu priority: normal severity: normal status: open title: Error in the versions: Python 3.5, Python 3.6 Added file: http://bugs.python.org/file42669/isclose.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 04:12:06 2016 From: report at bugs.python.org (SilentGhost) Date: Sun, 01 May 2016 08:12:06 +0000 Subject: [issue26898] Error in the In-Reply-To: <1462089977.93.0.233622268862.issue26898@psf.upfronthosting.co.za> Message-ID: <1462090326.69.0.246729700834.issue26898@psf.upfronthosting.co.za> SilentGhost added the comment: LGTM ---------- nosy: +SilentGhost stage: -> commit review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 04:27:56 2016 From: report at bugs.python.org (Marco Buttu) Date: Sun, 01 May 2016 08:27:56 +0000 Subject: [issue26898] Typo in the documentation of math.isclose() In-Reply-To: <1462089977.93.0.233622268862.issue26898@psf.upfronthosting.co.za> Message-ID: <1462091276.89.0.436841558101.issue26898@psf.upfronthosting.co.za> Changes by Marco Buttu : ---------- title: Error in the -> Typo in the documentation of math.isclose() _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 04:28:43 2016 From: report at bugs.python.org (Roundup Robot) Date: Sun, 01 May 2016 08:28:43 +0000 Subject: [issue26898] Typo in the documentation of math.isclose() In-Reply-To: <1462089977.93.0.233622268862.issue26898@psf.upfronthosting.co.za> Message-ID: <20160501082840.21665.49432.C2902BFB@psf.io> Roundup Robot added the comment: New changeset 469bc90e8922 by Berker Peksag in branch '3.5': Issue #26898: Fix typo in math.isclose() docstring https://hg.python.org/cpython/rev/469bc90e8922 New changeset 634764b4675c by Berker Peksag in branch 'default': Issue #26898: Fix typo in math.isclose() docstring https://hg.python.org/cpython/rev/634764b4675c ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 04:29:55 2016 From: report at bugs.python.org (Berker Peksag) Date: Sun, 01 May 2016 08:29:55 +0000 Subject: [issue26898] Typo in the documentation of math.isclose() In-Reply-To: <1462089977.93.0.233622268862.issue26898@psf.upfronthosting.co.za> Message-ID: <1462091395.36.0.181804017555.issue26898@psf.upfronthosting.co.za> Berker Peksag added the comment: Thanks! ---------- nosy: +berker.peksag resolution: -> fixed stage: commit review -> resolved status: open -> closed type: -> behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 04:51:28 2016 From: report at bugs.python.org (Ronald Oussoren) Date: Sun, 01 May 2016 08:51:28 +0000 Subject: [issue26711] Fix comparison of plistlib.Data In-Reply-To: <1460059602.28.0.307914137302.issue26711@psf.upfronthosting.co.za> Message-ID: <1462092688.04.0.105485840829.issue26711@psf.upfronthosting.co.za> Ronald Oussoren added the comment: Serhiy, I slightly prefer the second patch, but either one would be fine. The reason I asked about explicitly calling __eq__ is that this is an uncommon pattern (at least for me). Ronald ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 06:09:35 2016 From: report at bugs.python.org (Paul Sokolovsky) Date: Sun, 01 May 2016 10:09:35 +0000 Subject: [issue26899] struct.pack_into(), struct.unpack_from() don't document support for negative offsets Message-ID: <1462097375.63.0.546095370218.issue26899@psf.upfronthosting.co.za> New submission from Paul Sokolovsky: See https://docs.python.org/3/library/struct.html#struct.pack_into https://docs.python.org/3/library/struct.html#struct.unpack_from Actual source contains code like: if (offset < 0) offset += vbuf.len; to allow specify offsets from the end of a buffer. ---------- assignee: docs at python components: Documentation messages: 264590 nosy: docs at python, pfalcon priority: normal severity: normal status: open title: struct.pack_into(), struct.unpack_from() don't document support for negative offsets versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 06:17:54 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 10:17:54 +0000 Subject: [issue26900] Exclude the private API from the stable API Message-ID: <1462097873.28.0.0706601779139.issue26900@psf.upfronthosting.co.za> New submission from Serhiy Storchaka: Proposed patch excludes the private API from the stable API. This includes: _Py_Identifier-related API (other _Py_Identifier-related functions are already excluded): struct _Py_Identifier; #define _Py_static_string_init(value) #define _Py_static_string(varname, value) #define _Py_IDENTIFIER(varname) PyAPI_FUNC(PyObject*) _PyUnicode_FromId(_Py_Identifier*); PyAPI_FUNC(PyObject *) _PyObject_GetAttrId(PyObject *, struct _Py_Identifier *); PyAPI_FUNC(int) _PyObject_SetAttrId(PyObject *, struct _Py_Identifier *, PyObject *); PyAPI_FUNC(int) _PyObject_HasAttrId(PyObject *, struct _Py_Identifier *); PyAPI_FUNC(PyObject *) _PyObject_CallMethodId(PyObject *o, _Py_Identifier *method, const char *format, ...); PyAPI_FUNC(PyObject *) _PyObject_CallMethodId_SizeT(PyObject *o, _Py_Identifier *name, const char *format, ...); PyAPI_FUNC(PyObject *) _PyObject_CallMethodIdObjArgs(PyObject *o, struct _Py_Identifier *method, ...); PyAPI_FUNC(PyObject *) _PyDict_GetItemIdWithError(PyObject *dp, struct _Py_Identifier *key); PyAPI_FUNC(PyObject *) _PyDict_GetItemId(PyObject *dp, struct _Py_Identifier *key); PyAPI_FUNC(int) _PyDict_SetItemId(PyObject *dp, struct _Py_Identifier *key, PyObject *item); PyAPI_FUNC(PyObject *) _PySys_GetObjectId(_Py_Identifier *key); File helpers that hides OS-specific details and handle EINTR: PyAPI_FUNC(PyObject *) _Py_device_encoding(int); PyAPI_FUNC(FILE *) _Py_wfopen(const wchar_t *path, const wchar_t *mode); PyAPI_FUNC(FILE*) _Py_fopen(const char *pathname, const char *mode); PyAPI_FUNC(FILE*) _Py_fopen_obj(PyObject *path, const char *mode); PyAPI_FUNC(Py_ssize_t) _Py_read(int fd, void *buf, size_t count); PyAPI_FUNC(Py_ssize_t) _Py_write(int fd, const void *buf, size_t count); PyAPI_FUNC(Py_ssize_t) _Py_write_noraise(int fd, const void *buf, size_t count); PyAPI_FUNC(int) _Py_wreadlink(const wchar_t *path, wchar_t *buf, size_t bufsiz); PyAPI_FUNC(wchar_t*) _Py_wrealpath(const wchar_t *path, wchar_t *resolved_path, size_t resolved_path_size); PyAPI_FUNC(wchar_t*) _Py_wgetcwd(wchar_t *buf, size_t size); Other OS functions: PyAPI_FUNC(int) _PyOS_IsMainThread(void); PyAPI_FUNC(void*) _PyOS_SigintEvent(void); PyAPI_FUNC(int) _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring); PyAPI_FUNC(int) _PyOS_URandom(void *buffer, Py_ssize_t size); Old helpers kept for binary compatibility of extensions built before 3.2.4: PyAPI_FUNC(void) _PyTrash_deposit_object(PyObject*); PyAPI_FUNC(void) _PyTrash_destroy_chain(void); PyAPI_DATA(int) _PyTrash_delete_nesting; PyAPI_DATA(PyObject *) _PyTrash_delete_later; And other functions and data: PyAPI_DATA(PyTypeObject) _PyNone_Type; PyAPI_DATA(PyTypeObject) _PyNotImplemented_Type; PyAPI_DATA(PyTypeObject) _PyMethodWrapper_Type; PyAPI_DATA(int) _Py_SwappedOp[]; PyAPI_FUNC(Py_ssize_t) _Py_GetAllocatedBlocks(void); PyAPI_FUNC(PyObject *) _PyObject_GC_Malloc(size_t size); PyAPI_FUNC(PyObject *) _PyObject_GC_Calloc(size_t size); PyAPI_FUNC(int) _PyObject_IsAbstract(PyObject *); PyAPI_FUNC(PyObject*) _Py_strhex(const char* argbuf, const Py_ssize_t arglen); PyAPI_FUNC(PyObject*) _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen); PyAPI_FUNC(void) _Py_add_one_to_index_F(int nd, Py_ssize_t *index, const Py_ssize_t *shape); PyAPI_FUNC(void) _Py_add_one_to_index_C(int nd, Py_ssize_t *index, const Py_ssize_t *shape); PyAPI_DATA(PyTypeObject) _PyNamespace_Type; PyAPI_FUNC(PyObject *) _PyNamespace_New(PyObject *kwds); PyAPI_FUNC(int) _PyOS_IsMainThread(void); PyAPI_FUNC(void*) _PyOS_SigintEvent(void); PyAPI_FUNC(int) _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring); PyAPI_FUNC(int) _PyOS_URandom(void *buffer, Py_ssize_t size); PyAPI_FUNC(int) _PyState_AddModule(PyObject*, struct PyModuleDef*); PyAPI_FUNC(PyThreadState *) _PyThreadState_Prealloc(PyInterpreterState *); PyAPI_FUNC(void) _PyThreadState_Init(PyThreadState *); PyAPI_FUNC(void) _PyThreadState_DeleteExcept(PyThreadState *tstate); PyAPI_FUNC(void) _PyGILState_Reinit(void); PyAPI_FUNC(PyThreadState *) _PyThreadState_UncheckedGet(void); PyAPI_FUNC(void) _PyUnicode_ClearStaticStrings(void); PyAPI_FUNC(int) _PyUnicode_EQ(PyObject *, PyObject *); PyAPI_FUNC(void) _Py_DumpTraceback(int fd, PyThreadState *tstate); PyAPI_FUNC(const char*) _Py_DumpTracebackThreads(int fd, PyInterpreterState *interp, PyThreadState *current_tstate); PyAPI_FUNC(void) _PyImportZip_Init(void); PyAPI_FUNC(PyObject *) _PyLong_GCD(PyObject *, PyObject *); All these names are not documented (except _PyObject_GC_Calloc accidentally mentioned in What's New in 3.5) and are not used implicitly in macros (except _PyObject_CallMethodId_SizeT used in _PyObject_CallMethodId). Many of these functions were added after implementing PEP 384 and changed its signature during its lifetime. They are not explicitly exclude from the stable API only by accident. ---------- components: Interpreter Core files: private_limited_api.diff keywords: patch messages: 264591 nosy: haypo, loewis, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Exclude the private API from the stable API type: enhancement versions: Python 3.6 Added file: http://bugs.python.org/file42670/private_limited_api.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 06:37:09 2016 From: report at bugs.python.org (Roundup Robot) Date: Sun, 01 May 2016 10:37:09 +0000 Subject: [issue26711] Fix comparison of plistlib.Data In-Reply-To: <1460059602.28.0.307914137302.issue26711@psf.upfronthosting.co.za> Message-ID: <20160501103705.39154.80325.91A2328A@psf.io> Roundup Robot added the comment: New changeset 41afb83cffac by Serhiy Storchaka in branch '3.5': Issue #26711: Fixed the comparison of plistlib.Data with other types. https://hg.python.org/cpython/rev/41afb83cffac New changeset dbdd5bc4df99 by Serhiy Storchaka in branch 'default': Issue #26711: Fixed the comparison of plistlib.Data with other types. https://hg.python.org/cpython/rev/dbdd5bc4df99 ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 06:46:01 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 10:46:01 +0000 Subject: [issue26711] Fix comparison of plistlib.Data In-Reply-To: <1460059602.28.0.307914137302.issue26711@psf.upfronthosting.co.za> Message-ID: <1462099561.33.0.69513827582.issue26711@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: For simplicity I left "==" and fixed only obvious bug. ---------- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 08:04:37 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 12:04:37 +0000 Subject: [issue26900] Exclude the private API from the stable API In-Reply-To: <1462097873.28.0.0706601779139.issue26900@psf.upfronthosting.co.za> Message-ID: <1462104277.76.0.466099351707.issue26900@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Added PyAPI_FUNC(PyObject *) _PyObject_GenericGetAttrWithDict(PyObject *, PyObject *, PyObject *); PyAPI_FUNC(int) _PyObject_GenericSetAttrWithDict(PyObject *, PyObject *, PyObject *, PyObject *); PyAPI_FUNC(int) _Py_fstat(int fd, struct _Py_stat_struct *status); PyAPI_FUNC(void) _PyEval_FiniThreads(void); ---------- Added file: http://bugs.python.org/file42671/private_limited_api.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 08:04:47 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 12:04:47 +0000 Subject: [issue26900] Exclude the private API from the stable API In-Reply-To: <1462097873.28.0.0706601779139.issue26900@psf.upfronthosting.co.za> Message-ID: <1462104287.52.0.361674978989.issue26900@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file42670/private_limited_api.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 09:20:07 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 13:20:07 +0000 Subject: [issue26901] Argument Clinic test is broken Message-ID: <1462108807.42.0.528462387786.issue26901@psf.upfronthosting.co.za> New submission from Serhiy Storchaka: $ ./python Tools/clinic/clinic_test.py Error: Destination does not exist: 'file' It works in 3.4. ---------- components: Argument Clinic, Tests messages: 264595 nosy: larry, serhiy.storchaka priority: high severity: normal status: open title: Argument Clinic test is broken type: behavior versions: Python 3.5, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 09:29:11 2016 From: report at bugs.python.org (Berker Peksag) Date: Sun, 01 May 2016 13:29:11 +0000 Subject: [issue21367] multiprocessing.JoinableQueue requires new kwarg In-Reply-To: <1398618734.12.0.810845662855.issue21367@psf.upfronthosting.co.za> Message-ID: <1462109351.34.0.0898074353235.issue21367@psf.upfronthosting.co.za> Changes by Berker Peksag : ---------- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Cryptic error when subclassing multiprocessing classes _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 09:53:50 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 13:53:50 +0000 Subject: [issue23867] Argument Clinic: inline parsing code for 1-argument functions In-Reply-To: <1428157476.28.0.0922120616231.issue23867@psf.upfronthosting.co.za> Message-ID: <1462110830.7.0.863690295228.issue23867@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Synchronized with tip. ---------- versions: +Python 3.6 -Python 3.5 Added file: http://bugs.python.org/file42672/clinic_meth_o_inline.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 09:59:22 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 13:59:22 +0000 Subject: [issue26305] Make Argument Clinic to generate PEP 7 conforming code In-Reply-To: <1454929711.55.0.893733572519.issue26305@psf.upfronthosting.co.za> Message-ID: <1462111162.42.0.987214527459.issue26305@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: The only thing that disturbs me is that some templates need duplicating braces, and others need quadrupling braces. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 10:24:46 2016 From: report at bugs.python.org (Meador Inge) Date: Sun, 01 May 2016 14:24:46 +0000 Subject: [issue26305] Make Argument Clinic to generate PEP 7 conforming code In-Reply-To: <1454929711.55.0.893733572519.issue26305@psf.upfronthosting.co.za> Message-ID: <1462112686.2.0.957551406476.issue26305@psf.upfronthosting.co.za> Meador Inge added the comment: LGTM. I agree that the extra braces are a little gross, but nothing immediately comes to mind as how to make that better. ---------- nosy: +meador.inge _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 11:36:39 2016 From: report at bugs.python.org (Gabriel Mesquita Cangussu) Date: Sun, 01 May 2016 15:36:39 +0000 Subject: [issue26832] ProactorEventLoop doesn't support stdin/stdout nor files with connect_read_pipe/connect_write_pipe In-Reply-To: <1461383150.45.0.258316694453.issue26832@psf.upfronthosting.co.za> Message-ID: <1462116999.4.0.765337419474.issue26832@psf.upfronthosting.co.za> Gabriel Mesquita Cangussu added the comment: Terry, About your question, "Isn't there some other way to asynchronously read/file files, as opposed to sockets and pipes, on Windows?", that is exactly the problem I was trying to overcome, specifically for reading the stdin. On my research I found both this stackoverflow questions with no valid answers: http://stackoverflow.com/questions/31510190/aysncio-cannot-read-stdin-on-windows http://stackoverflow.com/questions/31511563/file-to-socket-adapter-in-python And I understood that 'pipe' wouldn't mean a 'file', but why can't I use 'sys.stdin' with 'ProactorEventLoop.connect_read_pipe()', can't 'sys.stdin' be a pipe on Windows like it can on Posix? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 13:05:00 2016 From: report at bugs.python.org (Roundup Robot) Date: Sun, 01 May 2016 17:05:00 +0000 Subject: [issue26893] ValueError exception raised when using IntEnum with an attribute called "name" and @unique decorator In-Reply-To: <1462019726.06.0.0957572026567.issue26893@psf.upfronthosting.co.za> Message-ID: <20160501170455.21687.44033.16644642@psf.io> Roundup Robot added the comment: New changeset 1b6581bae5a1 by Ethan Furman in branch '3.5': issue26893: use mro() to examine class heirarchy https://hg.python.org/cpython/rev/1b6581bae5a1 New changeset 7188de6b50ab by Ethan Furman in branch 'default': issue26893: use mro() to examine class heirarchy https://hg.python.org/cpython/rev/7188de6b50ab ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 13:34:25 2016 From: report at bugs.python.org (Roundup Robot) Date: Sun, 01 May 2016 17:34:25 +0000 Subject: [issue26874] Docstring error in divmod function In-Reply-To: <1461859730.5.0.461826994455.issue26874@psf.upfronthosting.co.za> Message-ID: <20160501173422.10030.40759.61A1DCB7@psf.io> Roundup Robot added the comment: New changeset 84ff79cce41e by Serhiy Storchaka in branch '3.5': Regenerate Argument Clinic code for issue #26874. https://hg.python.org/cpython/rev/84ff79cce41e New changeset 98678738b7e9 by Serhiy Storchaka in branch 'default': Regenerate Argument Clinic code for issue #26874. https://hg.python.org/cpython/rev/98678738b7e9 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 13:36:54 2016 From: report at bugs.python.org (Guido van Rossum) Date: Sun, 01 May 2016 17:36:54 +0000 Subject: [issue26858] setting SO_REUSEPORT fails on android In-Reply-To: <1461677842.81.0.574068471289.issue26858@psf.upfronthosting.co.za> Message-ID: <1462124214.76.0.530923621629.issue26858@psf.upfronthosting.co.za> Guido van Rossum added the comment: Where is the patch that adds android_ver()? At the very least that should be listed as a dependency here. I don't very much like to have changes to asyncio that can only work in Python 3.6; there's still an upstream version (https://github.com/python/asyncio) that is used to do PyPI releases of asyncio for Python 3.3. I try to keep that in sync with the stdlib on all platforms, otherwise figuring out whether any changes need to be packported is a nightmare. You might also update the comment somewhere that currently states that reuse_port is not supported on Windows. PS. It amuses me that each platform apparently has a different way to check (there are three different types of platform checks in the lines you change). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 13:38:13 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 17:38:13 +0000 Subject: [issue26305] Make Argument Clinic to generate PEP 7 conforming code In-Reply-To: <1454929711.55.0.893733572519.issue26305@psf.upfronthosting.co.za> Message-ID: <1462124293.15.0.603667345378.issue26305@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: The problem was that I didn't know wherever all braces repeated correct times. Actually they were not used correctly in NoneType_return_converter, but since this converter is not used in current sources, this error left unnoticed. New patch escapes generated strings that can contain braces before substituting them in the template for format(). This allows to decrease the braces repetition number to minimal value. Now there is no need to quadruple them. ---------- Added file: http://bugs.python.org/file42673/clinic_pep7_braces2.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 13:54:13 2016 From: report at bugs.python.org (Demur Rumed) Date: Sun, 01 May 2016 17:54:13 +0000 Subject: [issue26647] ceval: use Wordcode, 16-bit bytecode In-Reply-To: <1459034868.93.0.159802163565.issue26647@psf.upfronthosting.co.za> Message-ID: <1462125253.84.0.119732116785.issue26647@psf.upfronthosting.co.za> Demur Rumed added the comment: I should mention a change in dis which hasn't come up for the sake of explicit discussion: I modified dis to not print EXTENDED_ARG. Instead one can tell by the byte indices having a hole (since they uniformly count up by 2 otherwise) & the argument value being greater than 255 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 14:18:35 2016 From: report at bugs.python.org (Chi Hsuan Yen) Date: Sun, 01 May 2016 18:18:35 +0000 Subject: [issue26858] setting SO_REUSEPORT fails on android In-Reply-To: <1461677842.81.0.574068471289.issue26858@psf.upfronthosting.co.za> Message-ID: <1462126715.85.0.137901751894.issue26858@psf.upfronthosting.co.za> Chi Hsuan Yen added the comment: > Where is the patch that adds android_ver()? http://bugs.python.org/issue26855 Xavier de Gaye's implementation is buggy while works for most cases. ---------- nosy: +Chi Hsuan Yen _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 14:45:28 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 18:45:28 +0000 Subject: [issue26902] Argument Clinic incorrectly work with custom converter and renamed parameter Message-ID: <1462128328.67.0.613776590116.issue26902@psf.upfronthosting.co.za> New submission from Serhiy Storchaka: Argument Clinic uses original name of Python parameter in generated code for custom (format code "O&") converter even if the parameter was renamed. Example: /*[clinic input] test filename as path: object(converter="PyUnicode_FSConverter") / [clinic start generated code]*/ Generated code: static PyObject * test(PyModuleDef *module, PyObject *arg) { PyObject *return_value = NULL; PyObject *path; if (!PyUnicode_FSConverter(arg, &filename)) goto exit; return_value = test_impl(module, path); exit: return return_value; } ---------- components: Argument Clinic messages: 264606 nosy: larry, serhiy.storchaka priority: normal severity: normal status: open title: Argument Clinic incorrectly work with custom converter and renamed parameter type: behavior versions: Python 3.5, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 14:47:29 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 18:47:29 +0000 Subject: [issue26902] Argument Clinic incorrectly work with custom converter and renamed parameter In-Reply-To: <1462128328.67.0.613776590116.issue26902@psf.upfronthosting.co.za> Message-ID: <1462128449.7.0.743044586784.issue26902@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file42674/issue26902_sample.c _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 14:49:00 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 18:49:00 +0000 Subject: [issue23867] Argument Clinic: inline parsing code for 1-argument functions In-Reply-To: <1428157476.28.0.0922120616231.issue23867@psf.upfronthosting.co.za> Message-ID: <1462128540.16.0.115339668559.issue23867@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- dependencies: +Argument Clinic incorrectly work with custom converter and renamed parameter, Make Argument Clinic to generate PEP 7 conforming code _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 14:49:25 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 01 May 2016 18:49:25 +0000 Subject: [issue26902] Argument Clinic incorrectly works with custom converter and renamed parameter In-Reply-To: <1462128328.67.0.613776590116.issue26902@psf.upfronthosting.co.za> Message-ID: <1462128565.74.0.657783975179.issue26902@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- title: Argument Clinic incorrectly work with custom converter and renamed parameter -> Argument Clinic incorrectly works with custom converter and renamed parameter _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 15:33:26 2016 From: report at bugs.python.org (Zachary Ware) Date: Sun, 01 May 2016 19:33:26 +0000 Subject: [issue26874] Docstring error in divmod function In-Reply-To: <1461859730.5.0.461826994455.issue26874@psf.upfronthosting.co.za> Message-ID: <1462131206.15.0.317706889775.issue26874@psf.upfronthosting.co.za> Zachary Ware added the comment: Forgot that step, thanks Serhiy! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 16:45:38 2016 From: report at bugs.python.org (Diogo Pereira) Date: Sun, 01 May 2016 20:45:38 +0000 Subject: [issue26903] ProcessPoolExecutor(max_workers=64) crashes on Windows Message-ID: <1462135538.41.0.857077084248.issue26903@psf.upfronthosting.co.za> New submission from Diogo Pereira: I'm using Python 3.5.1 x86-64 on Windows Server 2008 R2. Trying to run the ProcessPoolExecutor example [1] generates this exception: Exception in thread Thread-1: Traceback (most recent call last): File "C:\Program Files\Python35\lib\threading.py", line 914, in _bootstrap_inner self.run() File "C:\Program Files\Python35\lib\threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "C:\Program Files\Python35\lib\concurrent\futures\process.py", line 270, in _queue_management_worker ready = wait([reader] + sentinels) File "C:\Program Files\Python35\lib\multiprocessing\connection.py", line 859, in wait ready_handles = _exhaustive_wait(waithandle_to_obj.keys(), timeout) File "C:\Program Files\Python35\lib\multiprocessing\connection.py", line 791, in _exhaustive_wait res = _winapi.WaitForMultipleObjects(L, False, timeout) ValueError: need at most 63 handles, got a sequence of length 64 The problem seems to be related to the value of the Windows constant MAXIMUM_WAIT_OBJECTS (see [2]), which is 64. This machine has 64 logical cores, so ProcessPoolExecutor defaults to 64 workers. Lowering max_workers to 63 or 62 still results in the same exception, but max_workers=61 works fine. [1] https://docs.python.org/3.5/library/concurrent.futures.html#processpoolexecutor-example [2] https://hg.python.org/cpython/file/80d1faa9735d/Modules/_winapi.c#l1339 ---------- components: Windows messages: 264608 nosy: diogocp, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: ProcessPoolExecutor(max_workers=64) crashes on Windows versions: Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 17:18:25 2016 From: report at bugs.python.org (ppperry) Date: Sun, 01 May 2016 21:18:25 +0000 Subject: [issue10850] inconsistent behavior concerning multiprocessing.manager.BaseManager._Server In-Reply-To: <1294360374.53.0.588595674921.issue10850@psf.upfronthosting.co.za> Message-ID: <1462137505.94.0.928677241455.issue10850@psf.upfronthosting.co.za> ppperry added the comment: You're working with non-documented internal components of the python standard library with names that start with an underscore. I think that this is not a bug in python, but instead a consequence of mucking with internals that weren't designed to be mucked with. ---------- nosy: +ppperry _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 17:39:28 2016 From: report at bugs.python.org (STINNER Victor) Date: Sun, 01 May 2016 21:39:28 +0000 Subject: [issue26647] ceval: use Wordcode, 16-bit bytecode In-Reply-To: <1462125253.84.0.119732116785.issue26647@psf.upfronthosting.co.za> Message-ID: STINNER Victor added the comment: Oh, I dislike the dis change. Please keep the current behaviour and open an issue to enhance the dis module. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 17:48:00 2016 From: report at bugs.python.org (Anthony Sottile) Date: Sun, 01 May 2016 21:48:00 +0000 Subject: [issue26704] unittest.mock.patch: Double patching instance method: AttributeError: Mock object has no attribute '__name__' In-Reply-To: <1459972886.32.0.234738617564.issue26704@psf.upfronthosting.co.za> Message-ID: <1462139280.72.0.391749792346.issue26704@psf.upfronthosting.co.za> Anthony Sottile added the comment: Seems I've named the patchfile incorrectly -- Hopefully this is correct this time? ---------- keywords: +patch nosy: +Anthony Sottile Added file: http://bugs.python.org/file42675/2.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 18:45:25 2016 From: report at bugs.python.org (Nathan Williams) Date: Sun, 01 May 2016 22:45:25 +0000 Subject: [issue26873] xmlrpclib raises when trying to convert an int to string when unicode is available In-Reply-To: <1461808162.86.0.277160090083.issue26873@psf.upfronthosting.co.za> Message-ID: <1462142725.08.0.605337618891.issue26873@psf.upfronthosting.co.za> Nathan Williams added the comment: Serhiy, that workaround worked for my needs, thanks. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 22:41:28 2016 From: report at bugs.python.org (Zachary Ware) Date: Mon, 02 May 2016 02:41:28 +0000 Subject: [issue26900] Exclude the private API from the stable API In-Reply-To: <1462097873.28.0.0706601779139.issue26900@psf.upfronthosting.co.za> Message-ID: <1462156888.53.0.85515714324.issue26900@psf.upfronthosting.co.za> Zachary Ware added the comment: #23903 is closely related, but I haven't made it back to that one in some time. ---------- nosy: +zach.ware _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 22:42:44 2016 From: report at bugs.python.org (Zachary Ware) Date: Mon, 02 May 2016 02:42:44 +0000 Subject: [issue23903] Generate PC/python3.def by scraping headers In-Reply-To: <1428637761.13.0.348463350169.issue23903@psf.upfronthosting.co.za> Message-ID: <1462156964.36.0.282845493794.issue23903@psf.upfronthosting.co.za> Zachary Ware added the comment: Unassigning since I haven't made it anywhere with this in a year; if anybody else would like to pick it up, feel free. Otherwise I'll get to it some day :) ---------- assignee: zach.ware -> versions: +Python 3.6 -Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 23:12:06 2016 From: report at bugs.python.org (Zachary Ware) Date: Mon, 02 May 2016 03:12:06 +0000 Subject: [issue26901] Argument Clinic test is broken In-Reply-To: <1462108807.42.0.528462387786.issue26901@psf.upfronthosting.co.za> Message-ID: <1462158726.86.0.532369592698.issue26901@psf.upfronthosting.co.za> Zachary Ware added the comment: The clinic tests should probably be integrated into the regrtest suite, since clinic is integrated into the build process. ---------- nosy: +zach.ware _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun May 1 23:15:13 2016 From: report at bugs.python.org (Larry Hastings) Date: Mon, 02 May 2016 03:15:13 +0000 Subject: [issue26901] Argument Clinic test is broken In-Reply-To: <1462108807.42.0.528462387786.issue26901@psf.upfronthosting.co.za> Message-ID: <1462158913.93.0.585552061016.issue26901@psf.upfronthosting.co.za> Larry Hastings added the comment: I will admit that even during development I rarely used Clinic's test suite. My test suite is: make a change, then run Clinic over all of CPython and do a diff. If nothing changed then Clinic is still working. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 00:21:20 2016 From: report at bugs.python.org (Martin Panter) Date: Mon, 02 May 2016 04:21:20 +0000 Subject: [issue26894] Readline not aborting line edition on sigint In-Reply-To: <1462027506.98.0.545203031593.issue26894@psf.upfronthosting.co.za> Message-ID: <1462162880.87.0.269699830548.issue26894@psf.upfronthosting.co.za> Martin Panter added the comment: What happens instead of aborting the line at step 3? Is Ctrl+C completely ignored, as if you didn?t press it? Perhaps matplotlib is interfering with Python?s SIGINT handler and/or PyOS_InputHook(). Can you eliminate ipython from the equation? I.e. does the problem happen with the built-in Python interactive interpreter? Or with a simple script like the following: import readline import matplotlib # Or whatever is needed to trigger it while True: input("PROMPT ") ---------- nosy: +martin.panter _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 00:29:13 2016 From: report at bugs.python.org (Michael Cuthbert) Date: Mon, 02 May 2016 04:29:13 +0000 Subject: [issue26904] Difflib quick_ratio() could use Counter() Message-ID: <1462163353.47.0.300392305122.issue26904@psf.upfronthosting.co.za> New submission from Michael Cuthbert: The implementation used in difflib.SequenceMatcher().quick_ratio() counts how often each member of the sequence (character, list entry, etc.) appears in order to calculate its lower bound. Counting how often an entry appears in an iterable has been sped up in cPython w/ the _count_elements() c function in _collections. This patch uses the collections uses collections.Counter() as a way of getting this speedup (and any future speedups in cPython or other implementations); code is somewhat simplified also. Performance: There is a slight overhead to creating two collections.Counter() objects rather than simple dicts. On two Mac systems (Python 3.5 on stock Macbook Air, and Py 3.6a0 latest on recent Mac Pro) the new implementation passes the speed of the previous when the length of the iterable is around 60 items. As the number of items increases, the performance gains increase significantly. By 400 items, the new implementation's speed is about 3x the old, and seems to approach 3.6x asymptotically. Below 60 items, the older implementation is faster; reaching a max of 8x the speed of the new when comparing a string of one element against a string of one element. (The degenerate case of comparing one or two empty iterables is checked for in this implementation and is thus faster than the old implementation). I believe that users using quick_ratio() are more likely to be looking for speed improvements on larger Like the previous implementation, the count of the items in seq2 (self.b) is cached; if run again, it is about 41% faster (compared to 47% faster before). This is my first patch submission, so any suggestions would be appreciated. ---------- components: Library (Lib) files: difflib_quick_ratio.patch keywords: patch messages: 264618 nosy: Michael Cuthbert priority: normal severity: normal status: open title: Difflib quick_ratio() could use Counter() type: performance versions: Python 3.6 Added file: http://bugs.python.org/file42676/difflib_quick_ratio.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 01:14:00 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 05:14:00 +0000 Subject: [issue23903] Generate PC/python3.def by scraping headers In-Reply-To: <1428637761.13.0.348463350169.issue23903@psf.upfronthosting.co.za> Message-ID: <1462166040.87.0.593723860762.issue23903@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This tool would be very useful, since new API often accidentally marked as stable API in header files. The script can play just deliberative role, warn if new unstable API is not wrapped with "#ifndef Py_LIMITED_API" or if stable API is not documented. May be we need separate list of public API in more regular format for comparison with header, documentation, python3.def, refcounts.dat, etc. There is a code for parsing preprocessor instructions in Argument Clinic. May be it can be reused here. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 01:28:05 2016 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 02 May 2016 05:28:05 +0000 Subject: [issue24225] Idlelib: changing file names In-Reply-To: <1431934587.56.0.38760352205.issue24225@psf.upfronthosting.co.za> Message-ID: <1462166885.98.0.417602351503.issue24225@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Since I posted the message above, I have decided that there should be a new version of every currently used idlelib .py file and that all additions, with new names of course, should be done at once, but only to 3.5 and 3.6. I will soon open a new issue to explain why and post the number here. To prepare the patch for the new issue, I will try to use file idle_updating_imports.patch after replacing some of the new names with ones I prefer. The attached @newnames.txt is the list from msg243572 with the addition of the new names I currently favor. Some notes: 1. idlever.py and ToolTip.py are not currently used, and will be deleted from the patch. 2. help.py is new in 3.5.1 and currently only has the help viewer. It starts by declaring itself subject to change. I plan to move all other help menu code into this file and want to keep the name for the new file. I plan to rename the current file 'helpviewer.py' and change the imports in EditorWindow.py and macosxSupport.py accordingly 3. Most of the changes I made were to delete underscores that Al inserted. They are not usually used in module names, even when they might be otherwise (example: tkinter.scrolledtext). 4. Other changes should make related files easier to find. 5. Some new names will disappear when files are combined. Any further discussion here should be limited to the new names. ---------- Added file: http://bugs.python.org/file42677/@newnames.txt _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 01:34:14 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 05:34:14 +0000 Subject: [issue26904] Difflib quick_ratio() could use Counter() In-Reply-To: <1462163353.47.0.300392305122.issue26904@psf.upfronthosting.co.za> Message-ID: <1462167254.09.0.574855359052.issue26904@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Could you provide a script or a data used by you for benchmarking, so we can repeat this? ---------- nosy: +rhettinger, serhiy.storchaka stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 01:39:23 2016 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 02 May 2016 05:39:23 +0000 Subject: [issue24225] Idlelib: changing file names In-Reply-To: <1431934587.56.0.38760352205.issue24225@psf.upfronthosting.co.za> Message-ID: <1462167563.47.0.66096748298.issue24225@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Uploading slightly revised version. ---------- Added file: http://bugs.python.org/file42678/@newnames.txt _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 01:39:35 2016 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 02 May 2016 05:39:35 +0000 Subject: [issue24225] Idlelib: changing file names In-Reply-To: <1431934587.56.0.38760352205.issue24225@psf.upfronthosting.co.za> Message-ID: <1462167575.2.0.54614536952.issue24225@psf.upfronthosting.co.za> Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file42677/@newnames.txt _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 01:48:30 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 05:48:30 +0000 Subject: [issue24225] Idlelib: changing file names In-Reply-To: <1431934587.56.0.38760352205.issue24225@psf.upfronthosting.co.za> Message-ID: <1462168110.64.0.997381746398.issue24225@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I don't think that simple renaming will give us any benefits, but if that will be made, please don't forgot to use the "hg mv" command for this for keeping the history. And please rename 2.7 files too, otherwise the backporting changes will be turned in hell. ---------- stage: resolved -> status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 02:09:12 2016 From: report at bugs.python.org (Steve Dower) Date: Mon, 02 May 2016 06:09:12 +0000 Subject: [issue23903] Generate PC/python3.def by scraping headers In-Reply-To: <1428637761.13.0.348463350169.issue23903@psf.upfronthosting.co.za> Message-ID: <1462169352.9.0.712404993977.issue23903@psf.upfronthosting.co.za> Steve Dower added the comment: As I recall, the tool is ready to go. The problem is the argument over what to do with all the APIs that currently are incorrect. Zach had a list at PyCon last year, and the consensus seemed to be that "someone" should figure out whether each API should be stable or not. Since Zach understandably doesn't want to be that someone, there's really no way to reliably tool this process when there are a number of existing violations. (FWIW, I believe we should just add them to the stable list, as that's the only way to guarantee source compatibility. They've already shipped in 3.5 and people can use them on non-Windows OSs.) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 02:16:47 2016 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 02 May 2016 06:16:47 +0000 Subject: [issue24225] Idlelib: changing file names In-Reply-To: <1431934587.56.0.38760352205.issue24225@psf.upfronthosting.co.za> Message-ID: <1462169807.79.0.810454021934.issue24225@psf.upfronthosting.co.za> Terry J. Reedy added the comment: For back compatibility reasons, I rejected a 'simple renaming', much as I would like to do it for reasons already given, and closed *this* issue in msg250451. As I said then here and elsewhere, I instead propose to add new files with new names. As I said above, I will propose a specific, revised plan in a new issue that I will open after some sleep. Please wait for that to discuss anything other than specific new names. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 02:22:17 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 06:22:17 +0000 Subject: [issue23903] Generate PC/python3.def by scraping headers In-Reply-To: <1428637761.13.0.348463350169.issue23903@psf.upfronthosting.co.za> Message-ID: <1462170137.32.0.441866811437.issue23903@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: See also closely related issue26900. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 02:39:29 2016 From: report at bugs.python.org (Larry Hastings) Date: Mon, 02 May 2016 06:39:29 +0000 Subject: [issue26902] Argument Clinic incorrectly works with custom converter and renamed parameter In-Reply-To: <1462128328.67.0.613776590116.issue26902@psf.upfronthosting.co.za> Message-ID: <1462171169.28.0.268089642433.issue26902@psf.upfronthosting.co.za> Larry Hastings added the comment: This is caused by your "meth_o inline" code, which isn't checked in yet. A clean checkout of CPython trunk generates this correct code: if (!PyArg_Parse(arg, "O&:test", PyUnicode_FSConverter, &path)) Maybe you don't need to use bugs.python.org as your personal bug tracker; maybe you don't need to add me to your private bugs. ---------- resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 02:40:58 2016 From: report at bugs.python.org (Larry Hastings) Date: Mon, 02 May 2016 06:40:58 +0000 Subject: [issue26305] Make Argument Clinic to generate PEP 7 conforming code In-Reply-To: <1454929711.55.0.893733572519.issue26305@psf.upfronthosting.co.za> Message-ID: <1462171258.97.0.0909388553863.issue26305@psf.upfronthosting.co.za> Larry Hastings added the comment: I'm not excited by this new addition to PEP 7, so I'm excusing myself from this issue. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 02:51:20 2016 From: report at bugs.python.org (Larry Hastings) Date: Mon, 02 May 2016 06:51:20 +0000 Subject: [issue23867] Argument Clinic: inline parsing code for 1-argument functions In-Reply-To: <1428157476.28.0.0922120616231.issue23867@psf.upfronthosting.co.za> Message-ID: <1462171880.41.0.475301486415.issue23867@psf.upfronthosting.co.za> Larry Hastings added the comment: Why is this dependent on #26305? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 04:33:16 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 08:33:16 +0000 Subject: [issue26902] Argument Clinic incorrectly works with custom converter and renamed parameter In-Reply-To: <1462128328.67.0.613776590116.issue26902@psf.upfronthosting.co.za> Message-ID: <1462177996.69.0.914693975132.issue26902@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: You are right. Sorry for the noise. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 05:04:09 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 09:04:09 +0000 Subject: [issue23867] Argument Clinic: inline parsing code for 1-argument functions In-Reply-To: <1428157476.28.0.0922120616231.issue23867@psf.upfronthosting.co.za> Message-ID: <1462179849.85.0.438581205494.issue23867@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Because new generated code contains "if" statements and braces (and PEP 7 requires even more braces than current patch adds). The patch for issue26305 allows to repeat braces only twice instead of 4 times. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 05:08:51 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 09:08:51 +0000 Subject: [issue26305] Make Argument Clinic to generate PEP 7 conforming code In-Reply-To: <1454929711.55.0.893733572519.issue26305@psf.upfronthosting.co.za> Message-ID: <1462180131.24.0.926038186068.issue26305@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Here is a patch for 3.5 that allows to not repeat braces too much. This will help to backport new fixes to 3.5. ---------- Added file: http://bugs.python.org/file42679/clinic_escape_braces.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 05:26:00 2016 From: report at bugs.python.org (Roundup Robot) Date: Mon, 02 May 2016 09:26:00 +0000 Subject: [issue18916] Various out-of-date Lock text in 3.2+ In-Reply-To: <1378255145.39.0.17069692986.issue18916@psf.upfronthosting.co.za> Message-ID: <20160502092557.3071.53520.A1E1292C@psf.io> Roundup Robot added the comment: New changeset 203c9c4ccb2a by Berker Peksag in branch '3.5': Issue #18916: Update thread module docstrings https://hg.python.org/cpython/rev/203c9c4ccb2a New changeset 57a475e0e378 by Berker Peksag in branch 'default': Issue #18916: Update thread module docstrings https://hg.python.org/cpython/rev/57a475e0e378 ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 05:26:51 2016 From: report at bugs.python.org (Berker Peksag) Date: Mon, 02 May 2016 09:26:51 +0000 Subject: [issue18916] Various out-of-date Lock text in 3.2+ In-Reply-To: <1378255145.39.0.17069692986.issue18916@psf.upfronthosting.co.za> Message-ID: <1462181211.94.0.00871687476381.issue18916@psf.upfronthosting.co.za> Berker Peksag added the comment: Thanks for the path, Christopher. ---------- assignee: -> docs at python components: +Documentation -Interpreter Core nosy: +berker.peksag, docs at python resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 -Python 3.3, Python 3.4 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 05:27:06 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Mon, 02 May 2016 09:27:06 +0000 Subject: [issue26858] setting SO_REUSEPORT fails on android In-Reply-To: <1461677842.81.0.574068471289.issue26858@psf.upfronthosting.co.za> Message-ID: <1462181226.34.0.256274954479.issue26858@psf.upfronthosting.co.za> Xavier de Gaye added the comment: The patch was not intended to be proposed as a way to fix this problem, but as an indication of what the problem is. This issue is a dependency of issue #26865: Meta-issue: support of the android platform. I should have posted instead the result of running 'python -m test -v test_asyncio' on an android emulator running an x86 system image at API level 21, which is: ====================================================================== ERROR: test_create_datagram_endpoint_sockopts (test.test_asyncio.test_base_events.BaseEventLoopWithS electorTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_asyncio/test_base_events.py", line 1506, in test_create_datagram_endpoint_sockopts socket.SOL_SOCKET, socket.SO_REUSEPORT)) OSError: [Errno 92] Protocol not available ====================================================================== ERROR: test_create_server_reuse_port (test.test_asyncio.test_events.EPollEventLoopTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_asyncio/test_events.py", line 830, in te st_create_server_reuse_port socket.SOL_SOCKET, socket.SO_REUSEPORT)) OSError: [Errno 92] Protocol not available ====================================================================== ERROR: test_create_server_reuse_port (test.test_asyncio.test_events.PollEventLoopTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_asyncio/test_events.py", line 830, in te st_create_server_reuse_port socket.SOL_SOCKET, socket.SO_REUSEPORT)) OSError: [Errno 92] Protocol not available ====================================================================== ERROR: test_create_server_reuse_port (test.test_asyncio.test_events.SelectEventLoopTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_asyncio/test_events.py", line 830, in te st_create_server_reuse_port socket.SOL_SOCKET, socket.SO_REUSEPORT)) OSError: [Errno 92] Protocol not available ---------------------------------------------------------------------- Ran 991 tests in 16.528s FAILED (errors=4, skipped=2) test test_asyncio failed 1 test failed: test_asyncio Total duration: 0:00:18 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 05:28:39 2016 From: report at bugs.python.org (Raymond Hettinger) Date: Mon, 02 May 2016 09:28:39 +0000 Subject: [issue26893] ValueError exception raised when using IntEnum with an attribute called "name" and @unique decorator In-Reply-To: <1462019726.06.0.0957572026567.issue26893@psf.upfronthosting.co.za> Message-ID: <1462181319.37.0.79787864472.issue26893@psf.upfronthosting.co.za> Changes by Raymond Hettinger : ---------- assignee: -> ethan.furman _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 05:30:35 2016 From: report at bugs.python.org (Wolfgang Maier) Date: Mon, 02 May 2016 09:30:35 +0000 Subject: [issue26904] Difflib quick_ratio() could use Counter() In-Reply-To: <1462163353.47.0.300392305122.issue26904@psf.upfronthosting.co.za> Message-ID: <1462181435.17.0.00731990529364.issue26904@psf.upfronthosting.co.za> Wolfgang Maier added the comment: Given your comment about sum((fullacount & fullbcount).values()), why not use its in-place version: fullacount &= fullbcount matches = sum(fullacount.values()) ? ---------- nosy: +wolma _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 05:42:50 2016 From: report at bugs.python.org (SilentGhost) Date: Mon, 02 May 2016 09:42:50 +0000 Subject: [issue26888] Multiple memory leaks after raw Py_Initialize and Py_Finalize. In-Reply-To: <1461964498.64.0.249239175864.issue26888@psf.upfronthosting.co.za> Message-ID: <1462182170.79.0.159700408828.issue26888@psf.upfronthosting.co.za> Changes by SilentGhost : ---------- components: +Interpreter Core -Library (Lib) nosy: +haypo, serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 05:44:34 2016 From: report at bugs.python.org (SilentGhost) Date: Mon, 02 May 2016 09:44:34 +0000 Subject: [issue26890] inspect.getsource gets source copy on disk even when module has not been reloaded In-Reply-To: <1461987187.54.0.900828586529.issue26890@psf.upfronthosting.co.za> Message-ID: <1462182274.01.0.409038437388.issue26890@psf.upfronthosting.co.za> Changes by SilentGhost : ---------- nosy: +yselivanov _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 05:48:14 2016 From: report at bugs.python.org (yangming) Date: Mon, 02 May 2016 09:48:14 +0000 Subject: [issue26905] from multiprocessing.pool import Pool bug on linux Message-ID: <1462182494.66.0.452090779121.issue26905@psf.upfronthosting.co.za> New submission from yangming: When my code run on windows,it's right,but on linux,id(q) print same RAM address. ---------- components: Argument Clinic files: pool.py messages: 264637 nosy: 859911096, larry priority: normal severity: normal status: open title: from multiprocessing.pool import Pool bug on linux versions: Python 2.7 Added file: http://bugs.python.org/file42680/pool.py _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 07:47:19 2016 From: report at bugs.python.org (Larry Hastings) Date: Mon, 02 May 2016 11:47:19 +0000 Subject: [issue26905] from multiprocessing.pool import Pool bug on linux In-Reply-To: <1462182494.66.0.452090779121.issue26905@psf.upfronthosting.co.za> Message-ID: <1462189639.95.0.691172010716.issue26905@psf.upfronthosting.co.za> Larry Hastings added the comment: This has nothing to do with Argument Clinic, which is an internal tool used in the Python 3.x series. ---------- components: -Argument Clinic nosy: -859911096 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 08:20:05 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 12:20:05 +0000 Subject: [issue26282] Add support for partial keyword arguments in extension functions In-Reply-To: <1454535856.96.0.444049158428.issue26282@psf.upfronthosting.co.za> Message-ID: <1462191605.82.0.272130082597.issue26282@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Removed development code from tests (thanks Martin for catching this) and adds support in Argument Clinic. Now the patch is complete and ready for final review. ---------- components: +Argument Clinic, Interpreter Core stage: -> patch review Added file: http://bugs.python.org/file42681/pyarg_parse_positional_only_and_keywords_2.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 08:23:10 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 12:23:10 +0000 Subject: [issue26282] Add support for partial keyword arguments in extension functions In-Reply-To: <1454535856.96.0.444049158428.issue26282@psf.upfronthosting.co.za> Message-ID: <1462191790.89.0.928981931626.issue26282@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: For example here is a patch that partially reverts issue26243 by making "data" positional parameter, but keeping "level" positional-or-keyword parameter. ---------- Added file: http://bugs.python.org/file42682/zlib_compress_positional_only_data.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 08:37:30 2016 From: report at bugs.python.org (Berker Peksag) Date: Mon, 02 May 2016 12:37:30 +0000 Subject: [issue25757] Subclasses of property lose docstring In-Reply-To: <1448667832.51.0.334598445629.issue25757@psf.upfronthosting.co.za> Message-ID: <1462192650.79.0.552623195573.issue25757@psf.upfronthosting.co.za> Berker Peksag added the comment: Thanks for the patch, Torsten. This is a duplicate of issue 24766. Your patch is almost identical (except the behavior change) to the patch in issue 24766. I will adapt your test and attribute your name in commit message. ---------- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Subclass of property doesn't preserve instance __doc__ when using doc= argument _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 08:39:26 2016 From: report at bugs.python.org (Berker Peksag) Date: Mon, 02 May 2016 12:39:26 +0000 Subject: [issue24766] Subclass of property doesn't preserve instance __doc__ when using doc= argument In-Reply-To: <1438362123.61.0.0930515598899.issue24766@psf.upfronthosting.co.za> Message-ID: <1462192766.75.0.218377947298.issue24766@psf.upfronthosting.co.za> Berker Peksag added the comment: test_property_decorator_doc_writable fix has already been committed in cc1aa0e88626. Here's an updated patch: * Synced with the default branch * Adapted the test from duplicate issue 25757 (written by Torsten Landschoff) ---------- nosy: +berker.peksag, torsten stage: test needed -> patch review Added file: http://bugs.python.org/file42683/issue24766.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 08:42:08 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 12:42:08 +0000 Subject: [issue26647] ceval: use Wordcode, 16-bit bytecode In-Reply-To: <1459034868.93.0.159802163565.issue26647@psf.upfronthosting.co.za> Message-ID: <1462192928.66.0.0885719743894.issue26647@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: > I should mention a change in dis which hasn't come up for the sake of explicit discussion: I modified dis to not print EXTENDED_ARG. This may be a problem since jumps can now point on address not output in disassemble. May be this is good idea (I'm +0), but it deserves separate issue. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 08:49:14 2016 From: report at bugs.python.org (Berker Peksag) Date: Mon, 02 May 2016 12:49:14 +0000 Subject: [issue22656] `help` ignores `__doc__` of descriptors In-Reply-To: <1413551704.24.0.449864930924.issue22656@psf.upfronthosting.co.za> Message-ID: <1462193354.46.0.0942508195876.issue22656@psf.upfronthosting.co.za> Berker Peksag added the comment: The attached patch should solve this. We probably need to add more tests. test_property_subclass depends on issue 24766. ---------- keywords: +patch nosy: +berker.peksag stage: -> patch review type: -> behavior versions: +Python 3.5, Python 3.6 -Python 3.4 Added file: http://bugs.python.org/file42684/issue22656.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 08:50:06 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 12:50:06 +0000 Subject: [issue26881] modulefinder should reuse the dis module In-Reply-To: <1461912649.38.0.754834410981.issue26881@psf.upfronthosting.co.za> Message-ID: <1462193406.87.0.227997544966.issue26881@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This is pretty simple patch and I'm going to push it in short time if there are no objections. This can make the patch for issue26647 simpler since handling extended args is isolated in one function. Alternative names for _unpack_args() are welcome. An alternative way is to use public function get_instructions(), but this adds more overhead and don't work for 2.7. ---------- assignee: -> serhiy.storchaka versions: +Python 2.7, Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 08:57:26 2016 From: report at bugs.python.org (Erik Bray) Date: Mon, 02 May 2016 12:57:26 +0000 Subject: [issue24766] Subclass of property doesn't preserve instance __doc__ when using doc= argument In-Reply-To: <1438362123.61.0.0930515598899.issue24766@psf.upfronthosting.co.za> Message-ID: <1462193846.5.0.389796290264.issue24766@psf.upfronthosting.co.za> Erik Bray added the comment: Thanks for the updated patch. LGTM. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 08:58:29 2016 From: report at bugs.python.org (irdb) Date: Mon, 02 May 2016 12:58:29 +0000 Subject: [issue18766] IDLE: Autocomplete in editor doesn't work for un-imported modules In-Reply-To: <1376703586.47.0.0617094548794.issue18766@psf.upfronthosting.co.za> Message-ID: <1462193909.7.0.747635215762.issue18766@psf.upfronthosting.co.za> Changes by irdb : ---------- nosy: +irdb _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 09:03:48 2016 From: report at bugs.python.org (Antti Haapala) Date: Mon, 02 May 2016 13:03:48 +0000 Subject: [issue26906] __reduce__ format Message-ID: <1462194228.9.0.692226837642.issue26906@psf.upfronthosting.co.za> Changes by Antti Haapala : ---------- nosy: ztane priority: normal severity: normal status: open title: __reduce__ format versions: Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 09:07:24 2016 From: report at bugs.python.org (Antti Haapala) Date: Mon, 02 May 2016 13:07:24 +0000 Subject: [issue26906] format(object.__reduce__) fails intermittently Message-ID: <1462194444.45.0.679859267338.issue26906@psf.upfronthosting.co.za> New submission from Antti Haapala: This is an annoying heisenbug; it seems that some objects cannot be formatted until you explicitly do obj.__format__. For example `object.__reduce__` behaves like this: Python 2.7.10 (default, Oct 14 2015, 16:09:02) [GCC 5.2.1 20151010] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> format(object.__reduce__) Traceback (most recent call last): File "", line 1, in TypeError: Type method_descriptor doesn't define __format__ >>> format(object.__reduce__) Traceback (most recent call last): File "", line 1, in TypeError: Type method_descriptor doesn't define __format__ >>> object.__reduce__.__format__ >>> format(object.__reduce__) "" I can replicate this in 2.7.9, .10 and .11 on Ubuntu and Debian, though it works on Windows Python, works in 2.6.6, and Pythons 3 wherever I've tried, but I've heard this also failing on Python 3. ---------- title: __reduce__ format -> format(object.__reduce__) fails intermittently _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 09:09:03 2016 From: report at bugs.python.org (Antti Haapala) Date: Mon, 02 May 2016 13:09:03 +0000 Subject: [issue26906] format(object.__reduce__) fails intermittently In-Reply-To: <1462194444.45.0.679859267338.issue26906@psf.upfronthosting.co.za> Message-ID: <1462194543.52.0.897100796392.issue26906@psf.upfronthosting.co.za> Antti Haapala added the comment: s/explicitly do/explicitly access/ ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 09:17:30 2016 From: report at bugs.python.org (Eric V. Smith) Date: Mon, 02 May 2016 13:17:30 +0000 Subject: [issue26906] format(object.__reduce__) fails intermittently In-Reply-To: <1462194444.45.0.679859267338.issue26906@psf.upfronthosting.co.za> Message-ID: <1462195050.17.0.230836534642.issue26906@psf.upfronthosting.co.za> Changes by Eric V. Smith : ---------- nosy: +eric.smith type: -> behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 10:29:23 2016 From: report at bugs.python.org (Christian Heimes) Date: Mon, 02 May 2016 14:29:23 +0000 Subject: [issue26907] Add missing getsockopt constants Message-ID: <1462199363.91.0.625327027717.issue26907@psf.upfronthosting.co.za> New submission from Christian Heimes: The socket doesn't expose some constants for getsockopt() and setsockopt(): Get domain and protocol from socket fd SO_DOMAIN SO_PROTOCOL enable/disable passing of credentials SO_PASSCRED get security context (SELinux context) SO_PEERSEC enable/disable passing of security context SO_PASSSEC ---------- assignee: christian.heimes messages: 264649 nosy: christian.heimes priority: normal severity: normal status: open title: Add missing getsockopt constants type: enhancement versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 10:31:32 2016 From: report at bugs.python.org (Christian Heimes) Date: Mon, 02 May 2016 14:31:32 +0000 Subject: [issue18391] socket.fromfd()'s API is difficult or impossible to use correctly in general In-Reply-To: <1373153632.08.0.45299629619.issue18391@psf.upfronthosting.co.za> Message-ID: <1462199492.2.0.603625532189.issue18391@psf.upfronthosting.co.za> Christian Heimes added the comment: fromfd() can be simplified after #26907 has landed. ---------- versions: +Python 3.6 -Python 2.7, Python 3.4 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 10:38:12 2016 From: report at bugs.python.org (Berker Peksag) Date: Mon, 02 May 2016 14:38:12 +0000 Subject: [issue25392] setup.py --quiet doesn't silence "no previously-included directories" warnings from MANIFEST.in In-Reply-To: <1444736729.8.0.451337139853.issue25392@psf.upfronthosting.co.za> Message-ID: <1462199892.82.0.125696857808.issue25392@psf.upfronthosting.co.za> Changes by Berker Peksag : ---------- components: +Distutils nosy: +berker.peksag, dstufft, eric.araujo stage: -> needs patch type: -> behavior versions: +Python 3.6 -Python 3.3, Python 3.4 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 10:46:31 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 14:46:31 +0000 Subject: [issue26906] format(object.__reduce__) fails intermittently In-Reply-To: <1462194444.45.0.679859267338.issue26906@psf.upfronthosting.co.za> Message-ID: <1462200391.15.0.365761915265.issue26906@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Proposed patch makes method descriptors types to be explicitly initialized as in 3.x. ---------- components: +Interpreter Core keywords: +patch nosy: +serhiy.storchaka stage: -> patch review Added file: http://bugs.python.org/file42685/init_method_descr_types.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 11:03:14 2016 From: report at bugs.python.org (SilentGhost) Date: Mon, 02 May 2016 15:03:14 +0000 Subject: [issue26905] from multiprocessing.pool import Pool bug on linux In-Reply-To: <1462182494.66.0.452090779121.issue26905@psf.upfronthosting.co.za> Message-ID: <1462201394.34.0.328090558904.issue26905@psf.upfronthosting.co.za> Changes by SilentGhost : ---------- nosy: +jnoller, sbt -larry type: -> behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 11:10:39 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 15:10:39 +0000 Subject: [issue22656] `help` ignores `__doc__` of descriptors In-Reply-To: <1413551704.24.0.449864930924.issue22656@psf.upfronthosting.co.za> Message-ID: <1462201839.63.0.893679331991.issue22656@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 11:39:46 2016 From: report at bugs.python.org (Zachary Ware) Date: Mon, 02 May 2016 15:39:46 +0000 Subject: [issue23903] Generate PC/python3.def by scraping headers In-Reply-To: <1428637761.13.0.348463350169.issue23903@psf.upfronthosting.co.za> Message-ID: <1462203586.46.0.0991554660604.issue23903@psf.upfronthosting.co.za> Zachary Ware added the comment: > There is a code for parsing preprocessor instructions in Argument Clinic. > May be it can be reused here. It already is, actually; its availability was a major factor in my thinking this would be possible and starting to work on it. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 12:29:32 2016 From: report at bugs.python.org (Guido van Rossum) Date: Mon, 02 May 2016 16:29:32 +0000 Subject: [issue26858] setting SO_REUSEPORT fails on android In-Reply-To: <1461677842.81.0.574068471289.issue26858@psf.upfronthosting.co.za> Message-ID: <1462206572.14.0.407424414471.issue26858@psf.upfronthosting.co.za> Guido van Rossum added the comment: OK, I'll wait until Android support is closer. Do you have a core dev who's mentoring/reviewing here? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 12:59:43 2016 From: report at bugs.python.org (Vladimir Rutsky) Date: Mon, 02 May 2016 16:59:43 +0000 Subject: [issue26908] "1and 0" evaluated a zero, instead of SyntaxError Message-ID: <1462208383.05.0.60534121789.issue26908@psf.upfronthosting.co.za> New submission from Vladimir Rutsky: Looks like there is no need to place space separators after numbers: $ python3.5 -c "print(1and 0)" 0 $ python3.5 -c "print([1for i in range(1)])" [1] Not sure is this a bug or a feature, but I would expect that this should be SyntaxError, same as here: $ python3.5 -c "1 and0" File "", line 1 1 and0 ^ SyntaxError: invalid syntax If this is a feature, can anyone give reasoning for it? ---------- messages: 264654 nosy: rutsky priority: normal severity: normal status: open title: "1and 0" evaluated a zero, instead of SyntaxError versions: Python 2.7, Python 3.4, Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 13:06:33 2016 From: report at bugs.python.org (=?utf-8?b?0JzQsNGA0Log0JrQvtGA0LXQvdCx0LXRgNCz?=) Date: Mon, 02 May 2016 17:06:33 +0000 Subject: [issue26909] Serious performance loss (10 times) when NOT using .drain() Message-ID: <1462208793.52.0.483694752489.issue26909@psf.upfronthosting.co.za> New submission from ???? ?????????: https://github.com/python/asyncio/issues/338 (example of program shows bug resides on github) ---------- components: asyncio messages: 264655 nosy: gvanrossum, haypo, mmarkk, yselivanov priority: normal severity: normal status: open title: Serious performance loss (10 times) when NOT using .drain() type: performance versions: Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 13:12:25 2016 From: report at bugs.python.org (Berker Peksag) Date: Mon, 02 May 2016 17:12:25 +0000 Subject: [issue26908] "1and 0" evaluated a zero, instead of SyntaxError In-Reply-To: <1462208383.05.0.60534121789.issue26908@psf.upfronthosting.co.za> Message-ID: <1462209145.74.0.800026324088.issue26908@psf.upfronthosting.co.za> Berker Peksag added the comment: Thanks for the report. This is a duplicate of issue 13610. You can read issue 13610 for more information. ---------- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> On Python parsing numbers. _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 13:50:17 2016 From: report at bugs.python.org (Luigi Semenzato) Date: Mon, 02 May 2016 17:50:17 +0000 Subject: [issue26910] dictionary literal should not allow duplicate keys Message-ID: <1462211417.21.0.537077061483.issue26910@psf.upfronthosting.co.za> New submission from Luigi Semenzato: This was already discussed and rejected at https://bugs.python.org/issue16385. I am reopening because I am not convinced that the discussion presented all arguments properly. The original problem description: lives_in = { 'lion': ['Africa', 'America], 'parrot': ['Europe'], #... 100+ more rows here 'lion': ['Europe'], #... 100+ more rows here } The above constructor overwrites the 'lion' entry silently, often causing unexpected behavior. These are the arguments presented in favor of the rejection, followed by my rebuttals. 1. "An error is out of the question for compatibility reasons". No real rebuttal here, except I wonder if exceptions are ever made and under what circumstances. I should point out that a warning may also create incompatibilities. 2. "There are ways to rewrite this as a loop on a list". Yes of course, but the entire point of the dictionary literal is to offer a concise and convenient notation for entering a dictionary as program text. 3. "Being able to re-write keys is fundamental to Python dicts and why they can be used for Python's mutable namespaces". This is fine but it applies to the data structure, not the literal constructor. 4. "A code generator could depend on being able to write duplicate keys without having to go back and erase previous output". Yes, but it seems wrong to facilitate automated code generation at the expense of human code writing. For hand-written code, I claim that in most (all?) cases it would be preferable to have the compiler detect key duplications. It is easier for an automated code generator to check for duplications than it is for a human. 5. "There is already pylint". True, but it forces an additional step, and seems like a cop-out for not wanting to do the "right thing" in the language. For context, someone ran into this problem in my team at Google. We fixed it using pylint, but I really don't see the point of having these constructor semantics. From the discussions I have seen, it seems just an oversight in the implementation/specification of dictionary literals (search keywords: dict constructor, dict literal). I'd be happy to hear stronger reasoning in favor of the status quo. ---------- components: Interpreter Core messages: 264657 nosy: Luigi Semenzato priority: normal severity: normal status: open title: dictionary literal should not allow duplicate keys type: behavior versions: Python 3.4 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 14:43:41 2016 From: report at bugs.python.org (Guido van Rossum) Date: Mon, 02 May 2016 18:43:41 +0000 Subject: [issue26219] implement per-opcode cache in ceval In-Reply-To: <1453918500.26.0.0886095278127.issue26219@psf.upfronthosting.co.za> Message-ID: <1462214621.69.0.68244567926.issue26219@psf.upfronthosting.co.za> Guido van Rossum added the comment: I'm confused by the relationship between this and issue 26110. That seems to be a much simpler patch (which also doesn't apply cleanly). If 26110 really increases method calls by 20%, what does this add? (By which I mean (a) what additional optimizations does it have, and (b) what additional speedup does it have?) I'm asking because I'm still trying to look for reasons why I should accept PEP 509, and this is brought up as a reason. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 14:44:45 2016 From: report at bugs.python.org (Guido van Rossum) Date: Mon, 02 May 2016 18:44:45 +0000 Subject: [issue26110] Speedup method calls 1.2x In-Reply-To: <1452791347.05.0.923215900831.issue26110@psf.upfronthosting.co.za> Message-ID: <1462214685.34.0.437104307629.issue26110@psf.upfronthosting.co.za> Guido van Rossum added the comment: This patch doesn't apply cleanly any more. Is it easy to update? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 14:45:35 2016 From: report at bugs.python.org (Guido van Rossum) Date: Mon, 02 May 2016 18:45:35 +0000 Subject: [issue26219] implement per-opcode cache in ceval In-Reply-To: <1453918500.26.0.0886095278127.issue26219@psf.upfronthosting.co.za> Message-ID: <1462214735.17.0.321222390414.issue26219@psf.upfronthosting.co.za> Guido van Rossum added the comment: I'm also looking for some example code that would show clearly the kind of speedup we're talking about. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 15:00:36 2016 From: report at bugs.python.org (R. David Murray) Date: Mon, 02 May 2016 19:00:36 +0000 Subject: [issue26910] dictionary literal should not allow duplicate keys In-Reply-To: <1462211417.21.0.537077061483.issue26910@psf.upfronthosting.co.za> Message-ID: <1462215636.35.0.44458539042.issue26910@psf.upfronthosting.co.za> R. David Murray added the comment: Since this has been previously rejected, I'm closing this issue as a duplicate. If you want to reopen the discussion of the merits, the python-ideas mailing list is the appropriate forum. I encourage you to raise it there. ---------- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> evaluating literal dict with repeated keys gives no warnings/errors _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 15:17:17 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Mon, 02 May 2016 19:17:17 +0000 Subject: [issue26858] setting SO_REUSEPORT fails on android In-Reply-To: <1461677842.81.0.574068471289.issue26858@psf.upfronthosting.co.za> Message-ID: <1462216637.43.0.233787173549.issue26858@psf.upfronthosting.co.za> Xavier de Gaye added the comment: Stefan has already commited and closed some of the issues listed at issue #26865. Martin has closed issue #22359, a blocker for the cross-compilation of python. I will enter an issue for all the failures listed at https://bitbucket.org/xdegaye/pyona/wiki/testsuite and add them to the list in the android meta-issue. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 15:45:26 2016 From: report at bugs.python.org (Ivan Zakhryaschev) Date: Mon, 02 May 2016 19:45:26 +0000 Subject: [issue26911] lib2to3/tests/pytree_idempotency.py has a broken import Message-ID: <1462218326.23.0.838867840781.issue26911@psf.upfronthosting.co.za> New submission from Ivan Zakhryaschev: Line 21 of lib2to3/tests/pytree_idempotency.py: import pgen2 This seems to be broken, because it should be: import lib2to3.pgen2 (This makes the auto-requirements generator in ALT Sisyphus to generate a broken/unsatisfiable dependency on pgen2 when packaging this into an RPM.) All other uses of pgen2 in Python 3.5.1 sources use other forms of import: either relative or the absolute one as I suggest: $ git grep -F pgen2 lib2to3/btm_matcher.py: # from .pgen2 import token // token.__dict__.items(): lib2to3/btm_utils.py:from .pgen2 import grammar, token lib2to3/fixer_util.py:from .pgen2 import token lib2to3/fixes/fix_apply.py:from ..pgen2 import token lib2to3/fixes/fix_dict.py:from ..pgen2 import token lib2to3/fixes/fix_except.py:from ..pgen2 import token lib2to3/fixes/fix_filter.py:from ..pgen2 import token lib2to3/fixes/fix_has_key.py:from ..pgen2 import token lib2to3/fixes/fix_map.py:from ..pgen2 import token lib2to3/fixes/fix_ne.py:from ..pgen2 import token lib2to3/fixes/fix_next.py:from ..pgen2 import token lib2to3/fixes/fix_numliterals.py:from ..pgen2 import token lib2to3/fixes/fix_print.py:from ..pgen2 import token lib2to3/fixes/fix_raise.py:from ..pgen2 import token lib2to3/fixes/fix_throw.py:from ..pgen2 import token lib2to3/fixes/fix_tuple_params.py:from ..pgen2 import token lib2to3/fixes/fix_types.py:from ..pgen2 import token lib2to3/fixes/fix_unicode.py:from ..pgen2 import token lib2to3/fixes/fix_ws_comma.py:from ..pgen2 import token lib2to3/patcomp.py:from .pgen2 import driver, literals, token, tokenize, parse, grammar lib2to3/pgen2/__init__.py:"""The pgen2 package.""" lib2to3/pgen2/conv.py:from pgen2 import grammar, token lib2to3/pgen2/token.py:# originally monkeypatched in by pgen2.tokenize lib2to3/pgen2/tokenize.py:from lib2to3.pgen2.token import * lib2to3/pygram.py:from .pgen2 import token lib2to3/pygram.py:from .pgen2 import driver lib2to3/pytree.py: # from .pgen2 import token // token.__dict__.items(): lib2to3/refactor.py:from .pgen2 import driver, tokenize, token lib2to3/tests/pytree_idempotency.py:import pgen2 lib2to3/tests/pytree_idempotency.py:from pgen2 import driver lib2to3/tests/pytree_idempotency.py: except pgen2.parse.ParseError as err: lib2to3/tests/support.py:from lib2to3.pgen2 import driver lib2to3/tests/test_parser.py:from lib2to3.pgen2 import tokenize lib2to3/tests/test_parser.py:from ..pgen2.parse import ParseError lib2to3/tests/test_refactor.py:from lib2to3.pgen2 import token lib2to3/tests/test_util.py:from lib2to3.pgen2 import token ---------- components: 2to3 (2.x to 3.x conversion tool) messages: 264663 nosy: imz priority: normal severity: normal status: open title: lib2to3/tests/pytree_idempotency.py has a broken import type: compile error versions: Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 15:46:09 2016 From: report at bugs.python.org (Yury Selivanov) Date: Mon, 02 May 2016 19:46:09 +0000 Subject: [issue26219] implement per-opcode cache in ceval In-Reply-To: <1453918500.26.0.0886095278127.issue26219@psf.upfronthosting.co.za> Message-ID: <1462218368.99.0.666324440124.issue26219@psf.upfronthosting.co.za> Yury Selivanov added the comment: > I'm confused by the relationship between this and issue 26110. This patch embeds the implementation of 26110. I'm no longer sure it was a good idea to have two issues instead of one, everybody seems to be confused about that ;) > That seems to be a much simpler patch (which also doesn't apply cleanly). If 26110 really increases method calls by 20%, what does this add? (By which I mean (a) what additional optimizations does it have, and (b) what additional speedup does it have?) I'm sorry for the long response, please bare with me. This issue is complex, and it's very hard to explain it all in a short message. The patch from 26110 implements LOAD_METHOD/CALL_METHOD pair of opcodes. The idea is that we can avoid instantiation of BoundMethod objects for code that looks like "something.method(...)'. I wanted to first get in shape the patch from 26110, commit it, and then, use the patch from this issue to add additional speedups. This patch implements a generic per-opcode cache. Using that cache, it speeds up LOAD_GLOBAL, LOAD_ATTR, and LOAD_METHOD (from 26110) opcodes. The cache works on per-code object basis, only optimizing code objects that were run more than 1,000 times. * LOAD_GLOBAL uses cache to store pointers for requested names. Since the cache is per-opcode, the name is always the same for the given LOAD_GLOBAL. The cache logic uses PEP 509 to invalidate the cache (although the cache is almost never invalidated for real code). This optimization makes micro optimizations like "def smth(len=len)" obsolete. LOAD_GLOBAL becomes much faster, almost as fast as LOAD_FAST. * LOAD_ATTR uses Armin Rigo's clever types cache, and a modified PyDict_GetItem (PyDict_GetItemHint), which accepts a suggested position of the value in the hash table. Basically, LOAD_ATTR stores in its cache a pointer to the type of the object it works with, its tp_version_tag, and a hint for PyDict_GetItemHint. When we have a cache hit, LOAD_ATTR becomes super fast, since it only needs to lookup key/value in type's dict by a known offset (the real code is a bit more complex, to handle all edge cases of descriptor protocol etc). Python programs have a lot of LOAD_ATTRs. It also seems that dicts of classes are usually stable, and that objects rarely shadow class attributes. * LOAD_METHOD is optimized very similarly to LOAD_ATTR. The idea is that if the opcode is optimized, then we simply store a pointer to the function we want to call with CALL_METHOD. Since 'obj.method' usually implies that 'method' is implemented on 'obj.__class__' this optimization makes LOAD_METHOD even faster. That's how `s.startswith('abc')` becomes as fast as `s[:3] == 'abc'`. > If 26110 really increases method calls by 20%, what does this add? Speeds up method calls another 15%, speeds up global name lookups and attribute lookups. > (b) what additional speedup does it have Here're some benchmark results: https://gist.github.com/1st1/b1978e17ee8b82cc6432 - call_method micro benchmark is 35% faster - 2to3 is 7-8% faster - richards - 18% faster - many other benchmarks are 10-15% faster. Those that appear slower aren't stable, i.e. one run they are slower, another they are faster. I'd say each of the above optimizations speeds up macro-benchmarks by 2-4%. Combined, they speed up CPython 7-15%. > I'm asking because I'm still trying to look for reasons why I should accept PEP 509, and this is brought up as a reason. Re PEP 509 and these patches: 1. I want to first find time to finish up and commit 26110. 2. Then I'll do some careful benchmarking for this patch and write another update with results. 3. This patch adds to the complexity of ceval, but if it really speeds up CPython it's well worth it. PEP 509 will need to be approved if we decide to move forward with this patch. I'd say that if you aren't sure about PEP 509 right now, then we can wait a couple of months and decide later. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 15:47:44 2016 From: report at bugs.python.org (Ivan Zakhryaschev) Date: Mon, 02 May 2016 19:47:44 +0000 Subject: [issue26911] lib2to3/tests/pytree_idempotency.py has a broken import In-Reply-To: <1462218326.23.0.838867840781.issue26911@psf.upfronthosting.co.za> Message-ID: <1462218464.51.0.677696735293.issue26911@psf.upfronthosting.co.za> Ivan Zakhryaschev added the comment: BTW, this source file seems to be not used anywhere. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 15:51:12 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 02 May 2016 19:51:12 +0000 Subject: [issue26911] lib2to3/tests/pytree_idempotency.py has a broken import In-Reply-To: <1462218326.23.0.838867840781.issue26911@psf.upfronthosting.co.za> Message-ID: <1462218672.58.0.954064296062.issue26911@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- nosy: +benjamin.peterson _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 16:27:12 2016 From: report at bugs.python.org (Guido van Rossum) Date: Mon, 02 May 2016 20:27:12 +0000 Subject: [issue26858] setting SO_REUSEPORT fails on android In-Reply-To: <1462216637.43.0.233787173549.issue26858@psf.upfronthosting.co.za> Message-ID: Guido van Rossum added the comment: If there are a lot of Android issue maybe you could get a tracker manager to add a new keyword or category or whatever? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 16:29:37 2016 From: report at bugs.python.org (Vladimir Rutsky) Date: Mon, 02 May 2016 20:29:37 +0000 Subject: [issue13610] On Python parsing numbers. In-Reply-To: <1324020441.52.0.721783432862.issue13610@psf.upfronthosting.co.za> Message-ID: <1462220977.77.0.723245099825.issue13610@psf.upfronthosting.co.za> Changes by Vladimir Rutsky : ---------- nosy: +rutsky _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 16:34:34 2016 From: report at bugs.python.org (Antoine Pitrou) Date: Mon, 02 May 2016 20:34:34 +0000 Subject: [issue26858] setting SO_REUSEPORT fails on android In-Reply-To: <1461677842.81.0.574068471289.issue26858@psf.upfronthosting.co.za> Message-ID: <1462221274.24.0.848407561958.issue26858@psf.upfronthosting.co.za> Changes by Antoine Pitrou : ---------- nosy: -pitrou _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 16:44:13 2016 From: report at bugs.python.org (Ivan Zakharyaschev) Date: Mon, 02 May 2016 20:44:13 +0000 Subject: [issue26912] test/test_email/torture_test.py (and test_asian_codecs.py) has a broken import Message-ID: <1462221853.95.0.795708912177.issue26912@psf.upfronthosting.co.za> New submission from Ivan Zakharyaschev: (An issue similar to http://bugs.python.org/issue26911 , but with a different source file from the tests) Lib/test/test_email/torture_test.py:15:from email.test.test_email import TestEmailBase should be: from test.test_email import TestEmailBase because the first variant has a non-existing path. (This makes the auto-requirements generator in ALT Sisyphus to generate a broken/unsatisfiable dependency on email.test.test_email when building the package from http://git.altlinux.org/people/imz/packages/python3.git .) Similarly, Lib/test/test_email/test_asian_codecs.py:8:from test.test_email.test_email import TestEmailBase should better not have an extra "test_email" component in the path. All other imports of test_email in Python 3.5.1 sources are of the form I'm suggesting: $ git --no-pager grep -Fn .test_email Lib/test/test_email/__init__.py:9:from test.test_email import __file__ as landmark Lib/test/test_email/__main__.py:1:from test.test_email import load_tests Lib/test/test_email/test__encoded_words.py:4:from test.test_email import TestEmailBase Lib/test/test_email/test__header_value_parser.py:6:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_asian_codecs.py:8:from test.test_email.test_email import TestEmailBase Lib/test/test_email/test_contentmanager.py:2:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_defect_handling.py:6:from test.test_email import TestEmailBase Lib/test/test_email/test_email.py:42:from test.test_email import openfile, TestEmailBase Lib/test/test_email/test_generator.py:8:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_headerregistry.py:8:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_inversion.py:11:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_message.py:5:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_parser.py:5:from test.test_email import TestEmailBase Lib/test/test_email/test_pickleable.py:9:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/torture_test.py:15:from email.test.test_email import TestEmailBase Misc/HISTORY:1733:- Issue #8315: (partial fix) python -m unittest test.test_email now works. BTW, I'm not sure these two files are used anywhere, because grep gives no results for their names. ---------- components: Tests messages: 264667 nosy: imz priority: normal severity: normal status: open title: test/test_email/torture_test.py (and test_asian_codecs.py) has a broken import type: compile error versions: Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 16:45:06 2016 From: report at bugs.python.org (Josh Rosenberg) Date: Mon, 02 May 2016 20:45:06 +0000 Subject: [issue26905] from multiprocessing.pool import Pool bug on linux In-Reply-To: <1462182494.66.0.452090779121.issue26905@psf.upfronthosting.co.za> Message-ID: <1462221906.35.0.299734834311.issue26905@psf.upfronthosting.co.za> Josh Rosenberg added the comment: The Queue module (queue on Py3) is for communication between threads, not processes; what you've written wouldn't behave correctly on any version of Python. You want to use multiprocessing's Queue class, not Queue.Queue, and to avoid possible deadlocks, you want to populate it after the pool workers are running. In any event, id(q) is expected to match on Linux, which has fork semantics (so the memory space in parent and child is initially identical). On Windows it differs because spawn based multiprocessing means the objects are recreated in the child processes, rather than inherited directly. This is a problem with your code and understanding on forking, not a problem in Python. ---------- nosy: +josh.r _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 16:57:47 2016 From: report at bugs.python.org (Oren Milman) Date: Mon, 02 May 2016 20:57:47 +0000 Subject: [issue26896] mix-up with the terms 'importer', 'finder', 'loader' in the import system and related code In-Reply-To: <1462046496.61.0.778323150916.issue26896@psf.upfronthosting.co.za> Message-ID: <1462222667.37.0.221171976878.issue26896@psf.upfronthosting.co.za> Oren Milman added the comment: thanks for the review! I replied to both of your comments, though I am not sure what is expected of me in the rest of the process. Whatever it is, I would be happy to help as much as I can. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 16:59:11 2016 From: report at bugs.python.org (Peter Norvig) Date: Mon, 02 May 2016 20:59:11 +0000 Subject: [issue26913] statistics.mean of bools Message-ID: <1462222751.06.0.733276334894.issue26913@psf.upfronthosting.co.za> New submission from Peter Norvig: mean([True, True, True, False]) should be 0.75, but it returns 0.25. The fix is to change _sum so that when the type is bool, the result should be coerced to int, not bool. Why it is important for statistics.mean to work with bools: It is natural to say something like mean(x > threshold for x in data) and expect to get the percentage of items in data that are above threshold. ---------- components: Library (Lib) messages: 264670 nosy: Peter.Norvig priority: normal severity: normal status: open title: statistics.mean of bools type: behavior versions: Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 17:05:49 2016 From: report at bugs.python.org (Berker Peksag) Date: Mon, 02 May 2016 21:05:49 +0000 Subject: [issue26913] statistics.mean of bools In-Reply-To: <1462222751.06.0.733276334894.issue26913@psf.upfronthosting.co.za> Message-ID: <1462223149.12.0.819267078403.issue26913@psf.upfronthosting.co.za> Changes by Berker Peksag : ---------- nosy: +steven.daprano _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 17:13:15 2016 From: report at bugs.python.org (Guido van Rossum) Date: Mon, 02 May 2016 21:13:15 +0000 Subject: [issue26219] implement per-opcode cache in ceval In-Reply-To: <1453918500.26.0.0886095278127.issue26219@psf.upfronthosting.co.za> Message-ID: <1462223595.18.0.413749955733.issue26219@psf.upfronthosting.co.za> Guido van Rossum added the comment: OK, I get it. I think it would be really helpful if issue 26110 was updated, reviewed and committed -- it sound like a good idea on its own, and it needs some burn-in time due to the introduction of two new opcodes. (That's especially important since there's also a patch introducing wordcode, i.e. issue 26647 and undoubtedly the two patches will conflict.) It also needs to show benchmark results on its own (but I think you've got that). I am also happy to see the LOAD_GLOBAL optimization, and it alone may be sufficient to save PEP 509 (though I would recommend editing the text of the PEP dramatically to focus on a brief but crisp description of the change itself and the use that LOAD_GLOBAL would make of it and the microbench results; it currently is a pain to read the whole thing). I have to read up on what you're doing to LOAD_ATTR/LOAD_METHOD. In the mean time I wonder how that would fare in a world where most attr lookups are in namedtuples. As a general recommendation I would actually prefer more separate patches (even though it's harder on you), just with very clearly stated relationships between them. A question about the strategy of only optimizing code objects that are called a lot. Doesn't this mean that a "main" function containing a major inner loop doesn't get the optimization it might deserve? PS. I like you a lot but there's no way I'm going to "bare" with you. :-) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 17:23:16 2016 From: report at bugs.python.org (Zachary Ware) Date: Mon, 02 May 2016 21:23:16 +0000 Subject: [issue26912] test/test_email/torture_test.py (and test_asian_codecs.py) has a broken import In-Reply-To: <1462221853.95.0.795708912177.issue26912@psf.upfronthosting.co.za> Message-ID: <1462224196.84.0.57550417114.issue26912@psf.upfronthosting.co.za> Changes by Zachary Ware : ---------- components: +email nosy: +barry, r.david.murray versions: +Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 17:24:42 2016 From: report at bugs.python.org (Zachary Ware) Date: Mon, 02 May 2016 21:24:42 +0000 Subject: [issue26913] statistics.mean of bools In-Reply-To: <1462222751.06.0.733276334894.issue26913@psf.upfronthosting.co.za> Message-ID: <1462224282.75.0.671153128856.issue26913@psf.upfronthosting.co.za> Changes by Zachary Ware : ---------- versions: -Python 3.4 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 17:28:45 2016 From: report at bugs.python.org (Rohit Jamuar) Date: Mon, 02 May 2016 21:28:45 +0000 Subject: [issue26876] Extend MSVCCompiler class to respect environment variables In-Reply-To: <1461866719.82.0.2605655084.issue26876@psf.upfronthosting.co.za> Message-ID: <1462224525.63.0.983931385704.issue26876@psf.upfronthosting.co.za> Rohit Jamuar added the comment: Just so that I understand it clearly - Inside MSVCCompiler class (in _msvccompiler.py / msvccompiler.py / msvc9compiler.py ), current implementation of find_exe() finds compiler / linker / ... after parsing PATH. Should the changes be so, that if DISTUTILS_USE_SDK is set to the environment, the values set to CC / AR / LD, etc. are used verbatim? Or did you mean to say, that just as CC, LD and AR are being read from the environment, the same way rc.exe, mc.exe and mt.exe should be read as well, in case DISTUTILS_USE_SDK is set to the environment? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 17:33:24 2016 From: report at bugs.python.org (R. David Murray) Date: Mon, 02 May 2016 21:33:24 +0000 Subject: [issue26912] test/test_email/torture_test.py (and test_asian_codecs.py) has a broken import In-Reply-To: <1462221853.95.0.795708912177.issue26912@psf.upfronthosting.co.za> Message-ID: <1462224804.46.0.945504857389.issue26912@psf.upfronthosting.co.za> R. David Murray added the comment: torture_test is not currently run, and this is intentional (it uses a large external resource). It is kept for reference and in case anyone wants to run it by hand[*]. The import should be fixed. test_asian_codecs is run automatically by the unittest load tests protocol. That import should be fixed as well since it is picking up the class from the wrong location. [*] At one point I was working on making it run when the largefile resource is asserted, by downloading the resource. But I'm not convinced it is a good idea, so I abandonded that. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 17:38:31 2016 From: report at bugs.python.org (Yury Selivanov) Date: Mon, 02 May 2016 21:38:31 +0000 Subject: [issue26219] implement per-opcode cache in ceval In-Reply-To: <1453918500.26.0.0886095278127.issue26219@psf.upfronthosting.co.za> Message-ID: <1462225111.84.0.657438088135.issue26219@psf.upfronthosting.co.za> Yury Selivanov added the comment: > OK, I get it. I think it would be really helpful if issue 26110 was updated, reviewed and committed -- it sound like a good idea on its own, and it needs some burn-in time due to the introduction of two new opcodes. (That's especially important since there's also a patch introducing wordcode, i.e. issue 26647 and undoubtedly the two patches will conflict.) It also needs to show benchmark results on its own (but I think you've got that). Right. Victor asked me to review the wordcode patch (and maybe even commit), and I'll try to do that this week. LOAD_METHOD/CALL_METHOD patch needs some refactoring, right now it's a PoC-quality. I agree it has to go first. > I am also happy to see the LOAD_GLOBAL optimization, and it alone may be sufficient to save PEP 509 (though I would recommend editing the text of the PEP dramatically to focus on a brief but crisp description of the change itself and the use that LOAD_GLOBAL would make of it and the microbench results; it currently is a pain to read the whole thing). Alright. I'll work on this with Victor. > I have to read up on what you're doing to LOAD_ATTR/LOAD_METHOD. In the mean time I wonder how that would fare in a world where most attr lookups are in namedtuples. I think there will be no difference, but I can add a microbenchmark and see. > As a general recommendation I would actually prefer more separate patches (even though it's harder on you), just with very clearly stated relationships between them. NP. This is a big change to review, and the last thing I want is to accidentally make CPython slower. > A question about the strategy of only optimizing code objects that are called a lot. Doesn't this mean that a "main" function containing a major inner loop doesn't get the optimization it might deserve? Right, the "main" function won't be optimized. There are two reasons of why I added this threshold of 1000 calls before optimizations: 1. We want to limit the memory overhead. We, generally, don't want to optimize module code objects, and code objects that are called just a few times over long periods of time. We can introduce additional heuristic to detect long running loops, but I'm afraid that it will add overhead to the loops that don't need this optimization. 2. We want the environment to become stable -- the builtins and globals namespaces to be fully populated (and, perhaps, mutated), classes fully initialized etc. > PS. I like you a lot but there's no way I'm going to "bare" with you. :-) Haha, this is my typo of the month, I guess ;) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 17:41:14 2016 From: report at bugs.python.org (R. David Murray) Date: Mon, 02 May 2016 21:41:14 +0000 Subject: [issue26913] statistics.mean of bools In-Reply-To: <1462222751.06.0.733276334894.issue26913@psf.upfronthosting.co.za> Message-ID: <1462225274.35.0.573583396521.issue26913@psf.upfronthosting.co.za> R. David Murray added the comment: Already fixed: #24068. ---------- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> statistics module - incorrect results with boolean input _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 17:45:04 2016 From: report at bugs.python.org (Guido van Rossum) Date: Mon, 02 May 2016 21:45:04 +0000 Subject: [issue26219] implement per-opcode cache in ceval In-Reply-To: <1462225111.84.0.657438088135.issue26219@psf.upfronthosting.co.za> Message-ID: Guido van Rossum added the comment: All sounds good. Glad the issue of long-running loops is at least on your radar. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 18:57:25 2016 From: report at bugs.python.org (Ned Batchelder) Date: Mon, 02 May 2016 22:57:25 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 Message-ID: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> New submission from Ned Batchelder: The numbered and bulletted lists are indented from the body text, which looks good in the .rst, but causes the lists themselves to be blockquotes. This leads to confusing formatting on python.org: https://www.python.org/dev/peps/pep-0420/ BTW: this formatting error is rampant among the PEPs... :( ---------- assignee: docs at python components: Documentation files: pep-0420.patch keywords: patch messages: 264677 nosy: docs at python, nedbat priority: normal severity: normal status: open title: Fix formatting of lists in PEP 420 Added file: http://bugs.python.org/file42686/pep-0420.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 19:05:37 2016 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Mon, 02 May 2016 23:05:37 +0000 Subject: [issue21159] configparser.InterpolationMissingOptionError is not very intuitive In-Reply-To: <1396694112.28.0.289974893208.issue21159@psf.upfronthosting.co.za> Message-ID: <1462230337.35.0.902750512087.issue21159@psf.upfronthosting.co.za> ?ukasz Langa added the comment: At this point I agree with Robert. It's public API that predates my changes which was inadequately mocked. I've seen similar problems in the past when we've changed reading file objects to use plain iteration instead of the .readlines() method. I've had people complain that their "file-like object" implementation provided just .readlines() and suddenly stopped working. I can relate to how this caused painful churn. We do try to minimize it. However, it's hard to evolve any code if we can't touch it based on fear of breaking incompletely duck typed third-party code :( Barry, would you still like this to be reverted on Python 3.4? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 19:09:09 2016 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Mon, 02 May 2016 23:09:09 +0000 Subject: [issue26537] ConfigParser has optionxform, but not sectionxform In-Reply-To: <1457678417.52.0.410667040467.issue26537@psf.upfronthosting.co.za> Message-ID: <1462230549.73.0.507944396672.issue26537@psf.upfronthosting.co.za> ?ukasz Langa added the comment: I agree sectionxform would be nice. Care to author a patch? The current workaround is modifying the SECTCRE regular expression. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 19:09:16 2016 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Mon, 02 May 2016 23:09:16 +0000 Subject: [issue26537] ConfigParser has optionxform, but not sectionxform In-Reply-To: <1457678417.52.0.410667040467.issue26537@psf.upfronthosting.co.za> Message-ID: <1462230556.37.0.716057656253.issue26537@psf.upfronthosting.co.za> Changes by ?ukasz Langa : ---------- assignee: -> lukasz.langa _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 19:11:10 2016 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Mon, 02 May 2016 23:11:10 +0000 Subject: [issue20120] Percent-signs (%) in .pypirc should not be interpolated In-Reply-To: <1388825675.42.0.435893533792.issue20120@psf.upfronthosting.co.za> Message-ID: <1462230670.24.0.185890142867.issue20120@psf.upfronthosting.co.za> ?ukasz Langa added the comment: Closing this as setuptools switched to RawConfigParser. ---------- resolution: -> not a bug status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 19:12:30 2016 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Mon, 02 May 2016 23:12:30 +0000 Subject: [issue26812] ExtendedInterpolation drops user-defined 'vars' during _interpolate_some() recursion In-Reply-To: <1461212839.44.0.193061483216.issue26812@psf.upfronthosting.co.za> Message-ID: <1462230750.33.0.406889259326.issue26812@psf.upfronthosting.co.za> ?ukasz Langa added the comment: This is true. Care to author a patch? ---------- assignee: -> lukasz.langa _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 19:19:40 2016 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Mon, 02 May 2016 23:19:40 +0000 Subject: [issue26710] ConfigParser: Values in DEFAULT section override defaults passed to constructor In-Reply-To: <1460041826.4.0.857287965169.issue26710@psf.upfronthosting.co.za> Message-ID: <1462231180.93.0.483662927199.issue26710@psf.upfronthosting.co.za> ?ukasz Langa added the comment: Having both `defaults` and `overrides` would confuse the API, especially given that we already have `fallback` arguments to `get*` methods. What's the point of having overrides *over* a file? Defaults were thought of as a way to say: "unless the user bothered to modify those, the values are as follows". That's the point of configuration. We have defaults, that the *user* overrides. Why would you want to override what the user specified? I fail to understand the logic behind this. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 19:40:18 2016 From: report at bugs.python.org (Gregory P. Smith) Date: Mon, 02 May 2016 23:40:18 +0000 Subject: [issue16385] evaluating literal dict with repeated keys gives no warnings/errors In-Reply-To: <1351859267.72.0.446639729186.issue16385@psf.upfronthosting.co.za> Message-ID: <1462232418.54.0.867969527484.issue16385@psf.upfronthosting.co.za> Gregory P. Smith added the comment: Raising an error on duplicates also has precedent: >>> dict(a=3, b=4, a=5) File "", line 1 SyntaxError: keyword argument repeated ---------- nosy: +gregory.p.smith _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 19:41:07 2016 From: report at bugs.python.org (Ned Batchelder) Date: Mon, 02 May 2016 23:41:07 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <1462232467.17.0.435750471316.issue26914@psf.upfronthosting.co.za> Ned Batchelder added the comment: OK, "rampant" was overly dramatic... :) These PEPs seem to have the same issue: pep-0302.html pep-0327.html pep-0339.html pep-0362.html pep-0364.html pep-0372.html pep-0380.html pep-0382.html pep-0393.html pep-0400.html pep-0403.html pep-0404.html pep-0410.html pep-0416.html pep-0418.html pep-0426.html pep-0432.html pep-0433.html pep-0437.html pep-0446.html pep-0457.html pep-0461.html pep-0472.html pep-0488.html pep-0498.html pep-0628.html pep-3103.html pep-3104.html pep-3108.html pep-3121.html pep-3127.html pep-3131.html pep-3137.html pep-3141.html pep-3147.html pep-3149.html pep-3150.html pep-3156.html ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon May 2 19:47:05 2016 From: report at bugs.python.org (Marc Abramowitz) Date: Mon, 02 May 2016 23:47:05 +0000 Subject: [issue26710] ConfigParser: Values in DEFAULT section override defaults passed to constructor In-Reply-To: <1460041826.4.0.857287965169.issue26710@psf.upfronthosting.co.za> Message-ID: <1462232825.53.0.168723885352.issue26710@psf.upfronthosting.co.za> Marc Abramowitz added the comment: Well my thought is that the configuration file has defaults that a user may want to override at runtime using an environment variable or command-line switch. I guess as SilentGhost pointed out, maybe this is not the responsibility of the ConfigParser as this behavior is not related to config files per se, though it's curious that the ConfigParser allows the user to pass in values in the constructor. Since two people are -1 on this, it seems pretty clear that I am on the wrong track with this, so I think we can close this. ---------- resolution: -> rejected status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 00:10:58 2016 From: report at bugs.python.org (Mark Lawrence) Date: Tue, 03 May 2016 04:10:58 +0000 Subject: [issue18766] IDLE: Autocomplete in editor doesn't work for un-imported modules In-Reply-To: <1376703586.47.0.0617094548794.issue18766@psf.upfronthosting.co.za> Message-ID: <1462248658.72.0.187830486471.issue18766@psf.upfronthosting.co.za> Changes by Mark Lawrence : ---------- nosy: -BreamoreBoy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 00:26:56 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 04:26:56 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <1462249616.99.0.655980031932.issue26914@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: For references: PEP 0302: New Import Hooks PEP 0327: Decimal Data Type PEP 0339: Design of the CPython Compiler PEP 0362: Function Signature Object PEP 0364: Transitioning to the Py3K Standard Library PEP 0372: Adding an ordered dictionary to collections PEP 0380: Syntax for Delegating to a Subgenerator PEP 0382: Namespace Packages PEP 0393: Flexible String Representation PEP 0400: Deprecate codecs.StreamReader and codecs.StreamWriter PEP 0403: General purpose decorator clause (aka "@in" clause) PEP 0404: Python 2.8 Un-release Schedule PEP 0410: Use decimal.Decimal type for timestamps PEP 0416: Add a frozendict builtin type PEP 0418: Add monotonic time, performance counter, and process time functions PEP 0420: Implicit Namespace Packages PEP 0426: Metadata for Python Software Packages 2.0 PEP 0432: Simplifying the CPython startup sequence PEP 0433: Easier suppression of file descriptor inheritance PEP 0437: A DSL for specifying signatures, annotations and argument converters PEP 0446: Make newly created file descriptors non-inheritable PEP 0457: Syntax For Positional-Only Parameters PEP 0461: Adding % formatting to bytes and bytearray PEP 0472: Support for indexing with keyword arguments PEP 0488: Elimination of PYO files PEP 0498: Literal String Interpolation PEP 0628: Add ``math.tau`` PEP 3103: A Switch/Case Statement PEP 3104: Access to Names in Outer Scopes PEP 3108: Standard Library Reorganization PEP 3121: Extension Module Initialization and Finalization PEP 3127: Integer Literal Support and Syntax PEP 3131: Supporting Non-ASCII Identifiers PEP 3137: Immutable Bytes and Mutable Buffer PEP 3141: A Type Hierarchy for Numbers PEP 3147: PYC Repository Directories PEP 3149: ABI version tagged .so files PEP 3150: Statement local namespaces (aka "given" clause) PEP 3156: Asynchronous IO Support Rebooted: the "asyncio" Module ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 00:27:41 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 04:27:41 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <1462249661.96.0.855666711863.issue26914@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- nosy: +georg.brandl _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 00:35:18 2016 From: report at bugs.python.org (Georg Brandl) Date: Tue, 03 May 2016 04:35:18 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <1462250118.75.0.639534162385.issue26914@psf.upfronthosting.co.za> Georg Brandl added the comment: Looks pretty rampant to me :) Anyway, +1 for fixing, you can just do it without review if you have the time. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 02:19:16 2016 From: report at bugs.python.org (Xiang Zhang) Date: Tue, 03 May 2016 06:19:16 +0000 Subject: [issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc Message-ID: <1462256356.96.0.954300432794.issue26915@psf.upfronthosting.co.za> New submission from Xiang Zhang: __contains__ operation in ItemsView, ValuesView and Sequence in collections.abc simply test equality with ==. This introduces inconsistent behaviour with built-in containers when encountering objects like NaN, which does not equal to itself. I asked something about this on core-mentorship, see https://mail.python.org/mailman/private/core-mentorship/2016-April/003543.html. ---------- components: Library (Lib) messages: 264688 nosy: xiang.zhang priority: normal severity: normal status: open title: Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 02:20:37 2016 From: report at bugs.python.org (Xiang Zhang) Date: Tue, 03 May 2016 06:20:37 +0000 Subject: [issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc In-Reply-To: <1462256356.96.0.954300432794.issue26915@psf.upfronthosting.co.za> Message-ID: <1462256437.46.0.952394936493.issue26915@psf.upfronthosting.co.za> Changes by Xiang Zhang : ---------- keywords: +patch Added file: http://bugs.python.org/file42687/issue26915.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 02:23:53 2016 From: report at bugs.python.org (SilentGhost) Date: Tue, 03 May 2016 06:23:53 +0000 Subject: [issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc In-Reply-To: <1462256356.96.0.954300432794.issue26915@psf.upfronthosting.co.za> Message-ID: <1462256633.19.0.964791551177.issue26915@psf.upfronthosting.co.za> Changes by SilentGhost : ---------- nosy: +rhettinger, stutzbach stage: -> patch review type: -> behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 02:24:36 2016 From: report at bugs.python.org (Xiang Zhang) Date: Tue, 03 May 2016 06:24:36 +0000 Subject: [issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc In-Reply-To: <1462256356.96.0.954300432794.issue26915@psf.upfronthosting.co.za> Message-ID: <1462256676.18.0.775192760803.issue26915@psf.upfronthosting.co.za> Xiang Zhang added the comment: Add issue number to test method name. ---------- Added file: http://bugs.python.org/file42688/issue26915_v2.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 02:26:21 2016 From: report at bugs.python.org (SilentGhost) Date: Tue, 03 May 2016 06:26:21 +0000 Subject: [issue26905] from multiprocessing.pool import Pool bug on linux In-Reply-To: <1462182494.66.0.452090779121.issue26905@psf.upfronthosting.co.za> Message-ID: <1462256781.17.0.269564779129.issue26905@psf.upfronthosting.co.za> Changes by SilentGhost : ---------- resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 03:10:54 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 07:10:54 +0000 Subject: [issue26858] setting SO_REUSEPORT fails on android In-Reply-To: <1461677842.81.0.574068471289.issue26858@psf.upfronthosting.co.za> Message-ID: <1462259454.6.0.314916271027.issue26858@psf.upfronthosting.co.za> Xavier de Gaye added the comment: Running the "Search" button on the tracker with "Components" set as "Cross-Build" lists 42 issues (20 in the last year). I guess using this existing category is fine if the titles' issues are prefixed with "android:". ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 03:11:36 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 07:11:36 +0000 Subject: [issue26858] android: setting SO_REUSEPORT fails In-Reply-To: <1461677842.81.0.574068471289.issue26858@psf.upfronthosting.co.za> Message-ID: <1462259496.91.0.365295181366.issue26858@psf.upfronthosting.co.za> Changes by Xavier de Gaye : ---------- title: setting SO_REUSEPORT fails on android -> android: setting SO_REUSEPORT fails _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 03:15:35 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 07:15:35 +0000 Subject: [issue26856] android does not have pwd.getpwall() In-Reply-To: <1461677345.21.0.582848799296.issue26856@psf.upfronthosting.co.za> Message-ID: <1462259735.54.0.788678709049.issue26856@psf.upfronthosting.co.za> Changes by Xavier de Gaye : ---------- components: +Cross-Build nosy: +Alex.Willmer _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 03:18:37 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 07:18:37 +0000 Subject: [issue26852] android: add a COMPILEALL_FLAGS Makefile variable In-Reply-To: <1461674611.23.0.732409522866.issue26852@psf.upfronthosting.co.za> Message-ID: <1462259917.7.0.356882577441.issue26852@psf.upfronthosting.co.za> Changes by Xavier de Gaye : ---------- title: add a COMPILEALL_FLAGS Makefile variable -> android: add a COMPILEALL_FLAGS Makefile variable _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 03:19:05 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 07:19:05 +0000 Subject: [issue26855] android: add platform.android_ver() In-Reply-To: <1461676711.89.0.563475479331.issue26855@psf.upfronthosting.co.za> Message-ID: <1462259945.59.0.834710996856.issue26855@psf.upfronthosting.co.za> Changes by Xavier de Gaye : ---------- title: add platform.android_ver() for android -> android: add platform.android_ver() _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 03:20:17 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 07:20:17 +0000 Subject: [issue26862] android: SYS_getdents64 does not need to be defined on android API 21 In-Reply-To: <1461678588.46.0.828463582716.issue26862@psf.upfronthosting.co.za> Message-ID: <1462260017.04.0.0487900606831.issue26862@psf.upfronthosting.co.za> Changes by Xavier de Gaye : ---------- title: SYS_getdents64 does not need to be defined on android API 21 -> android: SYS_getdents64 does not need to be defined on android API 21 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 03:20:51 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 07:20:51 +0000 Subject: [issue26884] android: cross-compilation of extension module links to the wrong python library In-Reply-To: <1461925930.98.0.579147295527.issue26884@psf.upfronthosting.co.za> Message-ID: <1462260051.95.0.791942712393.issue26884@psf.upfronthosting.co.za> Changes by Xavier de Gaye : ---------- title: cross-compilation of extension module links to the wrong python library -> android: cross-compilation of extension module links to the wrong python library _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 03:36:41 2016 From: report at bugs.python.org (Roundup Robot) Date: Tue, 03 May 2016 07:36:41 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <20160503073637.21667.45381.41DC1C55@psf.io> Roundup Robot added the comment: New changeset 03a4c21ca991 by Berker Peksag in branch 'default': Issue #26914: Fix formatting of lists in PEP 420 https://hg.python.org/peps/rev/03a4c21ca991 ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 03:38:31 2016 From: report at bugs.python.org (Berker Peksag) Date: Tue, 03 May 2016 07:38:31 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <1462261111.33.0.13284587079.issue26914@psf.upfronthosting.co.za> Berker Peksag added the comment: Thanks, I pushed pep-0420.patch. ---------- keywords: +easy nosy: +berker.peksag stage: -> needs patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 03:52:30 2016 From: report at bugs.python.org (Roundup Robot) Date: Tue, 03 May 2016 07:52:30 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <20160503075226.8860.42104.6DA06531@psf.io> Roundup Robot added the comment: New changeset d420d6fe349f by Georg Brandl in branch 'default': Fix lists-in-blockquotes in 3xxx PEPs. Ref: #26914 https://hg.python.org/peps/rev/d420d6fe349f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 04:35:18 2016 From: report at bugs.python.org (Roundup Robot) Date: Tue, 03 May 2016 08:35:18 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <20160503083514.16687.66468.8809BB14@psf.io> Roundup Robot added the comment: New changeset d34c698f63a3 by Georg Brandl in branch 'default': Fix lists-in-blockquotes in 0xxx PEPs. Ref: #26914 https://hg.python.org/peps/rev/d34c698f63a3 New changeset e7200e32b220 by Georg Brandl in branch 'default': Fixup some more lists-in-blockquotes. Fixes #26914. https://hg.python.org/peps/rev/e7200e32b220 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 04:36:46 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 08:36:46 +0000 Subject: [issue26916] Word duplications in PEPs Message-ID: <1462264605.88.0.73387048167.issue26916@psf.upfronthosting.co.za> New submission from Serhiy Storchaka: Proposed patch fixes typos in PEPs that cause words duplications. ---------- assignee: docs at python components: Documentation files: pep_duplicates.patch keywords: patch messages: 264695 nosy: docs at python, martin.panter, serhiy.storchaka priority: normal severity: normal status: open title: Word duplications in PEPs Added file: http://bugs.python.org/file42689/pep_duplicates.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 04:39:03 2016 From: report at bugs.python.org (Georg Brandl) Date: Tue, 03 May 2016 08:39:03 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <1462264743.34.0.853238721078.issue26914@psf.upfronthosting.co.za> Changes by Georg Brandl : ---------- resolution: -> fixed status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 04:40:47 2016 From: report at bugs.python.org (Berker Peksag) Date: Tue, 03 May 2016 08:40:47 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <1462264847.36.0.341948794736.issue26914@psf.upfronthosting.co.za> Changes by Berker Peksag : ---------- stage: needs patch -> resolved _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 04:44:50 2016 From: report at bugs.python.org (Georg Brandl) Date: Tue, 03 May 2016 08:44:50 +0000 Subject: [issue26916] Word duplications in PEPs In-Reply-To: <1462264605.88.0.73387048167.issue26916@psf.upfronthosting.co.za> Message-ID: <1462265090.44.0.776688447365.issue26916@psf.upfronthosting.co.za> Georg Brandl added the comment: LGTM. ---------- nosy: +georg.brandl _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 04:48:27 2016 From: report at bugs.python.org (Armin Rigo) Date: Tue, 03 May 2016 08:48:27 +0000 Subject: [issue26917] Inconsistency in unicodedata.normalize()? Message-ID: <1462265307.72.0.382714967199.issue26917@psf.upfronthosting.co.za> New submission from Armin Rigo: There is an apparent inconsistency in unicodedata.normalize("NFC"), introduced with the switch from the Unicode DB 5.1.0 to 5.2.0 (in Python 2.7). First, please note that my knowledge of unicode is limited, so I may be wrong and the following behavior might be perfectly correct. >>> from unicodedata import normalize >>> print(normalize("NFC", "---\uafb8\u11a7---").encode('utf-8')) b'---\xea\xbe\xb8\xe1\x86\xa7---' # i.e., the same as the input >>> print(normalize("NFC", "---\uafb8\u11a7---\U0002f8a1").encode('utf-8')) b'---\xea\xbe\xb8---\xe3\xa4\xba' Note how in the second example the initial two-character part is replaced with a single character (actually the first of them). This does not occur in the first example. In Python 2.6, both inputs would be normalized to the single-character output. The new behavior introduced in Python 2.7 is to first do a quick-check on the string, and if this `is_normalized()` function returns 1, we know that the string should already be normalized and we return it unmodified. However, the example "\uafb8\u11a7" shows a contradictory behavior: it causes both is_normalized() to return 1, but actual normalization to change it. We can see in the second example above that if, for an unrelated reason, we force is_normalized() to return 0 (by adding some non-normalized character elsewhere in the string), then the "\uafb8\u11a7" is changed. This is a bit unexpected, but I don't know if it is officially correct behavior or if the problem is a bug in `is_normalized()`. ---------- components: Unicode messages: 264697 nosy: arigo, ezio.melotti, haypo priority: normal severity: normal status: open title: Inconsistency in unicodedata.normalize()? type: behavior versions: Python 2.7, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 05:01:37 2016 From: report at bugs.python.org (Armin Rigo) Date: Tue, 03 May 2016 09:01:37 +0000 Subject: [issue26917] Inconsistency in unicodedata.normalize()? In-Reply-To: <1462265307.72.0.382714967199.issue26917@psf.upfronthosting.co.za> Message-ID: <1462266097.35.0.872484881573.issue26917@psf.upfronthosting.co.za> Armin Rigo added the comment: Note: the examples can also be written in this clearer way on Python 3: >>> from unicodedata import normalize >>> print(ascii(normalize("NFC", "---\uafb8\u11a7---"))) '---\uafb8\u11a7---' >>> print(ascii(normalize("NFC", "---\uafb8\u11a7---\U0002f8a1"))) '---\uafb8---\u393a' ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 05:03:41 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 09:03:41 +0000 Subject: [issue26852] android: add a COMPILEALL_FLAGS Makefile variable In-Reply-To: <1461674611.23.0.732409522866.issue26852@psf.upfronthosting.co.za> Message-ID: <1462266221.72.0.896828784709.issue26852@psf.upfronthosting.co.za> Xavier de Gaye added the comment: The python '-E' option was needed on 3.4 when this patch was first implemented and is not needed anymore at the current tip (changeset 2ef61a4747eb, Apr 27 2016). New patch. ---------- Added file: http://bugs.python.org/file42690/compileall-flags_2.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 05:07:10 2016 From: report at bugs.python.org (Roundup Robot) Date: Tue, 03 May 2016 09:07:10 +0000 Subject: [issue26916] Word duplications in PEPs In-Reply-To: <1462264605.88.0.73387048167.issue26916@psf.upfronthosting.co.za> Message-ID: <20160503090705.100786.38829.1B52C6E9@psf.io> Roundup Robot added the comment: New changeset d0b969132758 by Serhiy Storchaka in branch 'default': Issue #26916: Fixed words duplications. https://hg.python.org/peps/rev/d0b969132758 ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 05:11:46 2016 From: report at bugs.python.org (Michael Cuthbert) Date: Tue, 03 May 2016 09:11:46 +0000 Subject: [issue26904] Difflib quick_ratio() could use Counter() In-Reply-To: <1462163353.47.0.300392305122.issue26904@psf.upfronthosting.co.za> Message-ID: <1462266706.02.0.0562781672988.issue26904@psf.upfronthosting.co.za> Michael Cuthbert added the comment: @wolma -- you're right, that the inplace __iand__ version of Counter is substantially faster -- it is still slower than the current code (since it is still basically a superset of it). However, testing shows that it is close enough to the current code as to potentially be worth using it, in order to avoid the same issue that arose here (a small speed tweak in this code prevents it from taking advantage of larger improvements later). If you think that is worth changing, I can make a new patch that incorporates it. I don't have formal benchmarks on it, but quick tests show a 10% regression from the current speedups to using &= instead of the custom summation method. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 05:13:45 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 09:13:45 +0000 Subject: [issue26918] android: test_pipes fails Message-ID: <1462266824.98.0.209704046857.issue26918@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_pipes fails on an android emulator running an x86 system image at API level 21. root at generic_x86:/data/local/tmp # python -m test -v test_pipes == CPython 3.6.0a0 (default:f4c6dab59cd8+, May 3 2016, 10:42:45) [GCC 4.9 20140827 (prerelease)] == Linux-3.4.67+-i686-with-libc little-endian == hash algorithm: fnv 32bit == /data/local/tmp/test_python_1927 Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomiza tion=1, isolated=0) Run tests sequentially 0:00:00 [1/1] test_pipes testBadAppendOptions (test.test_pipes.SimplePipeTests) ... ok testBadOpenMode (test.test_pipes.SimplePipeTests) ... ok testBadPrependOptions (test.test_pipes.SimplePipeTests) ... ok testClone (test.test_pipes.SimplePipeTests) ... ok testEmptyPipeline1 (test.test_pipes.SimplePipeTests) ... ok testEmptyPipeline2 (test.test_pipes.SimplePipeTests) ... ok testEmptyPipeline3 (test.test_pipes.SimplePipeTests) ... ok testReadOpenSink (test.test_pipes.SimplePipeTests) ... ok testRepr (test.test_pipes.SimplePipeTests) ... ok testSetDebug (test.test_pipes.SimplePipeTests) ... ok testSimplePipe1 (test.test_pipes.SimplePipeTests) ... /system/bin/sh: tr: not found FAIL testSimplePipe2 (test.test_pipes.SimplePipeTests) ... sh: tr: not found FAIL testSimplePipe3 (test.test_pipes.SimplePipeTests) ... /system/bin/sh: tr: not found FAIL testWriteOpenSource (test.test_pipes.SimplePipeTests) ... ok ====================================================================== FAIL: testSimplePipe1 (test.test_pipes.SimplePipeTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_pipes.py", line 27, in testSimplePipe1 self.assertEqual(f.read(), 'HELLO WORLD #1') AssertionError: '' != 'HELLO WORLD #1' + HELLO WORLD #1 ====================================================================== FAIL: testSimplePipe2 (test.test_pipes.SimplePipeTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_pipes.py", line 36, in testSimplePipe2 self.assertEqual(f.read(), 'HELLO WORLD #2') AssertionError: '' != 'HELLO WORLD #2' + HELLO WORLD #2 ====================================================================== FAIL: testSimplePipe3 (test.test_pipes.SimplePipeTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_pipes.py", line 45, in testSimplePipe3 self.assertEqual(f.read(), 'HELLO WORLD #2') AssertionError: '' != 'HELLO WORLD #2' + HELLO WORLD #2 ---------------------------------------------------------------------- Ran 14 tests in 0.039s FAILED (failures=3) test test_pipes failed 1 test failed: test_pipes Total duration: 0:00:01 ---------- components: Cross-Build, Library (Lib) messages: 264702 nosy: Alex.Willmer, xdegaye priority: normal severity: normal status: open title: android: test_pipes fails type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 05:18:35 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 09:18:35 +0000 Subject: [issue26919] android: test_cmd_line fails Message-ID: <1462267115.39.0.594600458307.issue26919@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_cmd_line fails on an android emulator running an x86 system image at API level 21. ====================================================================== FAIL: test_non_ascii (test.test_cmd_line.CmdLineTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_cmd_line.py", line 141, in test_non_ascii assert_python_ok('-c', command) File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/support/script_helper.py", line 135, in assert_python_ok return _assert_python(True, *args, **env_vars) File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/support/script_helper.py", line 121, in _assert_python err)) AssertionError: Process return code is 1 command line: ['/data/local/tmp/python/bin/python', '-X', 'faulthandler', '-I', '-c', "assert(ord('\xe6') == 230)"] stdout: --- --- stderr: --- Unable to decode the command from the command line: UnicodeEncodeError: 'utf-8' codec can't encode characters in position 12-13: surrogates not allowed --- ---------------------------------------------------------------------- Ran 33 tests in 1.943s FAILED (failures=1, skipped=1) test test_cmd_line failed 1 test failed: test_cmd_line Total duration: 0:00:03 ---------- components: Cross-Build, Library (Lib) messages: 264703 nosy: Alex.Willmer, xdegaye priority: normal severity: normal status: open title: android: test_cmd_line fails type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 05:25:45 2016 From: report at bugs.python.org (STINNER Victor) Date: Tue, 03 May 2016 09:25:45 +0000 Subject: [issue26917] Inconsistency in unicodedata.normalize()? In-Reply-To: <1462265307.72.0.382714967199.issue26917@psf.upfronthosting.co.za> Message-ID: <1462267545.53.0.914258768336.issue26917@psf.upfronthosting.co.za> STINNER Victor added the comment: Extract of unicodedata_UCD_normalize_impl(): if (strcmp(form, "NFC") == 0) { if (is_normalized(self, input, 1, 0)) { Py_INCREF(input); return input; } return nfc_nfkc(self, input, 0); } is_normalized() is true for "\uafb8\u11a7" but false for "\U0002f8a1" (and also false for "\uafb8\u11a7\U0002f8a1"). unicodedata.normalize("NFC", "\uafb8\u11a7") returns the string unchanged because is_normalized() is true. unicodedata.normalize("NFD", "\uafb8\u11a7") returns "\u1101\u116e\u11a7": U+afb8 is decomposed to {U+1101, U+116e}. unicodedata.normalize("NFC", unicodedata.normalize("NFD", "\uafb8\u11a7")) returns "\uafb8", it's the result of the Hangul Decomposition. {U+1101, U+116e, U+11a7} is composed to {U+afb8}. It may be an issue in the "quickcheck" property of the Python Unicode database. Format of this field: /* The two quickcheck bits at this shift mean 0=Yes, 1=Maybe, 2=No, as described in http://unicode.org/reports/tr15/#Annex8. */ quickcheck_mask = 3 << ((nfc ? 4 : 0) + (k ? 2 : 0)); ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 05:26:22 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 09:26:22 +0000 Subject: [issue26920] android: test_sys fails Message-ID: <1462267582.58.0.744255750518.issue26920@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_sys fails on an android emulator running an x86 system image at API level 21. ... test_implementation (test.test_sys.SysModuleTest) ... ok test_intern (test.test_sys.SysModuleTest) ... ok test_ioencoding (test.test_sys.SysModuleTest) ... ok test_ioencoding_nonascii (test.test_sys.SysModuleTest) ... Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character '\xe6' in position 0: ordinal not in range( 128) FAIL test_is_finalizing (test.test_sys.SysModuleTest) ... ok test_lost_displayhook (test.test_sys.SysModuleTest) ... ok ... ====================================================================== FAIL: test_c_locale_surrogateescape (test.test_sys.SysModuleTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_sys.py", line 709, in test_c_locale_surr ogateescape 'stdin: surrogateescape\n' AssertionError: 'stdin: strict\nstdout: strict\nstderr: backslashreplace\n' != 'stdin: surrogateesca pe\nstdout: surrogateescape\nstderr: backslashreplace\n' - stdin: strict - stdout: strict + stdin: surrogateescape + stdout: surrogateescape stderr: backslashreplace ====================================================================== FAIL: test_ioencoding_nonascii (test.test_sys.SysModuleTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_sys.py", line 638, in test_ioencoding_no nascii self.assertEqual(out, os.fsencode(test.support.FS_NONASCII)) AssertionError: b'' != b'\xc3\xa6' ---------------------------------------------------------------------- Ran 43 tests in 0.913s FAILED (failures=2, skipped=2) test test_sys failed 1 test failed: test_sys Total duration: 0:00:01 ---------- components: Cross-Build, Extension Modules messages: 264705 nosy: Alex.Willmer, lemburg, loewis, xdegaye priority: normal severity: normal status: open title: android: test_sys fails type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 05:35:40 2016 From: report at bugs.python.org (STINNER Victor) Date: Tue, 03 May 2016 09:35:40 +0000 Subject: [issue26917] Inconsistency in unicodedata.normalize()? In-Reply-To: <1462265307.72.0.382714967199.issue26917@psf.upfronthosting.co.za> Message-ID: <1462268140.51.0.974105555681.issue26917@psf.upfronthosting.co.za> STINNER Victor added the comment: I tested http://minaret.info/test/normalize.msp (1) ?? (afb8 11a7) --NFC or NFKC--> ?? (afb8, 11a7) === same than python ?? (afb8 11a7) --NFD or NFKD--> ??? (1101 116e, 11a7) === same than python (2) ??? (1101 116e 11a7) --NFC or NFKC--> ? (afb8) === same than python ??? (1101 116e 11a7) --NFC or NFKC--> ??? (1101 116e, 11a7) === same than python (3) ??? (afb8 11a7 2f8a1) --NFC or NFKC--> ??? (afb8, 11a7, 393a) == DIFFERENT than python, python eats the U+11a7 character ??? (afb8 11a7 2f8a1) --NFD or NFKD--> ???? (1101 116e, 11a7, 393a) === same than python ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 05:36:18 2016 From: report at bugs.python.org (STINNER Victor) Date: Tue, 03 May 2016 09:36:18 +0000 Subject: [issue26917] unicodedata.normalize(): bug in Hangul Composition In-Reply-To: <1462265307.72.0.382714967199.issue26917@psf.upfronthosting.co.za> Message-ID: <1462268178.5.0.53651215878.issue26917@psf.upfronthosting.co.za> Changes by STINNER Victor : ---------- title: Inconsistency in unicodedata.normalize()? -> unicodedata.normalize(): bug in Hangul Composition _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 06:01:41 2016 From: report at bugs.python.org (STINNER Victor) Date: Tue, 03 May 2016 10:01:41 +0000 Subject: [issue26917] unicodedata.normalize(): bug in Hangul Composition In-Reply-To: <1462265307.72.0.382714967199.issue26917@psf.upfronthosting.co.za> Message-ID: <1462269701.85.0.753085346225.issue26917@psf.upfronthosting.co.za> STINNER Victor added the comment: Extract of nfc_nfkc(): /* Hangul Composition. We don't need to check for pairs, since we always have decomposed data. */ code = PyUnicode_READ(kind, data, i); if (LBase <= code && code < (LBase+LCount) && i + 1 < len && VBase <= PyUnicode_READ(kind, data, i+1) && PyUnicode_READ(kind, data, i+1) <= (VBase+VCount)) { int LIndex, VIndex; LIndex = code - LBase; VIndex = PyUnicode_READ(kind, data, i+1) - VBase; code = SBase + (LIndex*VCount+VIndex)*TCount; i+=2; if (i < len && TBase <= PyUnicode_READ(kind, data, i) && PyUnicode_READ(kind, data, i) <= (TBase+TCount)) { code += PyUnicode_READ(kind, data, i)-TBase; i++; } output[o++] = code; continue; } With the input string (1101 116e, 11a7), we get: * LIndex = 1 * VIndex = 13 code = SBase + (LIndex*VCount+VIndex)*TCount + (ch3 - TBase) = 0xAC00 + (1 * 21 + 13) * 28 + 0 = 0xafb8 Constants: * LBase = 0x1100, LCount = 19 * VBase = 0x1161, VCount = 21 * TBase = 0x11A7, TCount = 28 * SBase = 0xAC00 The problem is maybe than we used the 3rd character whereas (ch3 - TBase) is equal to 0. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 06:02:11 2016 From: report at bugs.python.org (STINNER Victor) Date: Tue, 03 May 2016 10:02:11 +0000 Subject: [issue26917] unicodedata.normalize(): bug in Hangul Composition In-Reply-To: <1462265307.72.0.382714967199.issue26917@psf.upfronthosting.co.za> Message-ID: <1462269731.68.0.194610629093.issue26917@psf.upfronthosting.co.za> STINNER Victor added the comment: Attached patch changes Hangul Composition. I'm not sure that it is correct. ---------- keywords: +patch Added file: http://bugs.python.org/file42691/hangul_composition.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 06:04:53 2016 From: report at bugs.python.org (Michael Cuthbert) Date: Tue, 03 May 2016 10:04:53 +0000 Subject: [issue26904] Difflib quick_ratio() could use Counter() In-Reply-To: <1462163353.47.0.300392305122.issue26904@psf.upfronthosting.co.za> Message-ID: <1462269893.87.0.276317581652.issue26904@psf.upfronthosting.co.za> Michael Cuthbert added the comment: Here are the results I obtained along with the test code I used to get the results. The test code also has a "hybrid" code which I did not propose, but maybe I should have, which uses the old code for very short (but not degenerate) tests and then the new code for larger tests. It does add code complexity however. Results: SpeedResult(wordLen=0, tests=1000001, cached=True, oldNew='old', time='1.22 ?sec') SpeedResult(wordLen=0, tests=1000001, cached=True, oldNew='new', time='525 nsec') SpeedResult(wordLen=0, tests=1000001, cached=True, oldNew='hybrid', time='522 nsec') SpeedResult(wordLen=0, tests=1000001, cached=False, oldNew='old', time='1.78 ?sec') SpeedResult(wordLen=0, tests=1000001, cached=False, oldNew='new', time='605 nsec') SpeedResult(wordLen=0, tests=1000001, cached=False, oldNew='hybrid', time='617 nsec') SpeedResult(wordLen=1, tests=500001, cached=True, oldNew='old', time='1.76 ?sec') SpeedResult(wordLen=1, tests=500001, cached=True, oldNew='new', time='11.4 ?sec') SpeedResult(wordLen=1, tests=500001, cached=True, oldNew='hybrid', time='2.64 ?sec') SpeedResult(wordLen=1, tests=500001, cached=False, oldNew='old', time='3.07 ?sec') SpeedResult(wordLen=1, tests=500001, cached=False, oldNew='new', time='19.6 ?sec') SpeedResult(wordLen=1, tests=500001, cached=False, oldNew='hybrid', time='3.9 ?sec') SpeedResult(wordLen=5, tests=166667, cached=True, oldNew='old', time='3.2 ?sec') SpeedResult(wordLen=5, tests=166667, cached=True, oldNew='new', time='14.4 ?sec') SpeedResult(wordLen=5, tests=166667, cached=True, oldNew='hybrid', time='3.98 ?sec') SpeedResult(wordLen=5, tests=166667, cached=False, oldNew='old', time='5.16 ?sec') SpeedResult(wordLen=5, tests=166667, cached=False, oldNew='new', time='21.8 ?sec') SpeedResult(wordLen=5, tests=166667, cached=False, oldNew='hybrid', time='6.14 ?sec') SpeedResult(wordLen=20, tests=47620, cached=True, oldNew='old', time='9.01 ?sec') SpeedResult(wordLen=20, tests=47620, cached=True, oldNew='new', time='22.4 ?sec') SpeedResult(wordLen=20, tests=47620, cached=True, oldNew='hybrid', time='9.79 ?sec') SpeedResult(wordLen=20, tests=47620, cached=False, oldNew='old', time='14.2 ?sec') SpeedResult(wordLen=20, tests=47620, cached=False, oldNew='new', time='32.2 ?sec') SpeedResult(wordLen=20, tests=47620, cached=False, oldNew='hybrid', time='15.8 ?sec') SpeedResult(wordLen=60, tests=16394, cached=True, oldNew='old', time='22.2 ?sec') SpeedResult(wordLen=60, tests=16394, cached=True, oldNew='new', time='34.9 ?sec') SpeedResult(wordLen=60, tests=16394, cached=True, oldNew='hybrid', time='35.9 ?sec') SpeedResult(wordLen=60, tests=16394, cached=False, oldNew='old', time='39.4 ?sec') SpeedResult(wordLen=60, tests=16394, cached=False, oldNew='new', time='51.9 ?sec') SpeedResult(wordLen=60, tests=16394, cached=False, oldNew='hybrid', time='50.7 ?sec') SpeedResult(wordLen=200, tests=4976, cached=True, oldNew='old', time='68.8 ?sec') SpeedResult(wordLen=200, tests=4976, cached=True, oldNew='new', time='55.8 ?sec') SpeedResult(wordLen=200, tests=4976, cached=True, oldNew='hybrid', time='54.9 ?sec') SpeedResult(wordLen=200, tests=4976, cached=False, oldNew='old', time='116 ?sec') SpeedResult(wordLen=200, tests=4976, cached=False, oldNew='new', time='75.4 ?sec') SpeedResult(wordLen=200, tests=4976, cached=False, oldNew='hybrid', time='76.6 ?sec') SpeedResult(wordLen=1000, tests=1000, cached=True, oldNew='old', time='320 ?sec') SpeedResult(wordLen=1000, tests=1000, cached=True, oldNew='new', time='109 ?sec') SpeedResult(wordLen=1000, tests=1000, cached=True, oldNew='hybrid', time='111 ?sec') SpeedResult(wordLen=1000, tests=1000, cached=False, oldNew='old', time='529 ?sec') SpeedResult(wordLen=1000, tests=1000, cached=False, oldNew='new', time='183 ?sec') SpeedResult(wordLen=1000, tests=1000, cached=False, oldNew='hybrid', time='175 ?sec') SpeedResult(wordLen=10000, tests=100, cached=True, oldNew='old', time='3.15 msec') SpeedResult(wordLen=10000, tests=100, cached=True, oldNew='new', time='651 ?sec') SpeedResult(wordLen=10000, tests=100, cached=True, oldNew='hybrid', time='673 ?sec') SpeedResult(wordLen=10000, tests=100, cached=False, oldNew='old', time='5.18 msec') SpeedResult(wordLen=10000, tests=100, cached=False, oldNew='new', time='1.25 msec') SpeedResult(wordLen=10000, tests=100, cached=False, oldNew='hybrid', time='1.24 msec') SpeedResult(wordLen=100000, tests=10, cached=True, oldNew='old', time='33.8 msec') SpeedResult(wordLen=100000, tests=10, cached=True, oldNew='new', time='8.35 msec') SpeedResult(wordLen=100000, tests=10, cached=True, oldNew='hybrid', time='8.33 msec') SpeedResult(wordLen=100000, tests=10, cached=False, oldNew='old', time='53.3 msec') SpeedResult(wordLen=100000, tests=10, cached=False, oldNew='new', time='15.2 msec') SpeedResult(wordLen=100000, tests=10, cached=False, oldNew='hybrid', time='15.3 msec') SpeedResult(wordLen=1000000, tests=1, cached=True, oldNew='old', time='551 msec') SpeedResult(wordLen=1000000, tests=1, cached=True, oldNew='new', time='168 msec') SpeedResult(wordLen=1000000, tests=1, cached=True, oldNew='hybrid', time='158 msec') SpeedResult(wordLen=10000000, tests=1, cached=True, oldNew='old', time='5.48 sec') SpeedResult(wordLen=10000000, tests=1, cached=True, oldNew='new', time='1.61 sec') SpeedResult(wordLen=10000000, tests=1, cached=True, oldNew='hybrid', time='1.62 sec') ---------- Added file: http://bugs.python.org/file42692/fasterDifflib.py _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 06:22:19 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 10:22:19 +0000 Subject: [issue26921] Incorrect usage of a/an articles in PEPs Message-ID: <1462270938.38.0.294058819503.issue26921@psf.upfronthosting.co.za> New submission from Serhiy Storchaka: Proposed patch fixes the usage of a/an articles in PEPs. ---------- assignee: docs at python components: Documentation files: pep_articles.patch keywords: patch messages: 264710 nosy: docs at python, georg.brandl, martin.panter, serhiy.storchaka priority: normal severity: normal status: open title: Incorrect usage of a/an articles in PEPs Added file: http://bugs.python.org/file42693/pep_articles.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 06:29:22 2016 From: report at bugs.python.org (Armin Rigo) Date: Tue, 03 May 2016 10:29:22 +0000 Subject: [issue26917] unicodedata.normalize(): bug in Hangul Composition In-Reply-To: <1462265307.72.0.382714967199.issue26917@psf.upfronthosting.co.za> Message-ID: <1462271362.88.0.721035930399.issue26917@psf.upfronthosting.co.za> Armin Rigo added the comment: See also https://bitbucket.org/pypy/pypy/issues/2289/incorrect-unicode-normalization . It seems that you reached the same conclusion than the OP in that issue: the problem would really be that normalizing "\uafb8\u11a7" should not drop the second character. Both Python and PyPy do that, but Python adds the "is_normalized()" check, so in some cases it returns the correct unmodified result. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 06:42:45 2016 From: report at bugs.python.org (Ned Batchelder) Date: Tue, 03 May 2016 10:42:45 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <1462272165.7.0.865567591099.issue26914@psf.upfronthosting.co.za> Ned Batchelder added the comment: Unless I have permissions I've never used, I don't think I can just push fixes to the peps repo. Also, it looks like Georg is working away at it! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 06:46:03 2016 From: report at bugs.python.org (Georg Brandl) Date: Tue, 03 May 2016 10:46:03 +0000 Subject: [issue26921] Incorrect usage of a/an articles in PEPs In-Reply-To: <1462270938.38.0.294058819503.issue26921@psf.upfronthosting.co.za> Message-ID: <1462272363.33.0.584579591795.issue26921@psf.upfronthosting.co.za> Georg Brandl added the comment: Also LGTM. It's easy to spot PEPs written by French people :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 06:47:41 2016 From: report at bugs.python.org (Georg Brandl) Date: Tue, 03 May 2016 10:47:41 +0000 Subject: [issue26914] Fix formatting of lists in PEP 420 In-Reply-To: <1462229844.3.0.0802177041097.issue26914@psf.upfronthosting.co.za> Message-ID: <1462272461.95.0.598068728657.issue26914@psf.upfronthosting.co.za> Georg Brandl added the comment: Yep, they should all be gone. I tried to make sure by running the sources through docutils and finding nested
nodes. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 06:52:39 2016 From: report at bugs.python.org (Roundup Robot) Date: Tue, 03 May 2016 10:52:39 +0000 Subject: [issue26921] Incorrect usage of a/an articles in PEPs In-Reply-To: <1462270938.38.0.294058819503.issue26921@psf.upfronthosting.co.za> Message-ID: <20160503105234.100806.1068.0E7E1C4C@psf.io> Roundup Robot added the comment: New changeset d617c7ba4e14 by Serhiy Storchaka in branch 'default': Issue #26921: Fixed a/an articles. https://hg.python.org/peps/rev/d617c7ba4e14 ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 06:53:07 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 10:53:07 +0000 Subject: [issue26916] Word duplications in PEPs In-Reply-To: <1462264605.88.0.73387048167.issue26916@psf.upfronthosting.co.za> Message-ID: <1462272787.26.0.502820578729.issue26916@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- resolution: -> fixed stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 06:53:51 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 10:53:51 +0000 Subject: [issue26921] Incorrect usage of a/an articles in PEPs In-Reply-To: <1462270938.38.0.294058819503.issue26921@psf.upfronthosting.co.za> Message-ID: <1462272831.78.0.249519892873.issue26921@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Thank you for reviews Georg. ---------- resolution: -> fixed stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 08:20:34 2016 From: report at bugs.python.org (Antoine Pitrou) Date: Tue, 03 May 2016 12:20:34 +0000 Subject: [issue26922] build from fresh checkout fails Message-ID: <1462278034.88.0.00181655793676.issue26922@psf.upfronthosting.co.za> New submission from Antoine Pitrou: Building from a fresh checkout with "./configure" followed by "make -j4" fails here: $ make -j4 [... snip ...] ./python -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' Current thread 0x00007fa1b6f48700 (most recent call first): Aborted generate-posix-vars failed Makefile:598: recipe for target 'pybuilddir.txt' failed make: *** [pybuilddir.txt] Error 1 ---------- components: Build messages: 264717 nosy: pitrou priority: normal severity: normal status: open title: build from fresh checkout fails type: compile error versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 08:21:05 2016 From: report at bugs.python.org (Antoine Pitrou) Date: Tue, 03 May 2016 12:21:05 +0000 Subject: [issue26922] build from fresh checkout fails In-Reply-To: <1462278034.88.0.00181655793676.issue26922@psf.upfronthosting.co.za> Message-ID: <1462278065.68.0.449156022442.issue26922@psf.upfronthosting.co.za> Antoine Pitrou added the comment: $ cat /etc/os-release NAME="Ubuntu" VERSION="15.04 (Vivid Vervet)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 15.04" VERSION_ID="15.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 08:50:06 2016 From: report at bugs.python.org (Johannes Ebke) Date: Tue, 03 May 2016 12:50:06 +0000 Subject: [issue26923] asyncio.gather drops cancellation Message-ID: <1462279806.1.0.880381545595.issue26923@psf.upfronthosting.co.za> New submission from Johannes Ebke: In a very specific case, asyncio.gather causes a cancel() call on the Task waiting on the _GatheringFuture to return a false positive. An example program demonstrating this is attached. The context: asyncio.gather creates a _GatheringFuture with a list of child Futures. Each child Future carries a done callback that updates the _GatheringFuture, and once the last child done callback is executed, the _GatheringFuture sets its result. The specific situation: When the last child future changes state to done it schedules its done callbacks, but does not immediately execute them. If the Task waiting on the gather is then cancelled before the last child done callback has run, the cancel method in asyncio/tasks.py:578 determines that the _GatheringFuture inspects itself and sees that it is not done() yet, and proceeds to cancel all child futures - which has no effect, since all of them are already done(). It still returns True, so the Tasks thinks all is well, and proceeds with its execution. The behaviour I would expect is that if cancel() is called on the _GatheringFuture, and all children return False on cancel(), then _GatheringFuture.cancel() should also return False, i.e.: def cancel(self): if self.done(): return False at_least_one_child_cancelled = False for child in self._children: if child.cancel(): at_least_one_child_cancelled = True return at_least_one_child_cancelled If I replace _GatheringFuture.cancel with the above variant, the bug disappears for me. More context: We hit this bug sporadically in an integration test of aioredis, where some timings conspired to make it appear with a chance of about 1 in 10. The minimal example calls the cancellation in a done_callback, so that it always hits the window. This was not the way the bug was discovered. ---------- components: asyncio files: cancellation_test.py messages: 264719 nosy: JohannesEbke, gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: asyncio.gather drops cancellation type: behavior versions: Python 3.5 Added file: http://bugs.python.org/file42694/cancellation_test.py _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 09:05:56 2016 From: report at bugs.python.org (Thomas Kluyver) Date: Tue, 03 May 2016 13:05:56 +0000 Subject: [issue26039] More flexibility in zipfile write interface In-Reply-To: <1452179451.89.0.468945044395.issue26039@psf.upfronthosting.co.za> Message-ID: <1462280756.33.0.124616552676.issue26039@psf.upfronthosting.co.za> Thomas Kluyver added the comment: Any further review comments on this? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 09:37:56 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 13:37:56 +0000 Subject: [issue26924] android: test_concurrent_futures fails Message-ID: <1462282676.16.0.612748828.issue26924@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_concurrent_futures fails on an android emulator running an x86 system image at API level 21. There are multiple ERRORs, all resulting in the same traceback: Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_concurrent_futures.py", line 68, in setU p self.executor = self.executor_type(max_workers=self.worker_count) File "/sdcard/org.bitbucket.pyona/lib/python3.6/concurrent/futures/process.py", line 390, in __init__ EXTRA_QUEUED_CALLS) File "/sdcard/org.bitbucket.pyona/lib/python3.6/multiprocessing/context.py", line 101, in Queue return Queue(maxsize, ctx=self.get_context()) File "/sdcard/org.bitbucket.pyona/lib/python3.6/multiprocessing/queues.py", line 42, in __init__ self._rlock = ctx.Lock() File "/sdcard/org.bitbucket.pyona/lib/python3.6/multiprocessing/context.py", line 66, in Lock return Lock(ctx=self.get_context()) File "/sdcard/org.bitbucket.pyona/lib/python3.6/multiprocessing/synchronize.py", line 163, in __in it__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) File "/sdcard/org.bitbucket.pyona/lib/python3.6/multiprocessing/synchronize.py", line 60, in __ini t__ unlink_now) OSError: [Errno 38] Function not implemented The ERRORs: =========== test_duplicate_futures (test.test_concurrent_futures.ProcessPoolAsCompletedTests) ... ERROR test_no_timeout (test.test_concurrent_futures.ProcessPoolAsCompletedTests) ... ERROR test_zero_timeout (test.test_concurrent_futures.ProcessPoolAsCompletedTests) ... ERROR test_killed_child (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR test_map (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR test_map_chunksize (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR test_map_exception (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR test_map_timeout (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR test_max_workers_negative (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR test_no_stale_references (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR test_shutdown_race_issue12456 (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR test_submit (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR test_submit_keyword (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR test_traceback (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR test_context_manager_shutdown (test.test_concurrent_futures.ProcessPoolShutdownTest) ... ERROR test_del_shutdown (test.test_concurrent_futures.ProcessPoolShutdownTest) ... ERROR test_hang_issue12364 (test.test_concurrent_futures.ProcessPoolShutdownTest) ... ERROR test_interpreter_shutdown (test.test_concurrent_futures.ProcessPoolShutdownTest) ... ERROR test_processes_terminate (test.test_concurrent_futures.ProcessPoolShutdownTest) ... ERROR test_run_after_shutdown (test.test_concurrent_futures.ProcessPoolShutdownTest) ... ERROR test_all_completed (test.test_concurrent_futures.ProcessPoolWaitTests) ... ERROR test_first_completed (test.test_concurrent_futures.ProcessPoolWaitTests) ... ERROR test_first_completed_some_already_completed (test.test_concurrent_futures.ProcessPoolWaitTests) ... ERROR test_first_exception (test.test_concurrent_futures.ProcessPoolWaitTests) ... ERROR test_first_exception_one_already_failed (test.test_concurrent_futures.ProcessPoolWaitTests) ... ERROR test_first_exception_some_already_complete (test.test_concurrent_futures.ProcessPoolWaitTests) ... ERROR test_timeout (test.test_concurrent_futures.ProcessPoolWaitTests) ... ERROR ---------- components: Cross-Build, Library (Lib) messages: 264721 nosy: Alex.Willmer, bquinlan, xdegaye priority: normal severity: normal status: open title: android: test_concurrent_futures fails type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 09:44:21 2016 From: report at bugs.python.org (STINNER Victor) Date: Tue, 03 May 2016 13:44:21 +0000 Subject: [issue26923] asyncio.gather drops cancellation In-Reply-To: <1462279806.1.0.880381545595.issue26923@psf.upfronthosting.co.za> Message-ID: <1462283061.74.0.0815977154142.issue26923@psf.upfronthosting.co.za> STINNER Victor added the comment: The doc: https://docs.python.org/dev/library/asyncio-task.html#asyncio.gather "Cancellation: if the outer Future is cancelled, all children (that have not completed yet) are also cancelled. If any child is cancelled, this is treated as if it raised CancelledError ? the outer Future is not cancelled in this case. (This is to prevent the cancellation of one child to cause other children to be cancelled.)" (Sorry, I didn't read your issue yet.) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 09:46:52 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 13:46:52 +0000 Subject: [issue26925] android: test_multiprocessing_main_handling fails Message-ID: <1462283212.06.0.365791110432.issue26925@psf.upfronthosting.co.za> New submission from Xavier de Gaye: All the tests of test_multiprocessing_main_handling fail on an android emulator running an x86 system image at API level 21. See the attached test_output.txt file. ---------- components: Cross-Build, Library (Lib) files: test_output.txt messages: 264723 nosy: Alex.Willmer, jnoller, sbt, xdegaye priority: normal severity: normal status: open title: android: test_multiprocessing_main_handling fails type: behavior versions: Python 3.6 Added file: http://bugs.python.org/file42695/test_output.txt _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 09:49:35 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 13:49:35 +0000 Subject: [issue26925] android: test_multiprocessing_main_handling fails In-Reply-To: <1462283212.06.0.365791110432.issue26925@psf.upfronthosting.co.za> Message-ID: <1462283375.05.0.260879783264.issue26925@psf.upfronthosting.co.za> Xavier de Gaye added the comment: This seems to be related to issue #26924. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 09:55:37 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 13:55:37 +0000 Subject: [issue26926] android: test_io fails Message-ID: <1462283737.14.0.888848894928.issue26926@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_io fails on an android emulator running an x86 system image at API level 21. ====================================================================== ERROR: test_large_file_ops (test.test_io.CIOTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_io.py", line 537, in test_large_file_ops self.large_file_ops(f) File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_io.py", line 330, in large_file_ops self.assertEqual(f.seek(self.LARGE), self.LARGE) OverflowError: Python int too large to convert to C long ====================================================================== ERROR: test_large_file_ops (test.test_io.PyIOTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_io.py", line 537, in test_large_file_ops self.large_file_ops(f) File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_io.py", line 330, in large_file_ops self.assertEqual(f.seek(self.LARGE), self.LARGE) File "/sdcard/org.bitbucket.pyona/lib/python3.6/_pyio.py", line 1632, in seek return os.lseek(self._fd, pos, whence) OverflowError: Python int too large to convert to C long ---------------------------------------------------------------------- Ran 541 tests in 32.829s FAILED (errors=2, skipped=8) test test_io failed test_io took 33 sec 1 test failed: test_io Total duration: 0:00:33 ---------- components: Cross-Build, Library (Lib) messages: 264725 nosy: Alex.Willmer, benjamin.peterson, stutzbach, xdegaye priority: normal severity: normal status: open title: android: test_io fails type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 10:00:33 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 14:00:33 +0000 Subject: [issue26927] android: test_mmap fails Message-ID: <1462284033.57.0.466364918672.issue26927@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_mmap fails on an android emulator running an x86 system image at API level 21. ====================================================================== ERROR: test_large_filesize (test.test_mmap.LargeMmapTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_mmap.py", line 755, in test_large_filesize with self._make_test_file(0x17FFFFFFF, b" ") as f: File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_mmap.py", line 738, in _make_test_file f.seek(num_zeroes) ValueError: cannot fit 'int' into an offset-sized integer ====================================================================== ERROR: test_large_offset (test.test_mmap.LargeMmapTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_mmap.py", line 750, in test_large_offset with self._make_test_file(0x14FFFFFFF, b" ") as f: File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_mmap.py", line 738, in _make_test_file f.seek(num_zeroes) ValueError: cannot fit 'int' into an offset-sized integer ---------------------------------------------------------------------- Ran 35 tests in 0.134s FAILED (errors=2, skipped=6) test test_mmap failed 1 test failed: test_mmap Total duration: 0:00:01 ---------- components: Cross-Build, Library (Lib) messages: 264726 nosy: Alex.Willmer, twouters, xdegaye priority: normal severity: normal status: open title: android: test_mmap fails type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 10:02:54 2016 From: report at bugs.python.org (Johannes Ebke) Date: Tue, 03 May 2016 14:02:54 +0000 Subject: [issue26923] asyncio.gather drops cancellation In-Reply-To: <1462279806.1.0.880381545595.issue26923@psf.upfronthosting.co.za> Message-ID: <1462284174.46.0.233483858699.issue26923@psf.upfronthosting.co.za> Johannes Ebke added the comment: Thank you for providing the relevant documentation link. I just noticed that it should probably be clarified that in case the outer Future is cancelled, and all children that are not already done ignore the cancellation (a.k.a. catch the CancelledError), the cancellation of the outer Future does not continue. This is different to the behaviour of asyncio.wait_for, which always raises a CancelledError. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 10:06:05 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 14:06:05 +0000 Subject: [issue26928] android: test_site fails Message-ID: <1462284365.5.0.819379627022.issue26928@psf.upfronthosting.co.za> New submission from Xavier de Gaye: One test of test_site fails on an android emulator running an x86 system image at API level 21. See the attached test_output.txt file. ---------- components: Cross-Build, Library (Lib) files: test_output.txt messages: 264728 nosy: Alex.Willmer, xdegaye priority: normal severity: normal status: open title: android: test_site fails type: behavior versions: Python 3.6 Added file: http://bugs.python.org/file42696/test_output.txt _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 10:11:51 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 14:11:51 +0000 Subject: [issue26929] android: test_strptime fails Message-ID: <1462284711.76.0.324696843297.issue26929@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_strptime fails on an android emulator running an x86 system image at API level 21. See the attached test_output.txt file. ---------- components: Cross-Build, Library (Lib) files: test_output.txt messages: 264729 nosy: Alex.Willmer, belopolsky, lemburg, xdegaye priority: normal severity: normal status: open title: android: test_strptime fails type: behavior versions: Python 3.6 Added file: http://bugs.python.org/file42697/test_output.txt _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 10:15:53 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 14:15:53 +0000 Subject: [issue26906] format(object.__reduce__) fails intermittently In-Reply-To: <1462194444.45.0.679859267338.issue26906@psf.upfronthosting.co.za> Message-ID: <1462284953.37.0.912852453483.issue26906@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: There is similar issue on 3.x: >>> import array >>> it = iter(array.array('i')) >>> format(it) Traceback (most recent call last): File "", line 1, in TypeError: Type arrayiterator doesn't define __format__ >>> type(it).__format__ >>> format(it) '' ---------- versions: +Python 3.5, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 10:19:34 2016 From: report at bugs.python.org (Alex Gaynor) Date: Tue, 03 May 2016 14:19:34 +0000 Subject: [issue26930] Upgrade installers to OpenSSL 1.0.2h Message-ID: <1462285174.78.0.332365810571.issue26930@psf.upfronthosting.co.za> New submission from Alex Gaynor: https://www.openssl.org/news/secadv/20160503.txt ---------- keywords: security_issue messages: 264731 nosy: alex, ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Upgrade installers to OpenSSL 1.0.2h _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 10:25:01 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 14:25:01 +0000 Subject: [issue26931] android: test_distutils fails Message-ID: <1462285501.44.0.0195995288955.issue26931@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_distutils fails on an android emulator running an x86 system image at API level 21. See the attached test_output.txt file. Some of these failed tests could be skipped, supposing that native compilation of extension modules on android itself (as opposed to using cross-compilation) is not supported. ---------- components: Cross-Build, Library (Lib) files: test_output.txt messages: 264732 nosy: Alex.Willmer, dstufft, eric.araujo, xdegaye priority: normal severity: normal status: open title: android: test_distutils fails type: behavior versions: Python 3.6 Added file: http://bugs.python.org/file42698/test_output.txt _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 10:44:04 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 14:44:04 +0000 Subject: [issue26932] android: test_posix fails Message-ID: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_posix fails on an android emulator running an x86 system image at API level 21. For the first ERROR, on android we have instead of a list of group IDs: root at generic_x86:/data/local/tmp # id -G uid=0(root) gid=0(root) groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:su:s0 ====================================================================== ERROR: test_getgroups (test.test_posix.PosixTester) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_posix.py", line 815, in test_getgroups set([int(x) for x in groups.split()]), File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_posix.py", line 815, in set([int(x) for x in groups.split()]), ValueError: invalid literal for int() with base 10: 'uid=0(root)' ====================================================================== ERROR: test_rtld_constants (test.test_posix.PosixTester) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_posix.py", line 1128, in test_rtld_constants posix.RTLD_LAZY AttributeError: module 'posix' has no attribute 'RTLD_LAZY' ---------------------------------------------------------------------- Ran 83 tests in 0.114s FAILED (errors=2, skipped=11) test test_posix failed 1 test failed: test_posix Total duration: 0:00:01 ---------- components: Cross-Build, Library (Lib) messages: 264733 nosy: Alex.Willmer, larry, xdegaye priority: normal severity: normal status: open title: android: test_posix fails type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 10:50:47 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 14:50:47 +0000 Subject: [issue26933] android: test_posixpath fails Message-ID: <1462287047.8.0.736502543167.issue26933@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_posixpath fails on an android emulator running an x86 system image at API level 21. On android we have: root at generic_x86:/data/local/tmp # python Python 3.6.0a0 (default:f4c6dab59cd8+, May 3 2016, 10:42:45) [GCC 4.9 20140827 (prerelease)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import posixpath, pwd, os >>> posixpath.expanduser("~") '/data' >>> pwd.getpwuid(os.getuid()).pw_dir '/' >>> Test results: ====================================================================== FAIL: test_expanduser (test.test_posixpath.PosixPathTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_posixpath.py", line 247, in test_expanduser self.assertEqual(posixpath.expanduser("~"), home.rstrip("/")) AssertionError: '/' != '' - / + ---------------------------------------------------------------------- Ran 54 tests in 0.046s FAILED (failures=1) test test_posixpath failed 1 test failed: test_posixpath Total duration: 0:00:01 ---------- components: Cross-Build, Library (Lib) messages: 264734 nosy: Alex.Willmer, larry, xdegaye priority: normal severity: normal status: open title: android: test_posixpath fails type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 10:58:24 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 14:58:24 +0000 Subject: [issue26934] android: test_faulthandler fails Message-ID: <1462287504.69.0.311102051296.issue26934@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_faulthandler fails on an android emulator running an x86 system image at API level 21. See the attached test_output.txt file. ---------- components: Cross-Build, Library (Lib) files: test_output.txt messages: 264735 nosy: Alex.Willmer, haypo, xdegaye priority: normal severity: normal status: open title: android: test_faulthandler fails type: behavior versions: Python 3.6 Added file: http://bugs.python.org/file42699/test_output.txt _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 11:03:21 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 15:03:21 +0000 Subject: [issue26935] android: test_os fails Message-ID: <1462287800.22.0.0769666286965.issue26935@psf.upfronthosting.co.za> New submission from Xavier de Gaye: One test of test_os fails on an android emulator running an x86 system image at API level 21. See the attached test_output.txt file. ---------- components: Cross-Build, Library (Lib) files: test_output.txt messages: 264736 nosy: Alex.Willmer, loewis, xdegaye priority: normal severity: normal status: open title: android: test_os fails type: behavior versions: Python 3.6 Added file: http://bugs.python.org/file42700/test_output.txt _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 11:10:46 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 15:10:46 +0000 Subject: [issue26936] android: test_socket fails Message-ID: <1462288246.37.0.495121419926.issue26936@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_socket fails on an android emulator running an x86 system image at API level 21. ====================================================================== ERROR: testGetServBy (test.test_socket.GeneralModuleTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_socket.py", line 913, in testGetServBy port2 = socket.getservbyname(service) OSError: service/proto not found ====================================================================== ERROR: testGetaddrinfo (test.test_socket.GeneralModuleTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_socket.py", line 1240, in testGetaddrinfo socket.getaddrinfo(HOST, "http") File "/sdcard/org.bitbucket.pyona/lib/python3.6/socket.py", line 732, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 9] servname not supported for ai_socktype ---------------------------------------------------------------------- Ran 530 tests in 26.702s FAILED (errors=2, skipped=75) test test_socket failed 1 test failed: test_socket Total duration: 0:00:27 ---------- components: Cross-Build, Library (Lib) messages: 264737 nosy: Alex.Willmer, xdegaye priority: normal severity: normal status: open title: android: test_socket fails type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 11:14:27 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 15:14:27 +0000 Subject: [issue26937] android: test_tarfile fails Message-ID: <1462288467.92.0.772791237683.issue26937@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_tarfile fails on an android emulator running an x86 system image at API level 21. ====================================================================== [0/9481] FAIL: test_extract_with_numeric_owner (test.test_tarfile.NumericOwnerTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/mock.py", line 1175, in patched return func(*args, **keywargs) File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_tarfile.py", line 2483, in test_extract_ with_numeric_owner any_order=True) File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/mock.py", line 856, in assert_has_calls ) from cause AssertionError: (call('/data/local/tmp/test_python_2938/@test_2938_tmp-tardir/numeric-owner-testfile ', 99, 98), call('/data/local/tmp/test_python_2938/@test_2938_tmp-tardir/dir/numeric-owner-testfile' , 88, 87)) not all found in call list ====================================================================== FAIL: test_extractall_with_numeric_owner (test.test_tarfile.NumericOwnerTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/mock.py", line 1175, in patched return func(*args, **keywargs) File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_tarfile.py", line 2503, in test_extracta ll_with_numeric_owner any_order=True) File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/mock.py", line 856, in assert_has_calls ) from cause AssertionError: (call('/data/local/tmp/test_python_2938/@test_2938_tmp-tardir/numeric-owner-testfile ', 99, 98), call('/data/local/tmp/test_python_2938/@test_2938_tmp-tardir/dir', 77, 76), call('/data/ local/tmp/test_python_2938/@test_2938_tmp-tardir/dir/numeric-owner-testfile', 88, 87)) not all found in call list ---------------------------------------------------------------------- Ran 426 tests in 5.549s FAILED (failures=2, skipped=80) test test_tarfile failed 1 test failed: test_tarfile Total duration: 0:00:06 ---------- components: Cross-Build, Library (Lib) messages: 264738 nosy: Alex.Willmer, lars.gustaebel, xdegaye priority: normal severity: normal status: open title: android: test_tarfile fails type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 11:26:15 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 15:26:15 +0000 Subject: [issue26933] android: test_posixpath fails In-Reply-To: <1462287047.8.0.736502543167.issue26933@psf.upfronthosting.co.za> Message-ID: <1462289175.83.0.717204678952.issue26933@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This is a duplicate of issue24950. ---------- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> FAIL: test_expanduser when $HOME=/ _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 11:26:28 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 15:26:28 +0000 Subject: [issue24950] FAIL: test_expanduser when $HOME=/ In-Reply-To: <1440732506.26.0.0296213798936.issue24950@psf.upfronthosting.co.za> Message-ID: <1462289188.35.0.610098906964.issue24950@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- assignee: -> serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 11:32:10 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 15:32:10 +0000 Subject: [issue26938] android: test_concurrent_futures hangs on armv7 Message-ID: <1462289530.91.0.204802241019.issue26938@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_concurrent_futures hangs on an android emulator running an armv7 system image (but not on x86) at API level 21. The test suite hangs at: test_pending_calls_race (test.test_concurrent_futures.ThreadPoolWaitTests) ... A cause of this problem may be related to the fact that the android arm emulator runs very, very slowly. ---------- components: Cross-Build, Library (Lib) messages: 264740 nosy: Alex.Willmer, bquinlan, xdegaye priority: normal severity: normal status: open title: android: test_concurrent_futures hangs on armv7 type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 11:33:39 2016 From: report at bugs.python.org (Antoine Pitrou) Date: Tue, 03 May 2016 15:33:39 +0000 Subject: [issue26922] build from fresh checkout fails In-Reply-To: <1462278034.88.0.00181655793676.issue26922@psf.upfronthosting.co.za> Message-ID: <1462289619.28.0.900334777077.issue26922@psf.upfronthosting.co.za> Antoine Pitrou added the comment: Note this is a data point of how obscure and hard to debug the current early startup phase is :-) ---------- nosy: +ncoghlan _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 11:37:46 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 15:37:46 +0000 Subject: [issue26939] android: test_functools hangs on armv7 Message-ID: <1462289866.52.0.349587333392.issue26939@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_functools hangs on an android emulator running an armv7 system image (but not on x86) at API level 21. The test suite hangs at test_lru_cache_threaded (test.test_functools.TestLRUC) ... A cause of this problem may be related to the fact that the android arm emulator runs very, very slowly. ---------- components: Cross-Build, Library (Lib) messages: 264742 nosy: Alex.Willmer, ncoghlan, rhettinger, xdegaye priority: normal severity: normal status: open title: android: test_functools hangs on armv7 type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 11:42:14 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 15:42:14 +0000 Subject: [issue26940] android: test_importlib hangs on armv7 Message-ID: <1462290134.16.0.615698223309.issue26940@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_importlib hangs on an android emulator running an armv7 system image (but not on x86) at API level 21. The test suite hangs at test_deadlock (test.test_importlib.test_locks.Frozen_DeadlockAvoidanceTests) ... A cause of this problem may be related to the fact that the android arm emulator runs very, very slowly. ---------- components: Cross-Build, Library (Lib) messages: 264743 nosy: Alex.Willmer, brett.cannon, xdegaye priority: normal severity: normal status: open title: android: test_importlib hangs on armv7 type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 11:47:06 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 15:47:06 +0000 Subject: [issue26941] android: test_threading hangs on armv7 Message-ID: <1462290426.09.0.613967464154.issue26941@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_threading hangs on an android emulator running an armv7 system image (but not on x86) at API level 21. The test suite hangs at test_is_alive_after_fork (test.test_threading.ThreadTests) ... A cause of this problem may be related to the fact that the android arm emulator runs very, very slowly. ---------- components: Cross-Build, Library (Lib) messages: 264744 nosy: Alex.Willmer, xdegaye priority: normal severity: normal status: open title: android: test_threading hangs on armv7 type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 11:53:09 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 15:53:09 +0000 Subject: [issue26942] android: test_ctypes crashes on armv7 Message-ID: <1462290789.53.0.483745295219.issue26942@psf.upfronthosting.co.za> New submission from Xavier de Gaye: test_ctypes crashes on an android emulator running an armv7 system image (but not on x86) at API level 21. 143|root at generic:/data/local/tmp # python -m test -v test_ctypes == CPython 3.6.0a0 (default:f4c6dab59cd8+, May 3 2016, 17:24:17) [GCC 4.9 20140827 (prerelease)] == Linux-3.4.67-01422-gd3ffcc7-dirty-armv7l-with-libc little-endian == hash algorithm: fnv 32bit == /data/local/tmp/test_python_2301 Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomiza tion=1, isolated=0) Run tests sequentially 0:00:00 [1/1] test_ctypes test_anon (ctypes.test.test_anon.AnonTest) ... ok test_anon_nonmember (ctypes.test.test_anon.AnonTest) ... ok test_anon_nonseq (ctypes.test.test_anon.AnonTest) ... ok test_nested (ctypes.test.test_anon.AnonTest) ... ok test (ctypes.test.test_array_in_pointer.Test) ... ok test_2 (ctypes.test.test_array_in_pointer.Test) ... ok test_bad_subclass (ctypes.test.test_arrays.ArrayTestCase) ... ok test_cache (ctypes.test.test_arrays.ArrayTestCase) ... ok test_classcache (ctypes.test.test_arrays.ArrayTestCase) ... ok test_from_address (ctypes.test.test_arrays.ArrayTestCase) ... ok test_from_addressW (ctypes.test.test_arrays.ArrayTestCase) ... ok test_numeric_arrays (ctypes.test.test_arrays.ArrayTestCase) ... ok test_simple (ctypes.test.test_arrays.ArrayTestCase) ... ok test_subclass (ctypes.test.test_arrays.ArrayTestCase) ... ok test_byval (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase) ... ok test_callbacks (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase) ... Fatal Python error : Segmentation fault Current thread 0xb6f2eec8 (most recent call first): File "/sdcard/org.bitbucket.pyona/lib/python3.6/ctypes/test/test_as_parameter.py", line 85 in test _callbacks File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/case.py", line 600 in run File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/case.py", line 648 in __call__ File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 122 in run File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 84 in __call__ File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 122 in run File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 84 in __call__ File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 122 in run File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 84 in __call__ File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 122 in run File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 84 in __call__ File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 122 in run File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 84 in __call__ File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/runner.py", line 176 in run File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/support/__init__.py", line 1802 in _run_suite File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/support/__init__.py", line 1836 in run_unitte st File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/runtest.py", line 166 in test_run ner File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/runtest.py", line 167 in runtest_ inner File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/runtest.py", line 131 in runtest File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/main.py", line 332 in run_tests_s equential File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/main.py", line 402 in run_tests File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/main.py", line 462 in _main File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/main.py", line 442 in main File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/main.py", line 504 in main File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/__main__.py", line 2 in File "/sdcard/org.bitbucket.pyona/lib/python3.6/runpy.py", line 85 in _run_code File "/sdcard/org.bitbucket.pyona/lib/python3.6/runpy.py", line 184 in _run_module_as_main Segmentation fault ---------- components: Cross-Build, Library (Lib) messages: 264745 nosy: Alex.Willmer, amaury.forgeotdarc, belopolsky, meador.inge, xdegaye priority: normal severity: normal status: open title: android: test_ctypes crashes on armv7 type: crash versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 12:03:22 2016 From: report at bugs.python.org (Xiang Zhang) Date: Tue, 03 May 2016 16:03:22 +0000 Subject: [issue26537] ConfigParser has optionxform, but not sectionxform In-Reply-To: <1457678417.52.0.410667040467.issue26537@psf.upfronthosting.co.za> Message-ID: <1462291402.03.0.215332498835.issue26537@psf.upfronthosting.co.za> Changes by Xiang Zhang : ---------- nosy: +xiang.zhang _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 12:04:59 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 16:04:59 +0000 Subject: [issue26865] Meta-issue: support of the android platform In-Reply-To: <1461685011.99.0.617135447086.issue26865@psf.upfronthosting.co.za> Message-ID: <1462291499.6.0.0196355613619.issue26865@psf.upfronthosting.co.za> Xavier de Gaye added the comment: All the dependencies of this issue are tagged with Components:Cross-Build and a title starting with 'android'. Tests that fail on an android emulator running an x86 system image at API level 21: issue #26918: android: test_pipes fails issue #26919: android: test_cmd_line fails issue #26920: android: test_sys fails issue #26924: android: test_concurrent_futures fails issue #26925: android: test_multiprocessing_main_handling fails issue #26926: android: test_io fails issue #26927: android: test_mmap fails issue #26928: android: test_site fails issue #26929: android: test_strptime fails issue #26931: android: test_distutils fails issue #26932: android: test_posix fails issue #26933: android: test_posixpath fails issue #26934: android: test_faulthandler fails issue #26935: android: test_os fails issue #26936: android: test_socket fails issue #26937: android: test_tarfile fails Tests that fail on an android emulator running an armv7 system image (but not fail on x86) at API level 21: issue #26938: android: test_concurrent_futures hangs on armv7 issue #26939: android: test_functools hangs on armv7 issue #26940: android: test_importlib hangs on armv7 issue #26941: android: test_threading hangs on armv7 issue #26942: android: test_ctypes crashes on armv7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 12:09:18 2016 From: report at bugs.python.org (Brett Cannon) Date: Tue, 03 May 2016 16:09:18 +0000 Subject: [issue26922] build from fresh checkout fails In-Reply-To: <1462278034.88.0.00181655793676.issue26922@psf.upfronthosting.co.za> Message-ID: <1462291758.41.0.845692276891.issue26922@psf.upfronthosting.co.za> Brett Cannon added the comment: That exception usually stems from when importlib.h has an error in it. ---------- nosy: +brett.cannon _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 12:10:45 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 16:10:45 +0000 Subject: [issue26933] android: test_posixpath fails In-Reply-To: <1462287047.8.0.736502543167.issue26933@psf.upfronthosting.co.za> Message-ID: <1462291845.35.0.233452690207.issue26933@psf.upfronthosting.co.za> Xavier de Gaye added the comment: That was fast! Thanks Serhiy. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 12:59:32 2016 From: report at bugs.python.org (Xiang Zhang) Date: Tue, 03 May 2016 16:59:32 +0000 Subject: [issue26696] Document collections.abc.ByteString In-Reply-To: <1459881544.79.0.834895685887.issue26696@psf.upfronthosting.co.za> Message-ID: <1462294772.5.0.523905891428.issue26696@psf.upfronthosting.co.za> Changes by Xiang Zhang : ---------- nosy: +xiang.zhang _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 13:30:39 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 17:30:39 +0000 Subject: [issue26933] android: test_posixpath fails In-Reply-To: <1462287047.8.0.736502543167.issue26933@psf.upfronthosting.co.za> Message-ID: <1462296639.29.0.0802655333509.issue26933@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I'll push a patch for issue24950 in short time. Try to search precedences for other your issues. May be they have patches, additional information or experienced people. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 13:52:43 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 17:52:43 +0000 Subject: [issue26933] android: test_posixpath fails In-Reply-To: <1462287047.8.0.736502543167.issue26933@psf.upfronthosting.co.za> Message-ID: <1462297963.11.0.830990259.issue26933@psf.upfronthosting.co.za> Xavier de Gaye added the comment: You are right. I will do that. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 14:10:46 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 18:10:46 +0000 Subject: [issue24950] FAIL: test_expanduser when $HOME=/ In-Reply-To: <1440732506.26.0.0296213798936.issue24950@psf.upfronthosting.co.za> Message-ID: <1462299046.89.0.288509246288.issue24950@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Yet one corner case is empty HOME value. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 14:19:06 2016 From: report at bugs.python.org (Roundup Robot) Date: Tue, 03 May 2016 18:19:06 +0000 Subject: [issue24950] FAIL: test_expanduser when $HOME=/ In-Reply-To: <1440732506.26.0.0296213798936.issue24950@psf.upfronthosting.co.za> Message-ID: <20160503181900.31605.65206.2C030FC9@psf.io> Roundup Robot added the comment: New changeset 194b356c84f5 by Serhiy Storchaka in branch '3.5': Issue #24950: Fixed expanduser tests when the users home directory in pwd is "/". https://hg.python.org/cpython/rev/194b356c84f5 New changeset b9b99cb85a5f by Serhiy Storchaka in branch 'default': Issue #24950: Fixed expanduser tests when the users home directory in pwd is "/". https://hg.python.org/cpython/rev/b9b99cb85a5f ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 14:47:51 2016 From: report at bugs.python.org (Jason R. Coombs) Date: Tue, 03 May 2016 18:47:51 +0000 Subject: [issue20120] Percent-signs (%) in .pypirc should not be interpolated In-Reply-To: <1388825675.42.0.435893533792.issue20120@psf.upfronthosting.co.za> Message-ID: <1462301271.25.0.615856212265.issue20120@psf.upfronthosting.co.za> Jason R. Coombs added the comment: ?ukasz, my proposal was to also update distutils (in all Python versions that get bugfixes) to match the Setuptools behavior and Python 2 behavior. I'd still like to do that to harmonize the implementations. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 14:50:05 2016 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Tue, 03 May 2016 18:50:05 +0000 Subject: [issue20120] Percent-signs (%) in .pypirc should not be interpolated In-Reply-To: <1388825675.42.0.435893533792.issue20120@psf.upfronthosting.co.za> Message-ID: <1462301405.23.0.867401547824.issue20120@psf.upfronthosting.co.za> ?ukasz Langa added the comment: Oh, my bad. Yeah, that sounds like a worthwhile change. ---------- resolution: not a bug -> status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 14:50:29 2016 From: report at bugs.python.org (Steve Dower) Date: Tue, 03 May 2016 18:50:29 +0000 Subject: [issue26876] Extend MSVCCompiler class to respect environment variables In-Reply-To: <1461866719.82.0.2605655084.issue26876@psf.upfronthosting.co.za> Message-ID: <1462301429.76.0.682544432056.issue26876@psf.upfronthosting.co.za> Steve Dower added the comment: I was thinking more like this: if DISTUTILS_USE_SDK: assume PATH is configured execute os.getenv("CC", "cl.exe") directly else: find VS in the registry execute "cl.exe" etc. The only change here from the current situation is preferring the CC variable in the former case when it is set. When we look up VS in the registry, we know what executable we are going to find and overriding them via the environment is only going to cause issues/vulnerabilities. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 15:07:46 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 19:07:46 +0000 Subject: [issue26939] android: test_functools hangs on armv7 In-Reply-To: <1462289866.52.0.349587333392.issue26939@psf.upfronthosting.co.za> Message-ID: <1462302466.42.0.213956676056.issue26939@psf.upfronthosting.co.za> Xavier de Gaye added the comment: The attached test_output.txt file is the corresponding gdb backtrace[1]. Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that hang on arm use sys.setswitchinterval() aggressively. [1] The backtrace is interleaved with: * Python Exception 'utf8' codec can't decode byte 0xb8 in posit ion 0: invalid start byte: that seem to come from libpython, the python that is embeded in gdb to pretty-print gdb output * ---Type to continue, or q to quit--- sorry, had to resort to copy/paste, gdb 'set logging' does not seem to work ---------- Added file: http://bugs.python.org/file42701/test_output.txt _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 15:08:54 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 19:08:54 +0000 Subject: [issue24950] FAIL: test_expanduser when $HOME=/ In-Reply-To: <1440732506.26.0.0296213798936.issue24950@psf.upfronthosting.co.za> Message-ID: <1462302534.55.0.334413468835.issue24950@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 15:10:39 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 19:10:39 +0000 Subject: [issue26938] android: test_concurrent_futures hangs on armv7 In-Reply-To: <1462289530.91.0.204802241019.issue26938@psf.upfronthosting.co.za> Message-ID: <1462302639.01.0.101091448436.issue26938@psf.upfronthosting.co.za> Xavier de Gaye added the comment: Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that hang on arm use sys.setswitchinterval() aggressively. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 15:10:58 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 19:10:58 +0000 Subject: [issue26940] android: test_importlib hangs on armv7 In-Reply-To: <1462290134.16.0.615698223309.issue26940@psf.upfronthosting.co.za> Message-ID: <1462302658.73.0.916378403605.issue26940@psf.upfronthosting.co.za> Xavier de Gaye added the comment: Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that hang on arm use sys.setswitchinterval() aggressively. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 15:11:15 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 19:11:15 +0000 Subject: [issue26941] android: test_threading hangs on armv7 In-Reply-To: <1462290426.09.0.613967464154.issue26941@psf.upfronthosting.co.za> Message-ID: <1462302675.78.0.0480281773594.issue26941@psf.upfronthosting.co.za> Xavier de Gaye added the comment: Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that hang on arm use sys.setswitchinterval() aggressively. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 15:41:56 2016 From: report at bugs.python.org (Geoffrey Sneddon) Date: Tue, 03 May 2016 19:41:56 +0000 Subject: [issue17909] Autodetecting JSON encoding In-Reply-To: <1367759430.76.0.988181674037.issue17909@psf.upfronthosting.co.za> Message-ID: <1462304516.41.0.509803077209.issue17909@psf.upfronthosting.co.za> Changes by Geoffrey Sneddon : ---------- nosy: +gsnedders _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 15:47:23 2016 From: report at bugs.python.org (=?utf-8?b?0JzQsNGA0Log0JrQvtGA0LXQvdCx0LXRgNCz?=) Date: Tue, 03 May 2016 19:47:23 +0000 Subject: [issue26039] More flexibility in zipfile write interface In-Reply-To: <1452179451.89.0.468945044395.issue26039@psf.upfronthosting.co.za> Message-ID: <1462304843.85.0.477602130274.issue26039@psf.upfronthosting.co.za> Changes by ???? ????????? : ---------- nosy: -mmarkk _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 15:53:12 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 19:53:12 +0000 Subject: [issue26929] android: test_strptime fails In-Reply-To: <1462284711.76.0.324696843297.issue26929@psf.upfronthosting.co.za> Message-ID: <1462305192.65.0.171880788906.issue26929@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: What is the output of following code? import datetime for i in range(1, 10): print(datetime.date(1905, 1, i).strftime('%Y %U %w %G %V %u')) ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 16:02:55 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 20:02:55 +0000 Subject: [issue26929] android: test_strptime fails In-Reply-To: <1462284711.76.0.324696843297.issue26929@psf.upfronthosting.co.za> Message-ID: <1462305775.4.0.647984349223.issue26929@psf.upfronthosting.co.za> Xavier de Gaye added the comment: root at generic_x86:/data/local/tmp # python Python 3.6.0a0 (default:f4c6dab59cd8+, May 3 2016, 21:59:47) [GCC 4.9 20140827 (prerelease)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import datetime >>> for i in range(1, 10): ... print(datetime.date(1905, 1, i).strftime('%Y %U %w %G %V %u')) ... 1905 01 0 1904 53 7 1905 01 1 1905 01 1 1905 01 2 1905 01 2 1905 01 3 1905 01 3 1905 01 4 1905 01 4 1905 01 5 1905 01 5 1905 01 6 1905 01 6 1905 02 0 1905 01 7 1905 02 1 1905 02 1 >>> ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 16:13:14 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 20:13:14 +0000 Subject: [issue26929] android: test_strptime fails In-Reply-To: <1462284711.76.0.324696843297.issue26929@psf.upfronthosting.co.za> Message-ID: <1462306394.88.0.2993788444.issue26929@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Thanks. And what is the output of following code? for i in range(25, 32): print(datetime.date(1904, 12, i).strftime('%Y %U %w %G %V %u')) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 16:21:15 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 20:21:15 +0000 Subject: [issue26929] android: test_strptime fails In-Reply-To: <1462284711.76.0.324696843297.issue26929@psf.upfronthosting.co.za> Message-ID: <1462306875.55.0.787697969763.issue26929@psf.upfronthosting.co.za> Xavier de Gaye added the comment: >>> for i in range(25, 32): ... print(datetime.date(1904, 12, i).strftime('%Y %U %w %G %V %u')) ... 1904 52 0 1904 51 7 1904 52 1 1904 52 1 1904 52 2 1904 52 2 1904 52 3 1904 52 3 1904 52 4 1904 52 4 1904 52 5 1904 52 5 1904 52 6 1904 52 6 >>> ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 16:30:22 2016 From: report at bugs.python.org (Josh Rosenberg) Date: Tue, 03 May 2016 20:30:22 +0000 Subject: [issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc In-Reply-To: <1462256356.96.0.954300432794.issue26915@psf.upfronthosting.co.za> Message-ID: <1462307422.39.0.966758020958.issue26915@psf.upfronthosting.co.za> Josh Rosenberg added the comment: At some point someone really needs to decide if the C layer behavior of performing an identity test before full equality checking is something that should be emulated at the Python layer or not. The current state seems ridiculous, where C containers check identity first simply by using the easier RichCompareBool function, while Python containers have to have the identity-then-equality check rewritten explicitly, which feels like a DRY violation. Makes it harder for non-CPython implementations too, since they end up either not matching CPython behavior, or writing extra code to match the CPython quirks. I have nothing against this patch, but between PyObject_RichCompareBool and the various slightly strange behaviors in the argument parsing format codes (which leads to silly workarounds like _check_int_field in #20858), I feel like the Python code base is getting cluttered with hacks to emulate the hacky C layer. ---------- nosy: +josh.r _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 16:34:23 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 20:34:23 +0000 Subject: [issue26929] android: test_strptime fails In-Reply-To: <1462284711.76.0.324696843297.issue26929@psf.upfronthosting.co.za> Message-ID: <1462307663.3.0.148192674445.issue26929@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Thus there is a gap between 1904-12-31 and 1905-1-1. This is a bug in strftime() on Android. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 16:40:36 2016 From: report at bugs.python.org (Josh Rosenberg) Date: Tue, 03 May 2016 20:40:36 +0000 Subject: [issue26219] implement per-opcode cache in ceval In-Reply-To: <1453918500.26.0.0886095278127.issue26219@psf.upfronthosting.co.za> Message-ID: <1462308036.13.0.300068579991.issue26219@psf.upfronthosting.co.za> Changes by Josh Rosenberg : ---------- nosy: +josh.r _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 16:40:54 2016 From: report at bugs.python.org (Josh Rosenberg) Date: Tue, 03 May 2016 20:40:54 +0000 Subject: [issue26110] Speedup method calls 1.2x In-Reply-To: <1452791347.05.0.923215900831.issue26110@psf.upfronthosting.co.za> Message-ID: <1462308054.24.0.172820562516.issue26110@psf.upfronthosting.co.za> Changes by Josh Rosenberg : ---------- nosy: +josh.r _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 16:48:39 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 20:48:39 +0000 Subject: [issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc In-Reply-To: <1462256356.96.0.954300432794.issue26915@psf.upfronthosting.co.za> Message-ID: <1462308519.5.0.21317760374.issue26915@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- assignee: -> rhettinger nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 16:49:45 2016 From: report at bugs.python.org (Andy Edwards) Date: Tue, 03 May 2016 20:49:45 +0000 Subject: [issue23003] traceback.{print_exc, print_exception, format_exc, format_exception}: Potential AttributeError In-Reply-To: <1417909047.64.0.652633919593.issue23003@psf.upfronthosting.co.za> Message-ID: <1462308585.18.0.332928320687.issue23003@psf.upfronthosting.co.za> Andy Edwards added the comment: I'm seeing this issue in Python 2.7.... Andys-MacBook-Pro:jcore-api-py andy$ which python /Library/Frameworks/Python.framework/Versions/2.7/bin/python Andys-MacBook-Pro:jcore-api-py andy$ python setup.py test running test running egg_info writing requirements to jcore_api.egg-info/requires.txt writing jcore_api.egg-info/PKG-INFO writing top-level names to jcore_api.egg-info/top_level.txt writing dependency_links to jcore_api.egg-info/dependency_links.txt reading manifest file 'jcore_api.egg-info/SOURCES.txt' writing manifest file 'jcore_api.egg-info/SOURCES.txt' running build_ext ..................... ---------------------------------------------------------------------- Ran 21 tests in 3.423s OK Andys-MacBook-Pro:jcore-api-py andy$ python setup.py test running test running egg_info writing requirements to jcore_api.egg-info/requires.txt writing jcore_api.egg-info/PKG-INFO writing top-level names to jcore_api.egg-info/top_level.txt writing dependency_links to jcore_api.egg-info/dependency_links.txt reading manifest file 'jcore_api.egg-info/SOURCES.txt' writing manifest file 'jcore_api.egg-info/SOURCES.txt' running build_ext ..................... ---------------------------------------------------------------------- Ran 21 tests in 3.422s OK Exception in thread jcore.io receiver: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/Users/andy/jcore-api-py/jcore_api/_connection.py", line 104, in _run_recv_thread traceback.print_exc() AttributeError: 'NoneType' object has no attribute 'print_exc' ---------- nosy: +jedwards1211 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 17:05:46 2016 From: report at bugs.python.org (Yih-En Andrew Ban) Date: Tue, 03 May 2016 21:05:46 +0000 Subject: [issue26812] ExtendedInterpolation drops user-defined 'vars' during _interpolate_some() recursion In-Reply-To: <1461212839.44.0.193061483216.issue26812@psf.upfronthosting.co.za> Message-ID: <1462309546.48.0.744893316297.issue26812@psf.upfronthosting.co.za> Yih-En Andrew Ban added the comment: Sure, patch attached. ---------- keywords: +patch Added file: http://bugs.python.org/file42702/issue26812.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 17:08:28 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Tue, 03 May 2016 21:08:28 +0000 Subject: [issue26929] android: test_strptime fails In-Reply-To: <1462284711.76.0.324696843297.issue26929@psf.upfronthosting.co.za> Message-ID: <1462309708.28.0.406831463479.issue26929@psf.upfronthosting.co.za> Xavier de Gaye added the comment: GNU libc says: ?%V? The ISO 8601:1988 week number as a decimal number (range ?01? through ?53?). ISO weeks start with Monday and end with Sunday. Week ?01? of a year is the first week which has the majority of its days in that year; this is equivalent to the week containing the year?s first Thursday, and it is also equivalent to the week containing January 4. Week ?01? of a year can contain days from the previous year. The week before week ?01? of a year is the last week (?52? or ?53?) of the previous year even if it contains days from the new year. This format was first standardized by POSIX.2-1992 and by ISO C99. So on 1905-1-1, %V should be 52 instead of 53 as printed by android; is this the only bug ? A pretty good test to find such a mistake. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 17:27:26 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 21:27:26 +0000 Subject: [issue26929] android: test_strptime fails In-Reply-To: <1462284711.76.0.324696843297.issue26929@psf.upfronthosting.co.za> Message-ID: <1462310846.88.0.430344550009.issue26929@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: There is other bug at the last week of a year: import datetime for i in range(25, 32): print(datetime.date(1906, 12, i).strftime('%Y %U %w %G %V %u')) for i in range(1, 10): print(datetime.date(1907, 1, i).strftime('%Y %U %w %G %V %u')) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 17:32:06 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 21:32:06 +0000 Subject: [issue26926] android: test_io fails In-Reply-To: <1462283737.14.0.888848894928.issue26926@psf.upfronthosting.co.za> Message-ID: <1462311126.73.0.0104195992183.issue26926@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This looks similar to issue11184. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 17:35:48 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 21:35:48 +0000 Subject: [issue26927] android: test_mmap fails In-Reply-To: <1462284033.57.0.466364918672.issue26927@psf.upfronthosting.co.za> Message-ID: <1462311348.02.0.830606130676.issue26927@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This is other manifestation of issue26926. ---------- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> android: test_io fails _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 17:54:30 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 03 May 2016 21:54:30 +0000 Subject: [issue26932] android: test_posix fails In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <1462312470.98.0.825014907085.issue26932@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: What RTLD_* constants exist on Android? ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 22:34:20 2016 From: report at bugs.python.org (Xiang Zhang) Date: Wed, 04 May 2016 02:34:20 +0000 Subject: [issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc In-Reply-To: <1462256356.96.0.954300432794.issue26915@psf.upfronthosting.co.za> Message-ID: <1462329260.22.0.625333388237.issue26915@psf.upfronthosting.co.za> Xiang Zhang added the comment: I agree with you josh. Actually that's what I want to know, consistency. But I don't mention it in my post, so Guido only gives what to do in this case. In this thread, it means does Python code have to keep the invariant mentioned in msg75735? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 22:54:00 2016 From: report at bugs.python.org (Chi Hsuan Yen) Date: Wed, 04 May 2016 02:54:00 +0000 Subject: [issue26932] android: test_posix fails In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <1462330440.65.0.809144863752.issue26932@psf.upfronthosting.co.za> Chi Hsuan Yen added the comment: On Android RTLD_* constants are not defined via macros but as enum values. I guess CPython needs to check each one in configure.ac. See [1] [1] https://android.googlesource.com/platform/bionic/+/master/libc/include/dlfcn.h ---------- nosy: +Chi Hsuan Yen _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 23:10:18 2016 From: report at bugs.python.org (Nick Coghlan) Date: Wed, 04 May 2016 03:10:18 +0000 Subject: [issue26922] build from fresh checkout fails In-Reply-To: <1462278034.88.0.00181655793676.issue26922@psf.upfronthosting.co.za> Message-ID: <1462331418.85.0.58993964403.issue26922@psf.upfronthosting.co.za> Nick Coghlan added the comment: Even updating from remote, and then making a fresh clone in a new directory, I can't reproduce this one - "./configure && make -j4" works for me. Does strace give any potentially useful hints? For me: $ strace -e trace=file ./python -c "pass" the apparently relevant part of the strace output looks like: open("/home/ncoghlan/devel/cpython-pristine/pyvenv.cfg", O_RDONLY) = -1 ENOENT (No such file or directory) open("/home/ncoghlan/devel/pyvenv.cfg", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/home/ncoghlan/devel/cpython-pristine/Modules/Setup", {st_mode=S_IFREG|0664, st_size=15129, ...}) = 0 stat("/home/ncoghlan/devel/cpython-pristine/Lib/os.py", {st_mode=S_IFREG|0664, st_size=37715, ...}) = 0 stat("/home/ncoghlan/devel/cpython-pristine/pybuilddir.txt", {st_mode=S_IFREG|0664, st_size=26, ...}) = 0 open("/home/ncoghlan/devel/cpython-pristine/pybuilddir.txt", O_RDONLY) = 3 open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3 stat("/usr/local/lib/python36.zip", 0x7ffc9a2d15a0) = -1 ENOENT (No such file or directory) stat("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/usr/local/lib/python36.zip", 0x7ffc9a2d1120) = -1 ENOENT (No such file or directory) stat("/home/ncoghlan/devel/cpython-pristine/Lib/", {st_mode=S_IFDIR|0775, st_size=12288, ...}) = 0 stat("/home/ncoghlan/devel/cpython-pristine/Lib/", {st_mode=S_IFDIR|0775, st_size=12288, ...}) = 0 stat("/home/ncoghlan/devel/cpython-pristine/Lib/", {st_mode=S_IFDIR|0775, st_size=12288, ...}) = 0 stat("/home/ncoghlan/devel/cpython-pristine/Lib/", {st_mode=S_IFDIR|0775, st_size=12288, ...}) = 0 open("/home/ncoghlan/devel/cpython-pristine/Lib/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3 stat("/home/ncoghlan/devel/cpython-pristine/Lib/encodings/__init__.cpython-36m-x86_64-linux-gnu.so", 0x7ffc9a2d1320) = -1 ENOENT (No such file or directory) stat("/home/ncoghlan/devel/cpython-pristine/Lib/encodings/__init__.abi3.so", 0x7ffc9a2d1320) = -1 ENOENT (No such file or directory) stat("/home/ncoghlan/devel/cpython-pristine/Lib/encodings/__init__.so", 0x7ffc9a2d1320) = -1 ENOENT (No such file or directory) stat("/home/ncoghlan/devel/cpython-pristine/Lib/encodings/__init__.py", {st_mode=S_IFREG|0664, st_size=5067, ...}) = 0 stat("/home/ncoghlan/devel/cpython-pristine/Lib/encodings/__init__.py", {st_mode=S_IFREG|0664, st_size=5067, ...}) = 0 open("/home/ncoghlan/devel/cpython-pristine/Lib/encodings/__pycache__/__init__.cpython-36.pyc", O_RDONLY|O_CLOEXEC) = 3 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 23:31:34 2016 From: report at bugs.python.org (Chi Hsuan Yen) Date: Wed, 04 May 2016 03:31:34 +0000 Subject: [issue26932] android: test_posix fails In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <1462332694.43.0.568025971431.issue26932@psf.upfronthosting.co.za> Chi Hsuan Yen added the comment: Patch attached for improved RTLD_* checking. ---------- keywords: +patch Added file: http://bugs.python.org/file42703/posixmodule_rtld_constants.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue May 3 23:50:44 2016 From: report at bugs.python.org (Chi Hsuan Yen) Date: Wed, 04 May 2016 03:50:44 +0000 Subject: [issue26932] android: test_posix fails In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <1462333844.65.0.402024326464.issue26932@psf.upfronthosting.co.za> Chi Hsuan Yen added the comment: For test_getgroups, in Android 5.1 `id` does not support -G. [1] In Android 6.x `id` seems to support -G. [2] I guess CPython can just skip the test on Android < 6.0. [1] https://android.googlesource.com/platform/system/core/+/android-5.1.1_r37/toolbox/id.c [2] https://android.googlesource.com/platform/external/toybox/+/master/toys/posix/id.c ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 00:20:22 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 04 May 2016 04:20:22 +0000 Subject: [issue26932] android: test_posix fails In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <1462335622.43.0.829521503079.issue26932@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- assignee: -> serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 00:49:15 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 04 May 2016 04:49:15 +0000 Subject: [issue26932] android: test_posix fails In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <1462337355.89.0.745425035723.issue26932@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: LGTM. But needed to update pyconfig.h.in and configure. RTLD_* constants are also used in Modules/_ctypes/_ctypes.c and Python/pystate.c (this can be a cause of threading and ctypes issues on Android). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 00:50:26 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 04 May 2016 04:50:26 +0000 Subject: [issue26932] android: test_posix fails In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <1462337426.02.0.190625656381.issue26932@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- nosy: +haypo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 01:24:35 2016 From: report at bugs.python.org (Billy McCulloch) Date: Wed, 04 May 2016 05:24:35 +0000 Subject: [issue22107] tempfile module misinterprets access denied error on Windows In-Reply-To: <1406724041.52.0.0365391579019.issue22107@psf.upfronthosting.co.za> Message-ID: <1462339475.28.0.786819131884.issue22107@psf.upfronthosting.co.za> Billy McCulloch added the comment: I've also run into this bug on Windows. In my case, the tempdir path includes directories on a network share, which I lack write access permissions to. Python tries to generate a *lot* of files, and never figures out it should move on to another directory. The attached patch for tempdir.py resolves my issue. In _get_default_tempdir() and _mkstemp_inner(), you want to know if the filename you tried to create already exists as a directory, not whether the parent directory is a directory ? that's handled in _get_default_tempdir(). In mkdtemp(), attempting to create a directory with the same name as an existing directory does not throw a PermissionError, so the code is superfluous. ---------- nosy: +Billy McCulloch Added file: http://bugs.python.org/file42704/master...bjmcculloch_patch-1.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 02:04:36 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 04 May 2016 06:04:36 +0000 Subject: [issue26926] Large files are not supported on Android In-Reply-To: <1462283737.14.0.888848894928.issue26926@psf.upfronthosting.co.za> Message-ID: <1462341876.72.0.448542143699.issue26926@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- title: android: test_io fails -> Large files are not supported on Android _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 02:06:38 2016 From: report at bugs.python.org (Chi Hsuan Yen) Date: Wed, 04 May 2016 06:06:38 +0000 Subject: [issue26932] android: test_posix fails In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <1462341998.07.0.822087352231.issue26932@psf.upfronthosting.co.za> Chi Hsuan Yen added the comment: Version 2. ---------- Added file: http://bugs.python.org/file42705/rtld_constants.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 02:08:23 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 04 May 2016 06:08:23 +0000 Subject: [issue26932] RTLD_* macros are not defined on Android In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <1462342103.45.0.703393376674.issue26932@psf.upfronthosting.co.za> Changes by Serhiy Storchaka : ---------- nosy: +amaury.forgeotdarc, belopolsky, meador.inge, pitrou stage: -> patch review title: android: test_posix fails -> RTLD_* macros are not defined on Android _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 02:45:21 2016 From: report at bugs.python.org (Roundup Robot) Date: Wed, 04 May 2016 06:45:21 +0000 Subject: [issue26932] RTLD_* macros are not defined on Android In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <20160504064517.15928.75870.C54BE680@psf.io> Roundup Robot added the comment: New changeset 811ccdee6f87 by Serhiy Storchaka in branch 'default': Issue #26932: Fixed support of RTLD_* constants defined as enum values, https://hg.python.org/cpython/rev/811ccdee6f87 ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 02:47:18 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 04 May 2016 06:47:18 +0000 Subject: [issue26932] RTLD_* macros are not defined on Android In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <1462344438.37.0.0763726819623.issue26932@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Thank you Chi Hsuan Yen. Please open separate issue for "id -G". ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 02:58:25 2016 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 04 May 2016 06:58:25 +0000 Subject: [issue26932] RTLD_* macros are not defined on Android In-Reply-To: <1462286644.76.0.342167409924.issue26932@psf.upfronthosting.co.za> Message-ID: <1462345105.76.0.583972225651.issue26932@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Xavier, please check that issues with ctypes and threading are not gone. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 03:17:07 2016 From: report at bugs.python.org (Jens de Bruijn) Date: Wed, 04 May 2016 07:17:07 +0000 Subject: [issue26943] Datetime.strptime crash Message-ID: <1462346227.96.0.56286008604.issue26943@psf.upfronthosting.co.za> New submission from Jens de Bruijn: Datetime crashes while running script from the command line. When running the same date string from the interpreter (Ubuntu 16.04) it does not crash. date = datetime.datetime.strptime('May 01 23:59:59 +0000 2016', '%b %d %H:%M:%S +0000 %Y') ---------- components: Extension Modules files: Screenshot from 2016-05-04 08-52-30.png messages: 264784 nosy: Jens de Bruijn priority: normal severity: normal status: open title: Datetime.strptime crash type: crash versions: Python 3.5 Added file: http://bugs.python.org/file42706/Screenshot from 2016-05-04 08-52-30.png _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 03:21:15 2016 From: report at bugs.python.org (Antoine Pitrou) Date: Wed, 04 May 2016 07:21:15 +0000 Subject: [issue26922] build from fresh checkout fails In-Reply-To: <1462331418.85.0.58993964403.issue26922@psf.upfronthosting.co.za> Message-ID: <5729A2E7.4020909@free.fr> Antoine Pitrou added the comment: Le 04/05/2016 05:10, Nick Coghlan a ?crit : > > Does strace give any potentially useful hints? > > For me: > > $ strace -e trace=file ./python -c "pass" Ah, thanks. It seems this was failing due to a pyvenv.cfg in the parent directory, which I removed. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed May 4 03:29:30 2016 From: report at bugs.python.org (Xavier de Gaye) Date: Wed, 04 May 2016 07:29:30 +0000 Subject: [issue26929] android: test_strptime fails In-Reply-To: <1462284711.76.0.324696843297.issue26929@psf.upfronthosting.co.za> Message-ID: <1462346970.84.0.27248017969.issue26929@psf.upfronthosting.co.za> Xavier de Gaye added the comment: Here is the result of running on android: