[issue35357] unittest.mock.call can't represent calls to a method called 'parent'

2018-11-29 Thread Chris Withers
New submission from Chris Withers : While working on https://bugs.python.org/issue35226, I stumbled upon this: >>> from unittest.mock import call >>> call.parent() Traceback (most recent call last): File "", line 1, in TypeError: 'NoneType' object is not callable Guess we need to make

[issue35356] A possible reference leak in the nis module

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

[issue35356] A possible reference leak in the nis module

2018-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a2e3585e79c93b2372dbad46a744e28fcc6dad6d by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-35356: Fix a possible reference leak in nis.maps(). (GH-10808)

[issue35356] A possible reference leak in the nis module

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

[issue35356] A possible reference leak in the nis module

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

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. -- ___ Python tracker

[issue35354] Generator functions stack overflow

2018-11-29 Thread Ezio Melotti
Change by Ezio Melotti : -- nosy: -asdwqii ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35354] Generator functions stack overflow

2018-11-29 Thread Ezio Melotti
Ezio Melotti added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. (Karthikeyan is having trouble posting, so I'm trying on his behalf.) --

[issue2771] Test issue

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. -- ___ Python tracker

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. -- ___ Python tracker

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. -- ___ Python tracker

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. -- ___ Python tracker

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. -- ___ Python tracker

[issue2771] Test issue

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: test comment -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35356] A possible reference leak in the nis module

2018-11-29 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +10054 stage: -> patch review ___ Python tracker ___ ___

[issue35356] A possible reference leak in the nis module

2018-11-29 Thread Zackery Spytz
New submission from Zackery Spytz : In nis_maps(), the result of PyUnicode_FromString() is leaked if the PyList_Append() call fails. -- components: Extension Modules messages: 330747 nosy: ZackerySpytz priority: normal severity: normal status: open title: A possible reference leak in

[issue31956] Add start and stop parameters to the array.index()

2018-11-29 Thread Ryan G.
Ryan G. added the comment: This functionality is useful to me. Is this issue still alive? If not, how can I help? -- nosy: +Ryan G. ___ Python tracker ___

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. -- ___ Python tracker

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report -- ___ Python tracker

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. -- ___ Python tracker

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. -- ___ Python tracker

[issue31177] unittest mock's reset_mock throws an error when an attribute has been deleted

2018-11-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, mariocj89 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. -- ___ Python tracker

[issue31177] unittest mock's reset_mock throws an error when an attribute has been deleted

2018-11-29 Thread Eli_B
Change by Eli_B : -- pull_requests: +10053 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31177] unittest mock's reset_mock throws an error when an attribute has been deleted

2018-11-29 Thread Eli_B
Eli_B added the comment: I suggest that after reset_mock(), deleted attributes should be available again. In other words, their deletion is reset. I'm opening a PR to this effect. I reported this issue to testing-cabal's mock repo in May 2016

[issue35325] imp.find_module() return value documentation discrepancy

2018-11-29 Thread Windson Yang
Windson Yang added the comment: If I understand correctly, this may be better. Try to find the module name. If path is omitted or None, the list of directory names given by sys.path is searched. If path is built-in or frozen modules, return None instead. BTW, the dosstring should also be

[issue35348] Problems with handling the file command output in platform.architecture()

2018-11-29 Thread Windson Yang
Windson Yang added the comment: I agreed with Serhiy. I also found the function decode the output with latin-1, I think it will be better to use utf-8 instead. -- nosy: +Windson Yang ___ Python tracker

[issue35346] Modernize Lib/platform.py code

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: > Now in order to keep the module more or less up-to-date, it still > required regular updates, so the plan was to have it updated in the > current versions of Python, but allow it to be used in older Python > versions as well. That was the compromise to have

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue)

2018-11-29 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I would propose to keep this one open as a superseding https://bugs.python.org/issue23864 and close the latter (assuming we are not going to make all classes protocols, we I think we really shouldn't, and instead we should improve the docs). --

[issue35336] Bug in C locale coercion with PYTHONCOERCECLOCALE=1

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

