[issue30993] IDLE: Document, fix, and complete configdialog font tests

2017-07-23 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list

[issue30993] IDLE: Document, fix, and complete configdialog font tests

2017-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, in a comment on PR2826, Louie reported "The patch unittest work on Linux, but on MacOS, I get test.support.ResourceDeined: cannot run without OS X gui process, it is wierd, I'm inside the GUI mode. Also, I'm not sure if this only on MacOS (is font

[issue31000] Test failure in resource module on ZFS

2017-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I use 32-bit Linux and when tried to install the ZFS DKMS driver got a warning that ZFS is unstable on 32-bit. -- ___ Python tracker

[issue30993] IDLE: Document, fix, and complete configdialog font tests

2017-07-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2881 ___ Python tracker ___ ___

[issue30442] Skip test_xml_etree under coverage

2017-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 2.7, Python 3.5 ___ Python tracker ___

[issue18406] unicodedata.itergraphemes / str.itergraphemes / str.graphemes

2017-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka versions: +Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker

[issue30993] IDLE: Document, fix, and complete configdialog font tests

2017-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 77e97ca9ff6f3dbbf98b89b4103c46b43eef5642 by Terry Jan Reedy in branch 'master': bpo-30993: IDLE - Improve configdialog font page and tests. (#2831) https://github.com/python/cpython/commit/77e97ca9ff6f3dbbf98b89b4103c46b43eef5642 --

[issue12568] Add functions to get the width in columns of a character

2017-07-23 Thread Socob
Changes by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2636] Adding a new regex module (compatible with re)

2017-07-23 Thread Socob
Changes by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12734] Request for property support in Python re lib

2017-07-23 Thread Socob
Changes by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12733] Request for grapheme support in Python re lib

2017-07-23 Thread Socob
Changes by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18406] unicodedata.itergraphemes / str.itergraphemes / str.graphemes

2017-07-23 Thread Socob
Changes by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30717] str.center() is not unicode aware

2017-07-23 Thread Socob
Changes by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30999] statistics module: add "key" keyword argument to median, mode, ...

2017-07-23 Thread gerion
gerion added the comment: My use case is some side data somehow connected to the statistical relevant data. (I think, this is more less a similar use case as with the min and max function.) A few examples: The datastructure is a list of tuples: (score, [list of people that have this score])

[issue30451] parse windows path error in webbrowser.get() and lead to webbrowser.Error: could not locate runnable browser

2017-07-23 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> webbrowser.get(command_line) does not support Windows-style path separators type: -> behavior ___ Python

[issue30442] Skip test_xml_etree under coverage

2017-07-23 Thread Berker Peksag
Changes by Berker Peksag : -- components: +Tests stage: -> backport needed versions: +Python 3.6 ___ Python tracker ___

[issue30999] statistics module: add "key" keyword argument to median, mode, ...

2017-07-23 Thread Steven D'Aprano
Steven D'Aprano added the comment: Apart from being "cool", what is the purpose of this key argument? For the example shown, where you extract an item from tuple data: >>> median_low([(1, 2), (3, 3), (4, 1)], key=lambda elem: elem[0]) (3, 3) I'm not sure I understand when you would use this,

[issue30456] 2to3 docs: example of fix for duplicates in second argument of isinstance has superfluous parentheses

2017-07-23 Thread Berker Peksag
Berker Peksag added the comment: New changeset 26248ef58dcf49619930ffa2e050ffa687a88601 by Berker Peksag (Eli Boyarski) in branch 'master': bpo-30456: Clarify example for duplicates in second argument of isinstance (GH-1699)

[issue30456] 2to3 docs: example of fix for duplicates in second argument of isinstance has superfluous parentheses

2017-07-23 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> backport needed type: -> behavior versions: +Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue30454] Python module cx_Oracle ld installation issue on Solaris11U3 SPARC: fatal: file /oracle/database/lib/libclntsh.so: wrong ELF class: ELFCLASS64 error

2017-07-23 Thread Berker Peksag
Berker Peksag added the comment: cx_Oracle is not part of the Python standard library and according to https://community.oracle.com/thread/4048639 the solution is to install it from Solaris' package repository. -- nosy: +berker.peksag resolution: -> third party stage: -> resolved

