[issue31604] unittest.TestLoader().loadTestsFromTestCase(...) fails when adding test cases with the expectedFailure decorator

2018-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

2018-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: crash -> behavior versions: +Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Pyt

[issue31297] Unpickleable ModuleImportError in unittest patch not backported to 2.7

2018-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue30774] list_repr not safe against concurrent mutation

2018-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it possible to reproduce this issue without involving signal handlers? -- ___ Python tracker ___ ___

[issue34083] Functional Programming HOWTO: Dictionary ordering isn't "essentially random"

2018-07-10 Thread Stig Johan Berggren
Change by Stig Johan Berggren : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue34050] Broken links to "OpenSSL cipher list format" in documentation

2018-07-10 Thread Roland Weber
Roland Weber added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue29342] os.posix_fadvise misreports errors

2018-07-10 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> os.posix_fallocate() generate exception with errno 0 ___ Python tracker __

[issue34033] distutils is not reproducible

2018-07-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: We should probably discuss the marshal issue in the preëxisting #31377. I'm not sure if "distutils is not reproducible" is a larger issue than "pyc compilation is not reproducible". This issue could be a meta issue for either. -- _

[issue34087] Segmentation fault on visit_decref

2018-07-10 Thread INADA Naoki
INADA Naoki added the comment: If example cannot be small, you can share the project on Github or other place. If your project is private, you can create OSS version of reproducer. If you can't create OSS reproducer, we can't debug it. 3rd party library list may helpful, but I'm not sure. ---

[issue34084] possible free statically allocated string in compiler when easter egg on

2018-07-10 Thread Xiang Zhang
Change by Xiang Zhang : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue34087] Segmentation fault on visit_decref

2018-07-10 Thread Rodrigo Pinheiro Marques de Araújo
Rodrigo Pinheiro Marques de Araújo added the comment: Sorry for that. I’m not able to make a little example to reproduce this bug. It’s happens during Django tests on a very large code base. A interest thing is that not happens with “-X dev” parameters. Please, any suggestions how I can get m

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2018-07-10 Thread Eryk Sun
Eryk Sun added the comment: > I don't understand why Python behaves differently in debug mode. > For me, if Python is able to trigger an exception on EINVAL, we > should also get a regular Python exception in debug mode (and not > a crash) The debug build's behavior isn't related to the inva

[issue33597] Compact PyGC_Head

2018-07-10 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +7772 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue27351] Unexpected ConfigParser.read() behavior when passed fileobject

2018-07-10 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bug

[issue27351] Unexpected ConfigParser.read() behavior when passed fileobject

2018-07-10 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +7771 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue34087] Segmentation fault on visit_decref

2018-07-10 Thread INADA Naoki
INADA Naoki added the comment: It's difficult to investigate without reproducible example. Do you use 3rd party extension module? Typical cause of these crash is bug in 3rd party extensions. -- nosy: +inada.naoki ___ Python tracker

[issue29342] os.posix_fadvise misreports errors

2018-07-10 Thread Zackery Spytz
Zackery Spytz added the comment: This was fixed in #31106. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list maili

[issue33597] Compact PyGC_Head

2018-07-10 Thread STINNER Victor
STINNER Victor added the comment: Would you mind to mention your optimization in What's New in Python 3.8? IHMO any enhancement of the memory footprint should be documented :-) -- ___ Python tracker ___

[issue33735] test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7

2018-07-10 Thread STINNER Victor
STINNER Victor added the comment: Note for myself: the commit 127bd9bfd591c8ec1a97eb7f4037c8b884eef973, fix for bpo-34042 has no impact on this issue since this issue is about memory blocks and not references. -- ___ Python tracker

[issue34089] Remove required (non-optional) modules from Modules/Setup.dist

2018-07-10 Thread Neil Schemenauer
Change by Neil Schemenauer : -- keywords: +patch pull_requests: +7770 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue34090] Python function call optimization: avoid temporary tuple to pass **kwargs

2018-07-10 Thread STINNER Victor
New submission from STINNER Victor : On the following code, f() uses CALL_FUNCTION_EX bytecode to call g(). The bytecode loads 'kw' variable which is a dictionary. But internally, the dictionary is converted to a temporary tuple, and later a new dictionary is created. Maybe the temporary tupl