[issue35346] Modernize Lib/platform.py code

2018-11-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ok, let me add some history here: When I created the platform module it was clear that this would be a module which will frequently need updates, since platforms evolve faster than Python does. I had developed this with a larger number of contributors

[issue34021] [2.7] test_regrtest: test_env_changed() fails on x86 Windows XP VS9.0 2.7

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

[issue34021] [2.7] test_regrtest: test_env_changed() fails on x86 Windows XP VS9.0 2.7

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset f681e93e46925e862a8b0fa4b6e9e341fd8de3c2 by Victor Stinner in branch '2.7': bpo-34021: Windows skips test_regrtest.test_env_changed() (GH-10804) https://github.com/python/cpython/commit/f681e93e46925e862a8b0fa4b6e9e341fd8de3c2 --

[issue35346] Modernize Lib/platform.py code

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: > Please keep Python 2.7 compatibility. It should be possible to copy the > module back into Python 2.7 and use it there. I don't understand why someone would like to copy Lib/platform.py from the master branch to Python 2.7? Python 2.7 already provides the

[issue34021] [2.7] test_regrtest: test_env_changed() fails on x86 Windows XP VS9.0 2.7

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: Five months later nobody has any kind of clue explaining why the test randomly fails on this specific buildbot, whereas it's reliable on all other buildbots and all Python 3.x versions. So I wrote PR 10804 to skip the test on Windows. The feature will

[issue34021] [2.7] test_regrtest: test_env_changed() fails on x86 Windows XP VS9.0 2.7

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

[issue35346] Modernize Lib/platform.py code

2018-11-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Please keep Python 2.7 compatibility. It should be possible to copy the module back into Python 2.7 and use it there. This is not hard to do and allows it to fulfill its purpose as platform detection module even while part of the stdlib. --

[issue35217] REPL history is broken when python is invoked with cmd /c

2018-11-29 Thread Eryk Sun
Eryk Sun added the comment: The Windows console has a fixed number of history buffers. In Windows 7 the default maximum is four history buffers. In this case, if we run a script via cmd.exe -> py.exe -> python.exe, then only one history buffer remains for a child process. As you've

[issue35346] Modernize Lib/platform.py code

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: > Should we keep compatibility with 2.7? I don't think that the master branch (Python 3.8) has to be compatible with Python 2.7. -- ___ Python tracker