[issue30853] IDLE: configdialog -- factor out Tracer subclass

2017-07-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Would you like this change for fonts and indent before the tests for the other tabs are ready or would you like to have tests for all the tabs first? -- ___ Python tracker

[issue30993] IDLE: Document, fix, and complete configdialog font tests

2017-07-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: The tests pass on linux and the htest looks good. Thank you for making all these changes. It seems much clearer now, but I do want to spend more time reading the code to understand it. Looks like you grouped all the font-related functions, so they are

[issue30274] Make importlib.abc.ExtensionFileLoader.__init__() documentation match code

2017-07-23 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> patch review type: -> enhancement versions: +Python 3.7 ___ Python tracker

[issue31000] Test failure in resource module on ZFS

2017-07-23 Thread Larry Hastings
New submission from Larry Hastings: I use Linux (Ubuntu GNOME, 17.04, 64-bit) on all my computers, and I use ZFS for the /home partition. While releasing 3.4.7rc1 and 3.5.4rc1, I encountered this test failure: % ./python -m test test_resource 0:00:00 load avg: 0.40 [1/1] test_resource test

[issue30999] statistics module: add "key" keyword argument to median, mode, ...

2017-07-23 Thread gerion
New submission from gerion: With Python 3.4 the statistics module was added. It would be cool, if the functions: median_low() median_high() mode() would have a "key" keyword argument, just like in max() and min(): ``` >>> median_low([(1, 2), (3, 3), (4, 1)], key=lambda elem: elem[0]) (3, 3) ```

[issue30998] faulthandler: Show C stacktrace

2017-07-23 Thread Ammar Askar
Ammar Askar added the comment: No need to close it off just yet, what I posted was just my opinion. We can wait for haypo's expert opinion seeing as he implemented faulthandler. Maybe it would be useful to have an option to say always generate a core dump? Something like the stuff listed

[issue30998] faulthandler: Show C stacktrace

2017-07-23 Thread Florian Bruhin
Florian Bruhin added the comment: Hmm, fair point. I thought I had seen this being used in a SEGV handler in some other software I use, but I can't find that anymore - so either I was dreaming, or they noticed it was problematic and removed it again. I'm closing this then. My goal was to get

[issue30998] faulthandler: Show C stacktrace

2017-07-23 Thread Ammar Askar
Ammar Askar added the comment: As the faulthandler documentation notes: > The fault handler is called on catastrophic cases and therefore can only use > signal-safe functions (e.g. it cannot allocate memory on the heap). Because > of this limitation traceback dumping is minimal compared to

[issue30998] faulthandler: Show C stacktrace

2017-07-23 Thread Florian Bruhin
New submission from Florian Bruhin: While faulthandler's output is already quite useful when dealing with crashes in C libraries, it'd be much more useful when it could also show a low-level C/C++ stack. glibc has functions to do that:

[issue30993] IDLE: Document and fix configdialog font tests.

2017-07-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2880 ___ Python tracker ___ ___

[issue30993] IDLE: Document, fix, and complete configdialog font tests

2017-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2nd and presumably last PR for this issue: please verify on linux. -- stage: needs patch -> patch review title: IDLE: Document and fix configdialog font tests. -> IDLE: Document, fix, and complete configdialog font tests

[issue30714] test_ssl fails with openssl 1.1.0f

2017-07-23 Thread Larry Hastings
Larry Hastings added the comment: Quoting from the Python Dev Guide: "As a guideline, critical and above are usually reserved for crashes, serious regressions or breakage of very important APIs. Whether a bug is a release blocker is a decision better left to the release manager so, in any

[issue30714] test_ssl fails with openssl 1.1.0f

2017-07-23 Thread Larry Hastings
Larry Hastings added the comment: I don't see how a fix for a *test* can be considered a *release blocker*. The PR literally doesn't change Python's behavior; it only modifies two text files and a test. There is no crash or exploitable security hole being addressed here. --

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: I updated the patch for git master. Some cleanup is in order. -- ___ Python tracker ___

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-07-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2879 ___ Python tracker ___ ___