[issue34089] Remove required (non-optional) modules from Modules/Setup.dist

2018-07-10 Thread Neil Schemenauer
New submission from Neil Schemenauer : This is related to Issue32430. The behavior of Modules/Setup.dist and Modules/Setup is quirky and problematic. Issue32430 links to some of the related issues. The problem discussed in Issue24575 is also related (Py_BUILD_CORE not being defined when it

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2018-07-10 Thread STINNER Victor
STINNER Victor added the comment: > Crashing happens only with the debug build. I don't understand why Python behaves differently in debug mode. For me, if Python is able to trigger an exception on EINVAL, we should also get a regular Python exception in debug mode (and not a crash). --

[issue22689] Posix getenv makes no guarantee of lifetime of returned string

2018-07-10 Thread STINNER Victor
STINNER Victor added the comment: > char *_rtpypath = Py_GETENV("PYTHONPATH"); /* XXX use wide version on > Windows */ Python now copies the env var. In master, Modules/main.c: int res = config_get_env_var_dup(&path, L"PYTHONPATH", "PYTHONPATH"); Moreover, bytes are decoded to Unicode (

[issue34086] logging.Handler.handleError regressed in python3

2018-07-10 Thread Oren
Change by Oren : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue25711] Rewrite zipimport from scratch

2018-07-10 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue4260] Document that ctypes.xFUNCTYPE are decorators.

2018-07-10 Thread Andrés Delfino
Change by Andrés Delfino : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue29672] `catch_warnings` context manager causes all warnings to be printed every time, even after exiting

2018-07-10 Thread Segev Finer
Change by Segev Finer : -- keywords: +patch pull_requests: +7769 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34088] sndhdr.what() throws exceptions on unknown files

2018-07-10 Thread Jussi Judin
New submission from Jussi Judin : sndhdr.what() function throws several types of exceptions on unknown files instead of returning None (as documentation says). Following code can replicate these crashes: ``` import sndhdr import sys sndhdr.what(sys.argv[1]) ``` First crash is from wave or c

[issue32430] Simplify Modules/Setup{,.dist,.local}

2018-07-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've created a PR that renames Setup.dist to Setup and removes extraneous logic. -- ___ Python tracker ___ __

[issue34083] Functional Programming HOWTO: Dictionary ordering isn't "essentially random"

2018-07-10 Thread Stig Johan Berggren
Change by Stig Johan Berggren : -- keywords: +patch pull_requests: +7768 stage: -> patch review ___ Python tracker ___ ___ Python-b

[issue32430] Simplify Modules/Setup{,.dist,.local}

2018-07-10 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue34087] Segmentation fault on visit_decref

2018-07-10 Thread Rodrigo Pinheiro Marques de Araújo
New submission from Rodrigo Pinheiro Marques de Araújo : * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x656d6f6e2236) frame #0: 0x00010014c819 python3`visit_decref(op=0x656d6f6e222e, data=0x) at gcmodule.c:271 [opt] 2

[issue32430] Simplify Modules/Setup{,.dist,.local}

2018-07-10 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +7767 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29672] `catch_warnings` context manager causes all warnings to be printed every time, even after exiting

2018-07-10 Thread Erik Bray
Erik Bray added the comment: Yes, I think `catch_warnings` should back up and restore the relevant `__warningregistry__`. At which point it's not even clear to me what value there is in the _filter_version... -- ___ Python tracker

[issue34086] logging.Handler.handleError regressed in python3

2018-07-10 Thread Oren
Oren added the comment: I realize that there is a legitimate argument that handleError() is being used wrong in the example, but since it used to work, it'd be nice if it still did. I came across this after converting a codebase to python3 and it took a while for this problem to appear. I

[issue34086] logging.Handler.handleError regressed in python3

2018-07-10 Thread Oren
New submission from Oren : In python2, calling Handler.handleError may not be strictly correct, but it doesn't raise an exception. However, this has regressed since this patch: https://hg.python.org/cpython/rev/d7b868cdd9bb $ cat logbug.py import logging class CustomHandler(logging.Handler):

[issue34085] doc Improve wording on classmethod/staticmethod