[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: Thanks Pablo! I merged your change in 2.7, 3.6, 3.7 and master branches. To reuse the example of my first message, we now get: vstinner@apu$ ./python -W error -m test test_asyncio -m test_no_such_test Run tests sequentially 0:00:00 load avg: 1.21 [1/1]

[issue35346] Modernize Lib/platform.py code

2018-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: While we are here, look at other outdated code: * Top-imported warnings is not used. * struct.calcsize('P') is always success. * plistlib is always available. Should we keep compatibility with 2.7? -- nosy: +serhiy.storchaka

[issue35355] Some Errors involving formatted strings aren't reported in the right place.

2018-11-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Evan, IDLE runs your code with the Python running IDLE. Bad tracebacks are created by Python and are usually, as in this case, the fault of Python. To decide, run your code directly with Python, at a command line, instead of indirectly with IDLE, and see

[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

2018-11-29 Thread miss-islington
miss-islington added the comment: New changeset 43d812692f9207520e1169ff88cd8d6c59cc4804 by Miss Islington (bot) in branch '3.6': [3.7] bpo-34279: Synchronize regrtest with master (GH-10800) https://github.com/python/cpython/commit/43d812692f9207520e1169ff88cd8d6c59cc4804 -- nosy:

[issue34605] Avoid master/slave terminology

2018-11-29 Thread miss-islington
miss-islington added the comment: New changeset 43d812692f9207520e1169ff88cd8d6c59cc4804 by Miss Islington (bot) in branch '3.6': [3.7] bpo-34279: Synchronize regrtest with master (GH-10800) https://github.com/python/cpython/commit/43d812692f9207520e1169ff88cd8d6c59cc4804 --

[issue34605] Avoid master/slave terminology

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

[issue35355] Some Errors involving formatted strings aren't reported in the right place.

2018-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks like a duplicate of issue34364. -- nosy: +serhiy.storchaka resolution: -> duplicate superseder: -> problem with traceback for syntax error in f-string ___ Python tracker

[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

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

[issue35355] Some Errors involving formatted strings aren't reported in the right place.

2018-11-29 Thread Evan Newman
Change by Evan Newman : -- title: Some Errors involving formatted strings aren't reported in the right place. -> Some Errors involving formatted strings aren't reported in the right place. ___ Python tracker

[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8a73cac618a050f4e74eb38ff43e48d9957a6dec by Victor Stinner in branch '3.7': [3.7] bpo-34279: Synchronize regrtest with master (GH-10800) https://github.com/python/cpython/commit/8a73cac618a050f4e74eb38ff43e48d9957a6dec --

[issue34605] Avoid master/slave terminology

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8a73cac618a050f4e74eb38ff43e48d9957a6dec by Victor Stinner in branch '3.7': [3.7] bpo-34279: Synchronize regrtest with master (GH-10800) https://github.com/python/cpython/commit/8a73cac618a050f4e74eb38ff43e48d9957a6dec --

[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 36003003f26d0c30fc15ec4dc3b0d7697dff908e by Victor Stinner in branch '2.7': bpo-34279, regrtest: Issue a warning if no tests have been executed (GH-10801) https://github.com/python/cpython/commit/36003003f26d0c30fc15ec4dc3b0d7697dff908e

[issue35355] Some Errors involving formatted strings aren't reported in the right place.

2018-11-29 Thread Evan Newman
New submission from Evan Newman : Formatted strings seem to have some quirks. if you try putting in this, for example; print(f'{0 0}') ; you get a syntax error, which is probably intended, but where the error is reported is not always accurate. for example; #just a comment, it doesn't

[issue35346] Modernize Lib/platform.py code

2018-11-29 Thread Brett Cannon
Brett Cannon added the comment: It's because the module was originally kept compatible with Python 1.5.2: https://www.python.org/dev/peps/pep-0291/#backward-compatible-packages-modules-and-tools -- nosy: +brett.cannon ___ Python tracker

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think I have seen this bug reported elsewhere but can't find it now. Sorry, I was referring to issue6028 and issue32570 that I thought were similar to the original report. -- ___ Python tracker

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I was referring to issue6028 and issue32570. -- ___ Python tracker ___ ___

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I was referring to issue6028 and issue32570. -- ___ Python tracker ___ ___

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I was referring to issue6028 and issue32570. -- ___ Python tracker ___ ___

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I was referring to issue6028 and issue32570. -- ___ Python tracker ___ ___

[issue35354] Generator functions stack overflow

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think I have seen this bug reported elsewhere but can't find it now. A simple reproducer : def foo(): try: raise Exception() except: foo() foo() Running under gdb on Ubuntu : Program received signal SIGABRT, Aborted.

[issue35343] Importlib.reload has different behaviour in script and interactive mode

2018-11-29 Thread Brett Cannon
Brett Cannon added the comment: It will because your file change happens so quickly by script that your file system isn't leading to a different mtime on the source, and so the bytecode isn't being regenerated. When you do it by hand you're physically slow enough to have the file copies

[issue35354] Generator functions stack overflow

2018-11-29 Thread -
New submission from - : Gоt `Fatal Python error: Cannot recover from stack overflow.` on Windows 10, not tested on other os. Crashed when use undefined variable. -- components: Interpreter Core files: crash.py messages: 330710 nosy: SUHAR1K priority: normal severity: normal status:

[issue35338] set union/intersection/difference could accept zero arguments

2018-11-29 Thread Mark Dickinson
Mark Dickinson added the comment: > The intersection of an empty set of sets is either the empty set [...] Nope, it's never the empty set, unless you're using a *very* unusual definition. The intersection of a collection X of sets is the set of all x in the universe such that x is in S for

[issue35338] set union/intersection/difference could accept zero arguments

2018-11-29 Thread Mark Dickinson
Mark Dickinson added the comment: Some reading: http://mathforum.org/library/drmath/view/62503.html -- ___ Python tracker ___ ___

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue)

2018-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks like a duplicate of issue23864 and issue25737. -- ___ Python tracker ___ ___

[issue35349] collections.abc.Sequence isn't an abstract base class for array.array

2018-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue23864, issue25737 and issue35190. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> array is not a Sequence ___ Python tracker

[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

2018-11-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10048 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34605] Avoid master/slave terminology

2018-11-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10047 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

2018-11-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10046 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9724348b43a9005a449ba532ccd3c6726f031097 by Victor Stinner (Pablo Galindo) in branch 'master': bpo-34279, regrtest: Issue a warning if no tests have been executed (GH-10150)

[issue35335] msgfmt should be able to merge more than one po file

2018-11-29 Thread SilentGhost
SilentGhost added the comment: The test for this part of code are located in Lib/test/test_tools/test_i18n.py as you'll quickly notice there aren't any tests specific to msgfmt.py I would actually advice to start by writing some tests for existing behaviour, so you'd know if (when) you

[issue35353] Add frame command to pub

2018-11-29 Thread Christian Klein
New submission from Christian Klein : Add command fr(ame) to jump to a stack frame in the Python debugger -- components: Library (Lib) messages: 330703 nosy: cnklein priority: normal pull_requests: 10045 severity: normal status: open title: Add frame command to pub

[issue35349] collections.abc.Sequence isn't an abstract base class for array.array

2018-11-29 Thread Leonard de Ruijter
Leonard de Ruijter added the comment: This might be a duplicate of https://bugs.python.org/issue35190 -- ___ Python tracker ___

[issue22543] -W option cannot use non-standard categories

2018-11-29 Thread kernc
Change by kernc : -- nosy: +kernc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35335] msgfmt should be able to merge more than one po file

2018-11-29 Thread s-ball
s-ball added the comment: Ok, I have created a fork, and started coding on a local branch. But it will take some time, because I assume that I am supposed to write tests for the msgfmt module... -- ___ Python tracker

[issue22543] -W option cannot use non-standard categories

2018-11-29 Thread Gerrit Holl
Gerrit Holl added the comment: There is a thread on StackOverflow related to this problem: https://stackoverflow.com/q/42495641/974555 The (currently only and accepted) answer proposes as a workaround to set the PYTHONPATH variable, as the contents of those apparently *are* already in

[issue35352] test_asyncio fails on RHEL8

2018-11-29 Thread Charalampos Stratakis
Change by Charalampos Stratakis : Added file: https://bugs.python.org/file47957/asyncio_failures_3.6.log ___ Python tracker ___ ___

[issue35352] test_asyncio fails on RHEL8

2018-11-29 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Seems that 3.8 and 3.7 get the same failures, while 3.6 gets 14 instead of 8. -- ___ Python tracker ___

[issue35352] test_asyncio fails on RHEL8

2018-11-29 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : When compiling python3 on RHEL8 and run the tests, test_asyncio fails with 8 failures (and more on older branches). openssl version is 1.1.1 Attaching the failures for the various branches. -- components: Tests, asyncio files:

[issue35352] test_asyncio fails on RHEL8

2018-11-29 Thread Charalampos Stratakis
Change by Charalampos Stratakis : Added file: https://bugs.python.org/file47956/asyncio_failures_3.7.log ___ Python tracker ___ ___

[issue35351] LTOFLAGS are passed to BASECFLAGS when using LTO

2018-11-29 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +10044 stage: -> patch review ___ Python tracker ___ ___

[issue35351] LTOFLAGS are passed to BASECFLAGS when using LTO

2018-11-29 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Through configure.ac and this change [0] LTOFLAGS and more specifically -flto is baked into BASECFLAGS when using link time optimizations, which will make this flag propagate to distutils. [0]

[issue35350] importing "ctypes" immediately causes a segmentation fault

2018-11-29 Thread David
New submission from David : ~Environment Cross compiled Python 2.7.15 for ARM Cortex-A7 target, Linux Kernel 4.18 uname -a: Linux Test-0002 4.18.13 #1 SMP Wed Oct 31 11:20:07 CET 2018 armv7l GNU/Linux ~Description of the problem Importing the "ctypes" module in order to load shared

[issue35349] collections.abc.Sequence isn't an abstract base class for array.array

2018-11-29 Thread Leonard de Ruijter
New submission from Leonard de Ruijter : array.array seems to have all the abstract methods of a collections.abc.Sequence and all the classes it inherits from, still the following returns False: `isinstance(array.array("u"), collections.abc.Sequence)` -- messages: 330695 nosy:

[issue33944] Deprecate and remove pth files

2018-11-29 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35131] Cannot access to customized paths within .pth file

2018-11-29 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31625] stop using ranlib

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: clang LTO fix: bpo-28015 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 77000bbb104021b89368b9f7cab6f1417794e348 by Victor Stinner in branch '3.6': bpo-33012: Fix more invalid function cast warnings with gcc 8. (GH-10751) (GH-10796) https://github.com/python/cpython/commit/77000bbb104021b89368b9f7cab6f1417794e348

[issue31625] stop using ranlib

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: Maybe it would be possible to keep ranlib in Python 3.6, but it seems safe to remove it. The master doesn't use ranlib and the compilation is fine in our large fleet of buildbot workers. I chose to backport the change to be able to backport the clang LTO

[issue31625] stop using ranlib

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset e1b210342fa08685bf9b24eb449a2f079f1b50f5 by Victor Stinner (stratakis) in branch '3.6': [3.6] bpo-31625: Stop using ranlib (GH-10417) https://github.com/python/cpython/commit/e1b210342fa08685bf9b24eb449a2f079f1b50f5 --

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2018-11-29 Thread miss-islington
miss-islington added the comment: New changeset 1659c08d5d17357597f220c4d297b19e7a59737c by Miss Islington (bot) in branch '3.7': bpo-33012: Fix more invalid function cast warnings with gcc 8. (GH-10751) https://github.com/python/cpython/commit/1659c08d5d17357597f220c4d297b19e7a59737c

[issue35348] Problems with handling the file command output in platform.architecture()

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: Why does platform has to analyze sys.executable binary to check if it's 32 or 64 bits? Can't we use sizeof(void*) for example? Is it something related to FAT binary on macOS? (single binary for 32 and 64 bits, or single binary for PPC and x86) --

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2018-11-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10043 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

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

[issue35338] set union/intersection/difference could accept zero arguments

2018-11-29 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: The intersection of an empty set of sets is either the empty set or the universe sets so if set.union() is defined to support set.union(*sequence), wouldn't it be less surprising for set.intersection() to return the empty set too? -- nosy:

[issue35338] set union/intersection/difference could accept zero arguments

2018-11-29 Thread Mark Dickinson
Mark Dickinson added the comment: What would the intersection of zero sets be? The only reasonable mathematical answer is either "not defined", or "the universe" - i.e., the set containing everything, but what would "everything" be in a Python context? I also don't see how a difference of

[issue24412] setUpClass equivalent for addCleanup

2018-11-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +10041 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35346] Modernize Lib/platform.py code

2018-11-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Problems with handling the file command output in platform.architecture() ___ Python tracker ___

[issue35348] Problems with handling the file command output in platform.architecture()

2018-11-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The code of _syscmd_file() in the platform module does not match the docstring. The "-b" option was removed in 685fffa (issue16112), and this leads to inclusion the executable path in the file command output. If the executable path contains some key

[issue27903] Avoid ResourceWarnings from platform._dist_try_harder

2018-11-29 Thread STINNER Victor
STINNER Victor added the comment: No problem, thanks for "cc-ing" me ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27903] Avoid ResourceWarnings from platform._dist_try_harder

2018-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Ah sorry I forgot the previous versions that had this code. Thanks for the catch and PR victor :) -- ___ Python tracker ___

  1   2   >