[issue35202] Remove unused imports in standard library

2018-11-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for the cleanup. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35202] Remove unused imports in standard library

2018-11-16 Thread miss-islington
miss-islington added the comment: New changeset 8d816f74d7673c836b16e4423fed0ec6ee510290 by Miss Islington (bot) in branch '3.6': bpo-35202: Remove more unused imports in idlelib (GH-10573) https://github.com/python/cpython/commit/8d816f74d7673c836b16e4423fed0ec6ee510290 --

[issue35202] Remove unused imports in standard library

2018-11-16 Thread miss-islington
miss-islington added the comment: New changeset 3a600d224c1e1106756cc71639232ae1acae45bd by Miss Islington (bot) in branch '3.7': bpo-35202: Remove more unused imports in idlelib (GH-10573) https://github.com/python/cpython/commit/3a600d224c1e1106756cc71639232ae1acae45bd --

[issue35202] Remove unused imports in standard library

2018-11-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +9827 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35202] Remove unused imports in standard library

2018-11-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +9828 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-11-16 Thread Guido van Rossum
Guido van Rossum added the comment: In mypy there would be no difference between a cached property and a normal one -- the type is the same either way. Caching is the quintessential runtime behavior -- it shouldn't matter for semantics, only for performance. (True, sometimes there are more

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-11-16 Thread INADA Naoki
INADA Naoki added the comment: > Guido van Rossum added the comment: > > This is runtime behavior, mypy doesn't care either way. It triggers on the > presence of the decorator, not on what attributes it sets at runtime on the > object. > > But it's only motivation is static hinting. My point

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-11-16 Thread Guido van Rossum
Guido van Rossum added the comment: This is runtime behavior, mypy doesn't care either way. It triggers on the presence of the decorator, not on what attributes it sets at runtime on the object. -- ___ Python tracker

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-11-16 Thread INADA Naoki
INADA Naoki added the comment: I want to hear mypy developer's comment. -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-11-16 Thread Windson Yang
Windson Yang added the comment: Hello, dzhu. I can reproduce on my OSX, since you already dive into the code, do you have any idea to fix or improve it? -- nosy: +Windson Yang ___ Python tracker