[issue30993] IDLE: Document and fix configdialog font tests.

2017-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5aa3bf041de5ee90ccbfcff103dcf3e54c5af237 by Terry Jan Reedy in branch '3.6': [3.6] bpo-30993: IDLE - Improve configdialog font page and tests. (GH-2818) (#2826) https://github.com/python/cpython/commit/5aa3bf041de5ee90ccbfcff103dcf3e54c5af237

[issue30993] IDLE: Document and fix configdialog font tests.

2017-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: A big issue with changing to tagging individual elements is back compatibility. Besides which, if the font is not bold, I cannot imaging bolding anything other than the definition names. This also seems to venture beyond 'keep IDLE simple for beginners'.

[issue30993] IDLE: Document and fix configdialog font tests.

2017-07-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2878 ___ Python tracker ___ ___

[issue30993] IDLE: Document and fix configdialog font tests.

2017-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 07ba305a4c169e017e076e490a173a6f9b95b38e by Terry Jan Reedy in branch 'master': bpo-30993: IDLE - Improve configdialog font page and tests. (#2818) https://github.com/python/cpython/commit/07ba305a4c169e017e076e490a173a6f9b95b38e --

[issue30997] TestCase.subTest and expectedFailure

2017-07-23 Thread Louie Lu
Louie Lu added the comment: I'm successful to add a sub.expectedFailure() to subTest, but in current API, it isn't that will done. First, you will not get any alarm or information that there is a test been treat as "expected failure" at the result text. Second, it just act like you putting

[issue8450] httplib: false BadStatusLine() raised

2017-07-23 Thread Shoham Peller
Changes by Shoham Peller : -- pull_requests: +2877 ___ Python tracker ___ ___

[issue30994] Asyncore does not need to copy map.items() before polling

2017-07-23 Thread STINNER Victor
STINNER Victor added the comment: Why it may be ok to avoid the copy, what is the advantage of applying the change? The current code is correct. -- nosy: +haypo ___ Python tracker

[issue25571] Improve the lltrace feature with the Py_Debug mode

2017-07-23 Thread STINNER Victor
STINNER Victor added the comment: I suggest to wait until sys.settrace() supports bytecode level tracing, then rewrite lltrace on top of it, open a new issue to remove C lltrace and close this issue. You need to write to python-dev if you want to remove the current C lltrace. --

[issue30940] Documentation for round() is incorrect.

2017-07-23 Thread Mandeep Singh
Changes by Mandeep Singh : -- pull_requests: +2876 ___ Python tracker ___ ___

[issue30997] TestCase.subTest and expectedFailure

2017-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: That's correct, I have a test like: def test_something(self): for info in CASES: with self.subTest(info): self.assert_something(info) For some values of 'info' the test is known to fail and I want to mark those as exptectedFailure

[issue30993] IDLE: Document and fix configdialog font tests.

2017-07-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: +1 on the Font/Indent name. And I agree that the indent widget would make more sense on the General tab, or another name, like Editor/Shell Preferences. Another thought I had was Fonts should maybe be part of a Theme. At the theme level (not at the tag

[issue30995] Support logging.getLogger(style='{')

2017-07-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list

[issue26692] cgroups support in multiprocessing

2017-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed that it is not possible for multiprocessing to choose an optimal default in all settings. However, making the default adequate for more use cases sounds like a reasonable goal. Currently, we are using `os.cpu_count()`. Ideally, we would have a second

[issue28382] Possible deadlock on sys.stdout/stderr when combining multiprocessing with threads

2017-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Also, a reliable fix is to use the "forkserver" (or "spawn", but it is much slower) method: https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods -- ___ Python tracker

[issue30997] TestCase.subTest and expectedFailure

2017-07-23 Thread Louie Lu
Louie Lu added the comment: There is a mailing-list discusss this before: https://mail.python.org/pipermail/python-list/2016-June/710575.html But after checking, current subTest contextmanager won't yield subtest, so the method of with self.subTest() as sub won't work. Another problem is,

[issue30997] TestCase.subTest and expectedFailure

2017-07-23 Thread Louie Lu
Louie Lu added the comment: So for example: for i in range(10): with self.subTest(i=i): DoSomething(i) we have some platform specific in i=8, i=9, and you want to labeled as expectedFailure. Do I miss something? -- nosy: +louielu

[issue30919] Shared Array Memory Allocation Regression

2017-07-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30919] Shared Array Memory Allocation Regression

2017-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 3051f0b78e53d1b771b49375dc139ca13f9fd76e by Antoine Pitrou in branch 'master': bpo-30919: shared memory allocation performance regression in multiprocessing (#2708)

[issue29902] copy breaks staticmethod

2017-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But I think it is worth to add a check and emit a deprecation warning in Py3k mode in 2.7. 2.7 has longer support term than 3.5. And since it is less compatible with 3.6, it is harder to use 3.6 for testing 2.7 programs. -- stage: -> patch review

[issue29902] copy breaks staticmethod

2017-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2875 ___ Python tracker ___ ___

[issue30997] TestCase.subTest and expectedFailure

2017-07-23 Thread Ronald Oussoren
New submission from Ronald Oussoren: It would be nice if there were a way to mark a TestCase.subTest as an expected failure. I have a number of testcases that use the subTest feature and where a small subset of those tests are expected failures due to platform issues. It would be nice if it

[issue30996] add coroutine AbstractEventLoop.sock_close

2017-07-23 Thread Fengyuan Chen
New submission from Fengyuan Chen: I suppose asyncio lack async version of sock_close that can call loop.remove_reader and others before close socket and perhaps lack something like coroutine AbstractEventLoop.sock_make_blocking that can do some deregister job. switch constant in the script:

[issue19903] Idle: Use inspect.signature for calltips

2017-07-23 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +2874 ___ Python tracker ___ ___ Python-bugs-list

[issue26579] Support pickling slots in subclasses of common classes

2017-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +haypo, r.david.murray versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue26579] Support pickling slots in subclasses of common classes

2017-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2873 ___ Python tracker ___ ___

[issue26692] cgroups support in multiprocessing

2017-07-23 Thread Charles-Fran├žois Natali
Charles-Fran├žois Natali added the comment: I'm not convinced. The reason is that using the number of CPU cores is just a heuristic for a *default value*: the API allows the user to specify the number of workers to use, so it's not really a limitation. The problem is that if you try to think

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client (CVE-2016-5699)

2017-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson, larry priority: normal -> release blocker ___ Python tracker ___

[issue29902] copy breaks staticmethod

2017-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have decided to not merge these changes in 3.5. They help to avoid programmatic errors, but have a non-zero chance of breaking programs that work by accidence. Since this is the last non-secure bugfix we will not have a chance to rollback these changes.

[issue26367] importlib.__import__ does not fail for invalid relative import

2017-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c824cc8426a16dd9f3949a3ed135523d37787bae by Serhiy Storchaka in branch '3.5': [3.5] Backport bpo-30876 (GH-2639), bpo-18018 and bpo-26367. (#2677) https://github.com/python/cpython/commit/c824cc8426a16dd9f3949a3ed135523d37787bae --

[issue30994] Asyncore does not need to copy map.items() before polling

2017-07-23 Thread Kevin williams
Changes by Kevin williams : -- nosy: -Nir Soffer, giampaolo.rodola, haypo ___ Python tracker ___

[issue30876] SystemError on importing module from unloaded package

2017-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c824cc8426a16dd9f3949a3ed135523d37787bae by Serhiy Storchaka in branch '3.5': [3.5] Backport bpo-30876 (GH-2639), bpo-18018 and bpo-26367. (#2677) https://github.com/python/cpython/commit/c824cc8426a16dd9f3949a3ed135523d37787bae --

[issue18018] SystemError: Parent module '' not loaded, cannot perform relative import

2017-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c824cc8426a16dd9f3949a3ed135523d37787bae by Serhiy Storchaka in branch '3.5': [3.5] Backport bpo-30876 (GH-2639), bpo-18018 and bpo-26367. (#2677) https://github.com/python/cpython/commit/c824cc8426a16dd9f3949a3ed135523d37787bae --