2018-07-10 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7766 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue34085] doc Improve wording on classmethod/staticmethod

2018-07-10 Thread Andrés Delfino
New submission from Andrés Delfino : 1. The classmethod definition reads: """ The @classmethod form is a function decorator – see the description of function definitions in Function definitions for details. It can be called either on the class (such as C.f()) or on an instance (such as C().f(

[issue34083] Functional Programming HOWTO: Dictionary ordering isn't "essentially random"

2018-07-10 Thread Stig Johan Berggren
Stig Johan Berggren added the comment: I'll try to patch it myself. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue28571] llist and scipy.stats conflicts, python segfault

2018-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue34082] EnumMeta.__new__ should use enum_class.__new__

2018-07-10 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker ___ ___ Python-b

[issue34009] Document Debian 8 / Ubuntu 14.04 OpenSSL compatibility issues

2018-07-10 Thread Nick Coghlan
Nick Coghlan added the comment: Merged to master and 3.7 - any further wording tweaks can be handled as a trivial docs-only PR, without needing additional tracker issues. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Document Travis CI / Ubuntu

[issue34009] Document Travis CI / Ubuntu 14.04 OpenSSL compatibility issues

2018-07-10 Thread miss-islington
miss-islington added the comment: New changeset 5cca6f9fbead1fae27c37204f345a9465cc88959 by Miss Islington (bot) in branch '3.7': bpo-34009: Expand on platform support changes (GH-8022) https://github.com/python/cpython/commit/5cca6f9fbead1fae27c37204f345a9465cc88959 -- nosy: +miss-

[issue34083] Functional Programming HOWTO: Dictionary ordering isn't "essentially random"

2018-07-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for noticing this. Do you want to contribute a patch or would you like me to just fix it up? -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker

[issue34009] Document Travis CI / Ubuntu 14.04 OpenSSL compatibility issues

2018-07-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7765 stage: commit review -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34009] Document Travis CI / Ubuntu 14.04 OpenSSL compatibility issues

2018-07-10 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 5fe7c98a54d127759cfce323fab831008c945964 by Nick Coghlan in branch 'master': bpo-34009: Expand on platform support changes (GH-8022) https://github.com/python/cpython/commit/5fe7c98a54d127759cfce323fab831008c945964 -- __

[issue34008] Do we support calling Py_Main() after Py_Initialize()?

2018-07-10 Thread Nick Coghlan
Nick Coghlan added the comment: Thinking about this some more, I'm inclined to go the same way we did with issue 33932: classify it as an outright regression, work out the desired requirements for a missing embedding test case, and then fix the implementation to pass the new test case. My s

[issue34033] distutils is not reproducible

2018-07-10 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +7764 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue34033] distutils is not reproducible

2018-07-10 Thread INADA Naoki
INADA Naoki added the comment: Is this issue for only known marshal issue? Or is this issue for all issues in distutils including unknowns? -- nosy: +inada.naoki ___ Python tracker __

[issue34084] possible free statically allocated string in compiler when easter egg on

2018-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue34084] possible free statically allocated string in compiler when easter egg on

2018-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I expected it should be easy to reproduce a crash, but I failed to find an example. -- ___ Python tracker ___

[issue34084] possible free statically allocated string in compiler when easter egg on

2018-07-10 Thread Xiang Zhang
Change by Xiang Zhang : -- title: possible free statically allocated string -> possible free statically allocated string in compiler when easter egg on ___ Python tracker ___

[issue34084] possible free statically allocated string

2018-07-10 Thread Xiang Zhang
New submission from Xiang Zhang : While reviewing PR8222, I found `err_ret->text` is assigned a not malloced string, but it will finally get freed in `err_input`. -- keywords: easy messages: 321381 nosy: serhiy.storchaka, xiang.zhang priority: normal severity: normal status: open title

[issue29672] `catch_warnings` context manager causes all warnings to be printed every time, even after exiting

2018-07-10 Thread Segev Finer
Segev Finer added the comment: Hmm, I originally missed the per module __warningregistry__... Need to read the code more closely... What should the behavior be? We can add a flag that will make all warning actions be "always" when catch_warnings is in effect. But that doesn't feel right wit

[issue34076] Nested loop in dictionary comprehension gives `global name not defined` inside class

2018-07-10 Thread Jan Christoph
Jan Christoph added the comment: Updated example with reversed variable order for reference. This really seems to be related to issue3692, but really not the same thing. IMHO both `a` and `b` should be passed in a situation like this: a = range(5) b = range(3) c = [x+y for x in a for y

[issue34076] Nested loop in dictionary comprehension gives `global name not defined` inside class

2018-07-10 Thread Jan Christoph
Jan Christoph added the comment: Okay, so we're a in another scope inside the dictionary comprehension (all comprehensions for that matter), and only one symbol is passed to the inside. That's why `strange_reversed_working = {x+s.replace('(+/-)',''):None for x in infts.split(', ') for s in (

[issue34031] [EASY] Incorrect usage of unittest.TestCase in test_urllib2_localnet

2018-07-10 Thread Tal Einat
Tal Einat added the comment: Thanks for the PR, stoksc! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34031] [EASY] Incorrect usage of unittest.TestCase in test_urllib2_localnet

2018-07-10 Thread Tal Einat
Tal Einat added the comment: New changeset 6f036bb67d5a20c86c29ea5aeace563e3751baab by Tal Einat in branch '2.7': [2.7] bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091) (#8225) https://github.com/python/cpython/commit/6f036bb67d5a20c86c29ea5aeace563e3751baab -- __

[issue34083] Functional Programming HOWTO: Dictionary ordering isn't "essentially random"

2018-07-10 Thread Stig Johan Berggren
New submission from Stig Johan Berggren : The section about iterators in the Functional Programming HOWTO (https://docs.python.org/3/howto/functional.html#data-types-that-support-iterators) states the following about looping over dictionary keys: "Note that the order is essentially random, bec

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-07-10 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Raymond, would updating the attached PR to change https://github.com/remilapeyre/cpython/blob/7c78350f8903f162e5f70ee147c0e97cb1ed5181/Lib/cmd.py#L270 (and others) from `compfunc = getattr(self, 'complete_' + cmd)` to `compfunc = getattr(self.__class__, 'com

[issue34031] [EASY] Incorrect usage of unittest.TestCase in test_urllib2_localnet

2018-07-10 Thread miss-islington
miss-islington added the comment: New changeset cb14eb7eedf36cd21aaf41c4d3eb1e6521fa7b11 by Miss Islington (bot) in branch '3.6': bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091) https://github.com/python/cpython/commit/cb14eb7eedf36cd21aaf41c4d3eb1e6521fa7b11 --

[issue34031] [EASY] Incorrect usage of unittest.TestCase in test_urllib2_localnet

2018-07-10 Thread miss-islington
miss-islington added the comment: New changeset 125371d2c617d886e1a15b8f940ce29124cdc79c by Miss Islington (bot) in branch '3.7': bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091) https://github.com/python/cpython/commit/125371d2c617d886e1a15b8f940ce29124cdc79c -- n

[issue34031] [EASY] Incorrect usage of unittest.TestCase in test_urllib2_localnet

2018-07-10 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +7763 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue34031] [EASY] Incorrect usage of unittest.TestCase in test_urllib2_localnet

2018-07-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7762 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34031] [EASY] Incorrect usage of unittest.TestCase in test_urllib2_localnet

2018-07-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7761 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34031] [EASY] Incorrect usage of unittest.TestCase in test_urllib2_localnet

2018-07-10 Thread Tal Einat
Tal Einat added the comment: New changeset 6b490b5db40fc29588e8e6cc23bb89c4fed74ad5 by Tal Einat (Bradley Laney) in branch 'master': bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091) https://github.com/python/cpython/commit/6b490b5db40fc29588e8e6cc23bb89c4fed74ad5 -

[issue34082] EnumMeta.__new__ should use enum_class.__new__

2018-07-10 Thread Pav
New submission from Pav : ```python class Foo: pass class Works(str, Foo, Enum): BAR = 'baz' class Fails(Foo, str, Enum): BAR = 'baz' ``` `Fails` fails to be created with an error: `TypeError: object.__new__(Fails) is not safe, use Fails.__new__()` See https://github.com/pytho

[issue34081] Sphinx duplicate label warning in docs

2018-07-10 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : While running make docs sphinx generates a warning that there are duplicate labels named `_examples`. It seems it's present in `c-api/typeobj.rst` and `distutils/examples.rst` as below : ➜ Doc git:(master) rg '.. _examples:' c-api/typeobj.rst 23

[issue34076] Nested loop in dictionary comprehension gives `global name not defined` inside class

2018-07-10 Thread Jan Christoph
Jan Christoph added the comment: But the simpler dictionary compprehension `{s.replace('(+/-)',''):None for s in infts.split(', ')}` works perfectly. Shouldn't that also give the error if it was a scope issue? -- ___ Python tracker

[issue34080] Memory leak in the compiler in case of errors

2018-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue34080] Memory leak in the compiler in case of errors

2018-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +7760 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue34080] Memory leak in the compiler in case of errors

2018-07-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Merging PR 6517 for issue33305 exposed a leak in the compiler: https://buildbot.python.org/all/#/builders/1/builds/280 $ ./python -m test -R 3:3 test_compile test_grammar Run tests sequentially 0:00:00 load avg: 1.95 [1/2] test_compile beginning 6 repetit

[issue33597] Compact PyGC_Head

2018-07-10 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue33597] Compact PyGC_Head

2018-07-10 Thread INADA Naoki
INADA Naoki added the comment: New changeset 5ac9e6eee5ed18172d70d28cf438df0be4e3b83d by INADA Naoki in branch 'master': bpo-33597: Reduce PyGC_Head size (GH-7043) https://github.com/python/cpython/commit/5ac9e6eee5ed18172d70d28cf438df0be4e3b83d -- _

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread miss-islington
miss-islington added the comment: New changeset 6ceab46a602c6653356d67d7479391fba0b35697 by Miss Islington (bot) in branch '3.6': bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184) https://github.com/python/cpython/commit/6ceab46a602c6653356d67d7479391fba0b35697

[issue34079] Multiprocessing module fails to build on Solaris 11.3

2018-07-10 Thread Clint Allen
Change by Clint Allen : -- keywords: +patch Added file: https://bugs.python.org/file47680/Python-2.7.15-Modules_multiprocessing_h.patch ___ Python tracker ___

[issue34079] Multiprocessing module fails to build on Solaris 11.3

2018-07-10 Thread Clint Allen
New submission from Clint Allen : The build of this module fails with this error: In file included from /usr/include/limits.h:12:0, from /usr/gcc/5/lib/gcc/sparcv9-sun-solaris2.11/5.4.0/include-fixed/limits.h:168, from /usr/gcc/5/lib/gcc/sparcv9-sun-solaris2

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread miss-islington
miss-islington added the comment: New changeset df9f633f94e97fc43e0235cb2be076491ea7f67f by Miss Islington (bot) in branch '3.7': bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184) https://github.com/python/cpython/commit/df9f633f94e97fc43e0235cb2be076491ea7f67f

[issue34076] Nested loop in dictionary comprehension gives `global name not defined` inside class

2018-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks like a duplicate of issue3692. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> improper scope in list comprehension, when used in class declaration _

[issue3692] improper scope in list comprehension, when used in class declaration

2018-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed, this issue is more complex than it looked to me. Technically, LOAD_FAST, which is used for reading the loop control variables in comprehensions, uses the array f->f_localsplus, while LOAD_NAME uses f->f_locals and f->f_globals. When executing class

[issue33955] Implement PyOS_CheckStack on macOS using pthread_get_stack*_np

2018-07-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sorry about the slow response. The patch looks OK, although I'm entirely happy yet about the workaround for the stack size on the main thread. Primarily because framework builds use a non-standard stack size as the default one is too small for the recursion

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7759 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7758 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread INADA Naoki
INADA Naoki added the comment: New changeset 445f1b35ce8461268438c8a6b327ddc764287e05 by INADA Naoki (Dong-hee Na) in branch 'master': bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184) https://github.com/python/cpython/commit/445f1b35ce8461268438c8a6b327ddc764287e05 ---

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2018-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Crashing happens only with the debug build. With the release mode I got OSError(EINVAL). I think it is better to raise the same error in all builds. ValueError is not new, it is already raised for paths containing NUL and too long paths. -- _