[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-16 Thread Windson Yang
Change by Windson Yang : -- keywords: +patch pull_requests: +9824 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-16 Thread Windson Yang
Change by Windson Yang : -- keywords: +patch, patch pull_requests: +9824, 9826 stage: needs patch -> patch review ___ Python tracker ___

[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-16 Thread Windson Yang
Change by Windson Yang : -- keywords: +patch, patch, patch pull_requests: +9824, 9825, 9826 stage: needs patch -> patch review ___ Python tracker ___

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-11-16 Thread dzhu
New submission from dzhu : The attached snippet causes a deadlock just about every time it's run (tested with 3.6.7/Ubuntu, 3.7.1/Arch, 3.6.7/OSX, and 3.7.1/OSX -- deadlock seems to be less frequent on the last, but still common). The issue appears to be something like the following sequence

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2018-11-16 Thread Vlad Temian
Vlad Temian added the comment: Is there any chance that this fix is gonna be ported to 3.5 as well? -- nosy: +vtemian ___ Python tracker ___

[issue35265] Internal C API: pass the memory allocator in a context

2018-11-16 Thread STINNER Victor
STINNER Victor added the comment: Passing the memory allocator is my first goal. My second goal is to cleanup the code reading the configuration, pymain_read_conf() in Modules/main.c: int utf8_mode = config->ctx.utf8_mode; int encoding_changed = 0; (...) /*

[issue28401] Don't support the PEP384 stable ABI in pydebug builds

2018-11-16 Thread miss-islington
miss-islington added the comment: New changeset 338d54f0a59dc5e5b6c9e7397340169f3a3f8ea4 by Miss Islington (bot) (Stefano Rivera) in branch 'master': bpo-28401: prevent Py_DEBUG builds from trying to import limited ABI modules (GH-1766)

[issue35232] Add `module`/`qualname` arguments to make_dataclass for picklability

2018-11-16 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34160] ElementTree not preserving attribute order

2018-11-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > It seemed like we were close to a consensus about adding > back the option to sort the attributes, or did I > misunderstand? Adding a sort() option to prettyxml() seems perfectly reasonable. I wouldn't extend any of the other APIs though. Also, it

[issue35148] cannot activate a venv environment on a Swiss German windows

2018-11-16 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: fixed -> stage: resolved -> patch review status: closed -> open ___ Python tracker ___ ___

[issue34160] ElementTree not preserving attribute order

2018-11-16 Thread Ned Batchelder
Ned Batchelder added the comment: It seemed like we were close to a consensus about adding back the option to sort the attributes, or did I misunderstand? -- ___ Python tracker

[issue34160] ElementTree not preserving attribute order

2018-11-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I run my test suite on 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, PyPy2, > and PyPy3. Today, one gold file suffices for all those > versions. Without the sorted attributes, 3.8 fails the test. Would it make sense to rewrite the test to just make sure the XML

[issue31601] Availability of utimensat, futimens not checked correctly on macOS

2018-11-16 Thread Joshua Root
Joshua Root added the comment: This isn't just a cross-build issue, or rather (depending on how you look at it) cross-builds are increasingly the norm due to Apple only providing a newer SDK on older OS versions. For example the latest version of Xcode available for 10.12 only comes with

[issue13611] Integrate ElementC14N module into xml.etree package

2018-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35250] Minor parameter documentation mismatch for turtle

2018-11-16 Thread Éric Araujo
Éric Araujo added the comment: There is an HTML escaping problem in the PR list! -- nosy: +eric.araujo, ezio.melotti ___ Python tracker ___

[issue35226] mock.call equality surprisingly broken

2018-11-16 Thread Éric Araujo
Éric Araujo added the comment: Add the right «needs backport to X.Y» labels to the PR and a bot will take care of it. (This info does not seem to be in the devguide!) -- nosy: +eric.araujo ___ Python tracker

[issue35195] [Windows] Python 3.7 initializes LC_CTYPE locale at startup, causing performance issue on msvcrt isdigit()

2018-11-16 Thread Dragoljub
Dragoljub added the comment: Do we know if its possible to prevent the initialize LC_CTYPE on startup? Is there some combination of ENV-Var or CMD-Args that can avoid this slowdown on Windows? What are the next step to get the issue assigned? --

[issue35266] Add _PyPreConfig and rework _PyCoreConfig and _PyMainInterpreterConfig

2018-11-16 Thread STINNER Victor
New submission from STINNER Victor : The C code of Python initialization uses _PyCoreConfig and _PyMainInterpreterConfig which co-exist and more or less redundant. For example, both structures have "argv": wchar_** for _PyCoreConfig, PyObject* (list of str) for _PyMainInterpreterConfig. I

[issue35266] Add _PyPreConfig and rework _PyCoreConfig and _PyMainInterpreterConfig

2018-11-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +9823 stage: -> patch review ___ Python tracker ___ ___

[issue34160] ElementTree not preserving attribute order

2018-11-16 Thread Ned Batchelder
Ned Batchelder added the comment: Stefan, just to clarify: it isn't that I don't feel like re-serializing my gold files with the latest version. I run my test suite on 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, PyPy2, and PyPy3. Today, one gold file suffices for all those versions. Without the sorted

[issue34160] ElementTree not preserving attribute order

2018-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +1 for adding C14N support for ElementTree. But the problem will still exist for minidom. We will need either add the sort_attrs parameter in prettyxml() or complete C14N support in minidom. -- ___ Python

[issue13611] Integrate ElementC14N module into xml.etree package

2018-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "c14n" is documented as an accepted serialization method of write() and there is some (non-working) code for support of C14N. e6a951b83e30b3b9c809a441041fb0f21f72b168 removed optional import of ElementC14N. --

[issue35265] Internal C API: pass the memory allocator in a context

2018-11-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +9822 stage: -> patch review ___ Python tracker ___ ___

[issue35265] Internal C API: pass the memory allocator in a context

2018-11-16 Thread STINNER Victor
New submission from STINNER Victor : Currently, the Python initialization code base is full of: static void pymain_clear_cmdline(_PyMain *pymain, _PyCmdline *cmdline) { PyMemAllocatorEx old_alloc; _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, _alloc); ...

[issue13611] Integrate ElementC14N module into xml.etree package

2018-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> needs patch versions: +Python 3.8 -Python 3.4 ___ Python tracker ___

[issue35202] Remove unused imports in standard library

2018-11-16 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: +9821 ___ Python tracker ___ ___

[issue24653] Mock.assert_has_calls([]) is surprising for users

2018-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why this case should be explicitly mentioned? Is it an exception from some rules? Is the empty list special? Does existing documentation say that assert_has_calls([]) should raise an exception? -- nosy: +serhiy.storchaka

[issue34160] ElementTree not preserving attribute order

2018-11-16 Thread Stefan Behnel
Stefan Behnel added the comment: > Maybe some people prefer sorting to get a more deterministic output Note that those people are much better off with C14N. It is the one tool designed for all of these use cases, even usable for cryptographic signatures. And it's trivial to use, it's just a

[issue35250] Minor parameter documentation mismatch for turtle

2018-11-16 Thread miss-islington
miss-islington added the comment: New changeset 8856246c41b0663bfe8d3af7d52a7c337e25572d by Miss Islington (bot) in branch '3.6': bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565) https://github.com/python/cpython/commit/8856246c41b0663bfe8d3af7d52a7c337e25572d

[issue35250] Minor parameter documentation mismatch for turtle

2018-11-16 Thread miss-islington
miss-islington added the comment: New changeset 0461c3b635d53e8e75145695803a2fca288a1689 by Miss Islington (bot) in branch '3.7': bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565) https://github.com/python/cpython/commit/0461c3b635d53e8e75145695803a2fca288a1689

[issue35250] Minor parameter documentation mismatch for turtle

2018-11-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +9819 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35250] Minor parameter documentation mismatch for turtle

2018-11-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +9820 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35264] SSL Module build fails with OpenSSL 1.1.0 for Python 2.7

2018-11-16 Thread Alexandru Ardelean
Change by Alexandru Ardelean : -- keywords: +patch pull_requests: +9818 stage: -> patch review ___ Python tracker ___ ___

[issue35264] SSL Module build fails with OpenSSL 1.1.0 for Python 2.7

2018-11-16 Thread Alexandru Ardelean
New submission from Alexandru Ardelean : The Modules/_ssl.c build fails. Error is: ``` building '_ssl' extension arm-openwrt-linux-muslgnueabi-gcc -fPIC -fno-strict-aliasing -Os -pipe -mcpu=xscale -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable

[issue30545] Enum equality across modules: comparing objects instead of values

2018-11-16 Thread Sebastian Höfer
Sebastian Höfer added the comment: I ran into the same issue and while I see that this is not a bug I would suggest that this behaviour at least deserves a warning in the documentation under https://docs.python.org/3/library/enum.html#comparisons This unexpected behaviour can not only occur

[issue35260] 2to3 Parse Error on Python 3 print() with arguments

2018-11-16 Thread Mark Dickinson
Mark Dickinson added the comment: Closing. 2to3 is working as designed here. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue35260] 2to3 Parse Error on Python 3 print() with arguments

2018-11-16 Thread Mark Dickinson
Mark Dickinson added the comment: I'm still confused: the main purpose of 2to3 is to take Python 2 code and turn it into Python 3 code. The docs[1] are fairly unambiguous here: > 2to3 is a Python program that reads Python 2.x source code and applies a > series of fixers to transform it into

[issue33816] New metaclass example for Data Model topic

2018-11-16 Thread miss-islington
miss-islington added the comment: New changeset 46fa7a60e08fc7486ecab726af93fa2cfe225305 by Miss Islington (bot) in branch '3.6': bpo-33816: Remove outdated metaclass example (GH-7566) https://github.com/python/cpython/commit/46fa7a60e08fc7486ecab726af93fa2cfe225305 --

[issue33816] New metaclass example for Data Model topic

2018-11-16 Thread miss-islington
miss-islington added the comment: New changeset 1b80a373d104480c51cacb8b07ec3b61e21d5fa0 by Miss Islington (bot) in branch '3.7': bpo-33816: Remove outdated metaclass example (GH-7566) https://github.com/python/cpython/commit/1b80a373d104480c51cacb8b07ec3b61e21d5fa0 -- nosy:

[issue33816] New metaclass example for Data Model topic

2018-11-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +9816 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33816] New metaclass example for Data Model topic

2018-11-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +9817 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33816] New metaclass example for Data Model topic

2018-11-16 Thread INADA Naoki
INADA Naoki added the comment: New changeset c2ccac7b9f9a1132ca36255b0ddfeecef4371aa3 by INADA Naoki (Andrés Delfino) in branch 'master': bpo-33816: Remove outdated metaclass example (GH-7566) https://github.com/python/cpython/commit/c2ccac7b9f9a1132ca36255b0ddfeecef4371aa3 -- nosy:

[issue35260] 2to3 Parse Error on Python 3 print() with arguments

2018-11-16 Thread batterystaple456
batterystaple456 added the comment: I was expecting that like other Python 3 code, since it is already in Python 3, it would not parse it like Python 2. -- ___ Python tracker

[issue35239] _PySys_EndInit() doesn't copy main interpreter configuration

2018-11-16 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35239] _PySys_EndInit() doesn't copy main interpreter configuration

2018-11-16 Thread miss-islington
miss-islington added the comment: New changeset d2be9a5c13221fb84c2221bbfd93efac6111e697 by Miss Islington (bot) in branch '3.7': bpo-35239: _PySys_EndInit() copies module_search_path (GH-10532) https://github.com/python/cpython/commit/d2be9a5c13221fb84c2221bbfd93efac6111e697 --

[issue35260] 2to3 Parse Error on Python 3 print() with arguments

2018-11-16 Thread Mark Dickinson
Mark Dickinson added the comment: I'm not sure I understand the report: 2to3 expects a valid Python 2 file as input, and the file a.py isn't a valid Python 2 file: the `print` line is a SyntaxError in the absence of a `from __future__ import print_function`. So yes, this *is* being treated

[issue35239] _PySys_EndInit() doesn't copy main interpreter configuration

2018-11-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +9815 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35239] _PySys_EndInit() doesn't copy main interpreter configuration

2018-11-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 37cd982df02795905886ab36a2378ed557cb6f60 by Victor Stinner in branch 'master': bpo-35239: _PySys_EndInit() copies module_search_path (GH-10532) https://github.com/python/cpython/commit/37cd982df02795905886ab36a2378ed557cb6f60 --

[issue35250] Minor parameter documentation mismatch for turtle

2018-11-16 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch pull_requests: +9814 stage: -> patch review ___ Python tracker ___

[issue35263] Add None handling for get_saved() in IDLE

2018-11-16 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch pull_requests: +9813 stage: -> patch review ___ Python tracker ___

[issue35202] Remove unused imports in standard library

2018-11-16 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: With the current PR, i think i removed all unused imports in Lib folder. -- ___ Python tracker ___

[issue35262] There should be a list.get just like dict.get

2018-11-16 Thread Abram Clark
Abram Clark added the comment: There really are valid use cases for this. Would you please refer me to this previous discussion? In a particular small to medium sized Python repository of ~10k lines, list get is used 23 times, whereas other list builtin methods are used far less (for

[issue31601] Availability of utimensat, futimens not checked correctly on macOS

2018-11-16 Thread Peter Petrik
Change by Peter Petrik : -- components: +Cross-Build -Build, macOS nosy: +Alex.Willmer, Peter Petrik versions: +Python 3.7 ___ Python tracker ___