[issue29540] Add compact=True flag to json.dump/dumps

2017-02-14 Thread Bob Ippolito
Bob Ippolito added the comment: I agree, in isolation it's a fine proposal, but the interface here is already a bit too complex and the benefit is pretty minimal. When the size really does matter, you can take care to set it correctly once and be done with it. -- _

[issue29546] A more helpful ImportError message

2017-02-14 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Unsure if GitHub PR autolinks here. I'm attempting part of that at https://github.com/python/cpython/pull/91 AFAICT with my little knowledge of CPython internal, `name` and `path` where unset for `from ... import`. I'll be happy to change the formattin

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread Mark Dickinson
Mark Dickinson added the comment: See also #11165 -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue28598] RHS not consulted in `str % subclass_of_str` case.

2017-02-14 Thread Martijn Pieters
Changes by Martijn Pieters : -- pull_requests: +57 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue485165, issue8276 and issue11173. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks, but you missed the main difference: The argument tuple can be NULL for PyEval_CallObject() (it then gets replaced with an empty tuple), but will raise a segfault for PyObject_Call(). Now, apart from looking at the use cases in the core, you also ha

[issue8800] add threading.RWLock

2017-02-14 Thread Nathaniel Smith
Nathaniel Smith added the comment: Side note, in case anyone else finds themselves looking for the MSDN magazine article referenced above: it appears to be in the June 2007 issue, titled "CONCURRENCY: Synchronization Primitives New To Windows Vista". For the moment at least, this link seems t

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-14 Thread Alex Gordon
Alex Gordon added the comment: The point is that, as a principle of good API design, the json module should not generate malformed JSON unless the user very explicitly asks for their JSON to be corrupted. Python stands alone in having a JSON serializer that can produce strings such as {"k",[1

[issue29552] Issue in Dictionary fromkeys

2017-02-14 Thread Prudvi Mangadu
New submission from Prudvi Mangadu: If we load the keys and values using fromkeys on dic. Later the modification in the values is reflects for all keys in the DIC, please follow the below code. ### PS C:\Python2

[issue29552] Issue in Dictionary fromkeys

2017-02-14 Thread Prudvi Mangadu
Prudvi Mangadu added the comment: Workaround is replace the below 2 lines with "result ={D_IP:[] for D_IP in input}" == result = {} result = result.fromkeys(input,[]) Issue with this line == -- _

[issue29552] Issue in Dictionary fromkeys

2017-02-14 Thread Prudvi Mangadu
Prudvi Mangadu added the comment: Also observed that ID of the values are pointing same, its ok. But if some one later modified that values which causes the un-usual output. >>> id(result['1']) 38121184 >>> id(result['2']) 38121184 -- ___ Python trac

[issue26467] Add async magic method support to unittest.mock.Mock

2017-02-14 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue11173] Undocumented public APIs in Python 3.2

2017-02-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: PyEval_CallObject wasn't removed. It's a macro now. And it was documented for a long time in Extending Python... in fact, the documentation was removed, not the API :-) -- ___ Python tracker

[issue29470] [python] Error in `/usr/bin/python': free(): invalid size: 0x00007f628400d0e0

2017-02-14 Thread David Ford (FirefighterBlu3)
David Ford (FirefighterBlu3) added the comment: 2017-02-14 06:58:29 INFO connected: mustang.blue-labs.org/107.170.82.162:37188 2017-02-14 06:58:29 INFO No cert required for this host *** Error in `/usr/bin/python': double free or corruption (out): 0x7fb0f8003400 *** 2017-02-14 06:58:29 WARNI

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread INADA Naoki
INADA Naoki added the comment: > The argument tuple can be NULL for PyEval_CallObject() (it then gets replaced > with an empty tuple), but will raise a segfault for PyObject_Call(). PyObject_CallObject() accepts NULL as args. Macro vs function is only difference of them. On the other hand, Py

[issue24665] CJK support for textwrap

2017-02-14 Thread STINNER Victor
STINNER Victor added the comment: Florent Gallaire: Since Python 3.0 was released in 2008, new features are no more accepted in Python 2 (Python 2.7, the last release of Python 2). It's a deliberate choice, mostly motivated by the lack of CPython developers. See also the PEP 404. I'm only tal

[issue5667] Interpreter fails to initialize on build dir when IO encoding is one of CJK

2017-02-14 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce the bug. It seems like it was fixed since 8 years ;-) haypo@selma$ LC_ALL=ko_KR.eucKR ./python Python 3.7.0a0 (default, Feb 14 2017, 10:48:09) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)] on linux Type "help", "copyright", "credits" or "licens

[issue11165] Document PyEval_Call* functions

2017-02-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The PyEval_Call*() APIs indeed predate the PyObject_Call*() ones. The PyObject_Call*() APIs came into existence when the abstract layer was added in Python 1.3. The PyObject_Call*() APIs lacked a way to call an object with keyword arguments for a long tim

[issue24665] CJK support for textwrap

2017-02-14 Thread STINNER Victor
STINNER Victor added the comment: See also the now old issue #12568: "Add functions to get the width in columns of a character". -- ___ Python tracker ___ __

[issue25720] Fix curses module compilation with ncurses6

2017-02-14 Thread Ismail Donmez
Ismail Donmez added the comment: What's the status on this? Can you please create a pull request on Github so we can continue there? -- ___ Python tracker ___ __

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Looking through Python's history, it's interesting that PyObject_Call() did apply the args == NULL checks up until Python 2.1. In Python 2.2 this was replaced by a direct call to tp_call, without the checks. However, the tp_call slots don't do this check a

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread STINNER Victor
STINNER Victor added the comment: "you now add the extra support for args being NULL to PyObject_Call()" I dislike this idea. I don't want to change the API of this function. If it is likely that NULL is the result of a previous error: args = Py_BuildValue(...); res = PyObject_Call(func, args,

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread STINNER Victor
STINNER Victor added the comment: > Please note that the two sets of APIs are not identical, e.g. you cannot > simply replace PyEval_CallObject() with PyObject_Call(), since the former > applies a few extra checks and defaults, which the latter doesn't. IMHO these checks are too expensive at r

[issue29470] [python] Error in `/usr/bin/python': free(): invalid size: 0x00007f628400d0e0

2017-02-14 Thread STINNER Victor
STINNER Victor added the comment: You now have to test "PYTHONMALLOC=malloc valgrind python3 ...". IMHO it's not a bug in Python, but in your code ussing OpenSSL: File "/var/bluelabs/python/_cams_threaded_server.py", line 49 in sni_callback -- ___

[issue29157] random.c: Prefer getrandom() over getentropy() to support glibc 2.24 on Linux

2017-02-14 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7, see issue #29188: "Backport random.c from Python 3.5 to Python 2.7". Mercurial commit 13a39142c047, Git commit 01bdbad3e951014c58581635b94b22868537901c. https://github.com/python/cpython/commit/01bdbad3e951014c58581635b94b22868537901c --

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread INADA Naoki
INADA Naoki added the comment: > I'm more in favor of modifying PyEval_xxx() to call PyObject_xxx() and > deprecate them. That's PR 75 :) -- ___ Python tracker ___

[issue29470] [python] Error in `/usr/bin/python': free(): invalid size: 0x00007f628400d0e0

2017-02-14 Thread Christian Heimes
Christian Heimes added the comment: Please install debug symbols and provide a proper C backtrace of the invalid free call. The backtrace in your first comment is missing both line numbers, file and function names. -- ___ Python tracker

[issue29470] [python] Error in `/usr/bin/python': free(): invalid size: 0x00007f628400d0e0

2017-02-14 Thread Christian Heimes
Christian Heimes added the comment: Please also provide more information about your system: platform, distro, architecture, OpenSSL version, exact Python version etc. -- ___ Python tracker

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 14.02.2017 11:16, STINNER Victor wrote: > >> Please note that the two sets of APIs are not identical, e.g. you cannot >> simply replace PyEval_CallObject() with PyObject_Call(), since the former >> applies a few extra checks and defaults, which the latt

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyEval_CallObject() was added at Jan 12 1995 (05360cd616ae). PyObject_CallObject(), PyObject_CallFunction() and PyObject_CallMethod() were added with Include/abstract.h at Jul 18 1995 (d5398acafa2c) and implemented in terms of PyEval_CallObject(). PyEval_Cal

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Any idea of the popularity of the undocumented PyEval_xxx() functions? You can just search code at GitHub. I would suggest to deprecate PyEval_Call*() functions first only in the documentation. In 3.8 or 3.9 add the Py_DEPRECATED attribute. -- __

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread INADA Naoki
INADA Naoki added the comment: > I would suggest to deprecate PyEval_Call*() functions first only in the > documentation. In 3.8 or 3.9 add the Py_DEPRECATED attribute. doesn't excluded by PEP 384. And these 3 functions and 1 macro is outside of "#ifndef Py_LIMITED_API" check. So they are par

[issue29552] Issue in Dictionary fromkeys

2017-02-14 Thread Martin Panter
Martin Panter added the comment: This is similar to the problem of building a list by repeating one item: . With dict.fromkeys(), the resulting dictionary maps each specified key object to the one and onl

[issue29552] Issue in Dictionary fromkeys

2017-02-14 Thread Martin Panter
Martin Panter added the comment: I suggest to close this as not a bug. -- resolution: -> not a bug ___ Python tracker ___ ___ Python-

[issue29552] Issue in Dictionary fromkeys

2017-02-14 Thread Prudvi Mangadu
Prudvi Mangadu added the comment: Thanks Martin , I will close it. -- stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-14 Thread Berker Peksag
Berker Peksag added the comment: I'm +1 on the idea. Currently, a user needs to find this information in a wall of text: "To get the most compact JSON representation, you should specify (',', ':') to eliminate whitespace." It's easy to miss the lack of trailing space in (',', ':'). Perhaps th

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-14 Thread STINNER Victor
STINNER Victor added the comment: "Add compact=True flag to json.dump/dumps" Oh, fun, I implemented exactly this option in my perf project. Extract: def dump(data, fp, compact): kw = {} if compact: kw['separators'] = (',', ':') else:

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread STINNER Victor
STINNER Victor added the comment: > So they are part of stable ABI. We can't remove them until Python 4. Please just stop right now using "Python 4" as the starting point to break -again- the Python world. If you plan to remove the function, plan it right now with versions like "in 2 cycles".

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-14 Thread Christoph Stahl
New submission from Christoph Stahl: When creating nested mutually exclusive groups, all closing brackets except one are omitted. Example: parser = ArgumentParser() group = parser.add_mutually_exclusive_group() group.add_argument('-a') group.add_argument('-b') group2 = group.add_mutually_exclus

[issue29548] deprecate PyEval_Call*() functions.

2017-02-14 Thread INADA Naoki
INADA Naoki added the comment: I stopped deprecating PyEval_Call APIs, and removing it's usage in PR 75. Summary of current pull requests: PR 87 contains fix regression of PyEval_CallObjectWithKeywords for Python 3.6. PR 75 is for master branch. It contains fix same to PR 87. Additionally, P

[issue29554] profile/pstat doc clariification

2017-02-14 Thread Matthias Bussonnier
New submission from Matthias Bussonnier: profile .rst say: > Each restriction is either an integer (to select a count of lines), or a > decimal fraction between 0.0 and 1.0 inclusive (to select a percentage of > lines), **or a regular expression** Actually it accept a string that will be comp

[issue29555] Update Python Software Foundation Copyright Year

2017-02-14 Thread Senthil Kumaran
New submission from Senthil Kumaran: In the attached patch, I updated the copyright year to 2017 at places it was mentioned until 2016. There was a suggestion that we remove the copyright line of Python Software Foundation from module headers since the code is already covered 1) by top level

[issue29555] Update Python Software Foundation Copyright Year

2017-02-14 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29556] Remove an unused #include from bltinmodule.c

2017-02-14 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: This #include is added in b744ba1d14c5487576c95d0311e357b707600b47 (issue8610) and later the use of CODESET is removed in d64e8a75e5138d5e5970f0c70995ae5cc377c421 (issue9642). Found this in investigating issue29436 Add haypo as both commit is written by you

[issue29556] Remove an unused #include from bltinmodule.c

2017-02-14 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- pull_requests: +58 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue29557] binhex documentation claims unknown bug

2017-02-14 Thread David Wilemski
New submission from David Wilemski: The binhex documentation has a line in it that says "As of this writing, hexbin() appears to not work in all cases." This is a bit ambiguous and there is no context for what the bug may be. It appears this line is from the first commit to the hexbin function

[issue29556] Remove an unused #include from bltinmodule.c

2017-02-14 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Hmmm, seems there are more redundant #include ; let me check one by one -- ___ Python tracker ___ __

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-14 Thread Christoph Stahl
Changes by Christoph Stahl : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29387] Tabs vs spaces FAQ out of date

2017-02-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 38c8354f3204441f6c6bd22213b449d2d8954fcc by GitHub in branch '3.5': bpo-29521 Fix two minor documentation build warnings (#41) (#84) https://github.com/python/cpython/commit/38c8354f3204441f6c6bd22213b449d2d8954fcc -- nosy: +Mariatta _

[issue29556] Remove unused #include

2017-02-14 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- title: Remove an unused #include from bltinmodule.c -> Remove unused #include ___ Python tracker ___ _

[issue29558] Provide run_until_complete inside loop

2017-02-14 Thread Javier Domingo
New submission from Javier Domingo: The current architecture of asyncio makes it really hard to combine both async and sync code. When porting a Thread based application to asyncio, the first step is usually to start merging threads to the main loop, by using `run_coroutine_threadsafe`. This

[issue19675] Pool dies with excessive workers, but does not cleanup

2017-02-14 Thread Dustin Oprea
Dustin Oprea added the comment: I don't think this can be tested. Throwing exceptions in the remote process causes exceptions that can't be caught in the same way (when the initializer fails the pool just attempts to recreate the process over and over) and I don't think it'd be acceptable to t

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-14 Thread Brett Cannon
Brett Cannon added the comment: I'm a little confused as the PR proposes a COMPACT constant for the module but the issue proposes a new compact argument. Which are we actively considering? -- ___ Python tracker __

[issue29534] _decimal difference with _pydecimal

2017-02-14 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 6d1dece06d13a7d40637e07b2c79f34aab368766 by Mark Dickinson in branch 'master': Fixed #29534 - _decimal difference with _pydecimal (#65) https://github.com/python/cpython/commit/6d1dece06d13a7d40637e07b2c79f34aab368766 -- ___

[issue29534] _decimal difference with _pydecimal

2017-02-14 Thread Mark Dickinson
Mark Dickinson added the comment: PR merged; thank you! Unfortunately, just after I merged it I noticed that the Misc/NEWS entry was in the wrong section. I'll make a new PR to fix that, and close this issue once it's done. -- ___ Python tracker <

[issue29559] Detect mouse over lines on canvas while mouse button is down

2017-02-14 Thread Ted Shaneyfelt
New submission from Ted Shaneyfelt: There way mouse captures are done, mouse-over events seem to be disabled while dragging. This makes it difficult to provides hints as feedback, and more complicated than it should be to detect when dropping over a particular line object. Tk may not direct

[issue29534] _decimal difference with _pydecimal

2017-02-14 Thread Mark Dickinson
Mark Dickinson added the comment: PR to fix the Misc/NEWS entry: https://github.com/python/cpython/pull/99 -- ___ Python tracker ___ _

[issue6143] IDLE - an extension to clear the shell window

2017-02-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Alwx, please do not change the headers. IDLE menu commands cannot be invoked from a program. -- type: resource usage -> behavior versions: +Python 3.6, Python 3.7 -Python 2.7 ___ Python tracker

[issue29534] _decimal difference with _pydecimal

2017-02-14 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 996c3874fdbc91d29f0a06b37043f62cf4ead6cb by GitHub in branch 'master': Issue #29534: move Misc/NEWS entry to correct section; add Misc/ACS entry for Andrew Nester. (#99) https://github.com/python/cpython/commit/996c3874fdbc91d29f0a06b37043f62cf4e

[issue29534] _decimal difference with _pydecimal

2017-02-14 Thread Mark Dickinson
Mark Dickinson added the comment: All done. Closing. (In theory, as a bugfix, this could be backported to 3.5 and 3.6. In practice, I doubt it's worth the effort.) -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue29560] Turtle graphics fill behavior differs between versions

2017-02-14 Thread John Simmons
New submission from John Simmons: When I run the demo program on the library 24.1 documentation page to draw the star, it colors the entire star yellow, not just the parts that are show yellow on the page. This appears to be a behavior change. This is running on a Windows 7 or 10 machine wit

[issue10746] ctypes c_long & c_bool have incorrect PEP-3118 type codes

2017-02-14 Thread Pauli Virtanen
Pauli Virtanen added the comment: Converted patch to Github PR + some cleanup. -- pull_requests: +61 ___ Python tracker ___ ___ Python

[issue11165] Document PyEval_Call* functions

2017-02-14 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue28695] Add SSL_CTX_set_client_cert_engine

2017-02-14 Thread Gennady Kovalev
Gennady Kovalev added the comment: Is there any news? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue10746] ctypes c_long & c_bool have incorrect PEP-3118 type codes

2017-02-14 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue28695] Add SSL_CTX_set_client_cert_engine

2017-02-14 Thread Christian Heimes
Christian Heimes added the comment: I haven't started to design the new feature yet. Since it is going to be a new feature and feature freeze of 3.7 is 2018-01-29, I'm going to start working on new stuff around in April or May for PyCon. -- ___ Pyth

[issue28695] Add SSL_CTX_set_client_cert_engine

2017-02-14 Thread Gennady Kovalev
Gennady Kovalev added the comment: Ok, thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29561] Interactive mode gives sys.ps2 not sys.ps1 after comment-only line

2017-02-14 Thread Jim DeLaHunt
New submission from Jim DeLaHunt: When you run the Python interpreter in interactive mode, get a sys.ps1 prompt (`...`), and type a comment-only or white-space-only line, the interpreter responds with a sys.ps2 prompt (`...`), instead of a sys.ps1 prompt. This seems wrong. For example: % ./

[issue29558] Provide run_until_complete inside loop

2017-02-14 Thread Martin Panter
Martin Panter added the comment: Sounds related to Issue 22239 -- nosy: +martin.panter ___ Python tracker ___ ___ Python-bugs-list mai

[issue29546] A more helpful ImportError message

2017-02-14 Thread Matthias Bussonnier
Changes by Matthias Bussonnier : -- pull_requests: +62, 63 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue29546] A more helpful ImportError message

2017-02-14 Thread Matthias Bussonnier
Changes by Matthias Bussonnier : -- pull_requests: +62, 63, 64 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29546] A more helpful ImportError message

2017-02-14 Thread Matthias Bussonnier
Changes by Matthias Bussonnier : -- pull_requests: +62 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue29557] binhex documentation claims unknown bug

2017-02-14 Thread Berker Peksag
Berker Peksag added the comment: New changeset 6de2b7817fa9403e81dc38f13f3690f0bbf3d064 by Berker Peksag in branch 'master': bpo-29557: Remove ambiguous line in binhex docs (#90) https://github.com/python/cpython/commit/6de2b7817fa9403e81dc38f13f3690f0bbf3d064 -- nosy: +berker.peksag

[issue29557] binhex documentation claims unknown bug

2017-02-14 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> patch review type: -> behavior versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue29546] A more helpful ImportError message

2017-02-14 Thread Brett Cannon
Brett Cannon added the comment: New changeset bc4bed440504597cac47d0a215ee094bfa99ba7e by Brett Cannon in branch 'master': bpo-29546: Set 'path' on ImportError for ``from ... import ...`` (GH-91) https://github.com/python/cpython/commit/bc4bed440504597cac47d0a215ee094bfa99ba7e -- ___

[issue29546] A more helpful ImportError message

2017-02-14 Thread Brett Cannon
Brett Cannon added the comment: Thanks to Matthias' PR the information is all there in the exception, but the message has not been changed. One idea for this -- depending on how much C code you want to write -- is to provide a default message for __str__() that changes depending on whether 'pa

[issue29546] A more helpful ImportError message

2017-02-14 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I'm unsure I understand changing only the default __str__() method. You will anyway have to format the message differently depending on whether you raise from a from-import or a from-import-* or any other locations. AFAIU you "just" need the following

[issue29546] A more helpful ImportError message

2017-02-14 Thread Matthias Bussonnier
Changes by Matthias Bussonnier : -- pull_requests: +66 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue29546] A more helpful ImportError message

2017-02-14 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: See https://github.com/python/cpython/pull/103 that implements Barry's proposed format. -- ___ Python tracker ___

[issue29531] Update Doc/README.txt to README.rst

2017-02-14 Thread Roger Sachan
Changes by Roger Sachan : -- pull_requests: -31 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue29531] Update Doc/README.txt to README.rst

2017-02-14 Thread Roger Sachan
Changes by Roger Sachan : -- pull_requests: +67 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-14 Thread Jim DeLaHunt
New submission from Jim DeLaHunt: When I run test.test_posix.PosixTester.test_getgroups on my Mac OS X system, it fails: % ./python.exe -m unittest -v test.test_posix.PosixTester.test_getgroups test_getgroups (test.test_posix.PosixTester) ... FAIL ==

[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-14 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: I have pushed a branch for this issue to my cpython fork: https://github.com/JDLH/cpython/tree/bpo-29562_failing_test_getgroups_on_os_x It modifies test_getgroups in test_posix.py to give better diagnostics in the event of a test failure. It says specifically wh

[issue18779] Misleading documentations and comments in regular expression HOWTO

2017-02-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Unfortunately making the sentences pedantically correct also makes them ungainly, and I think people generally assume that underscores are treated as a letter. -- nosy: +akuchling resolution: -> wont fix stage: patch review -> resolved status: open ->

[issue29563] Update Devguide about building documentation.

2017-02-14 Thread Jim DeLaHunt
New submission from Jim DeLaHunt: The Devguide section 7.5.1 "Building the documentation" / "Using make / make.bat" is out of date. The document lists 10 documentation targets for `make`. The Doc/Makefile lists 17. One important omission is `make check`, which looks for errors in reStructur

[issue29564] ResourceWarning tracking is attaching incorrect file:position to unclosed socket

2017-02-14 Thread David Ford (FirefighterBlu3)
New submission from David Ford (FirefighterBlu3): the following warning is incorrectly reported as initiated at psycopg2/extras.py:314, it actually occurs inside the Twilio python module. /usr/lib/python3.6/site-packages/psycopg2/extras.py:314: ResourceWarning: unclosed ts = super(NamedTupl

[issue29529] Backport Travis configuration

2017-02-14 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +68 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29470] [python] Error in `/usr/bin/python': free(): invalid size: 0x00007f628400d0e0

2017-02-14 Thread David Ford (FirefighterBlu3)
David Ford (FirefighterBlu3) added the comment: in process of creating a non-stripped python install. the default Arch Linux PKGBUILD uses xvfb-run at the end of the build process which is crashing. -- ___ Python tracker

[issue29470] [python] Error in `/usr/bin/python': free(): invalid size: 0x00007f628400d0e0

2017-02-14 Thread David Ford (FirefighterBlu3)
David Ford (FirefighterBlu3) added the comment: my SNI callback is a function that chooses which SSL certificate to load and summarized is: 6 def sni_callback(sock, servername, context): [...] 44 # load a specific crt/key 45 store = crtstore[servername] 46 47

[issue29470] [python] Error in `/usr/bin/python': free(): invalid size: 0x00007f628400d0e0

2017-02-14 Thread David Ford (FirefighterBlu3)
David Ford (FirefighterBlu3) added the comment: Arch Linux (updated ~weekly but not often rebooted) on a Digital Ocean droplet. Kernel 4.5.1-1-ARCH, x86_64, OpenSSL 1.0.2j, Python 3.6.0 -- ___ Python tracker _

[issue29563] Update Devguide about building documentation.

2017-02-14 Thread Zachary Ware
Zachary Ware added the comment: I'd suggest replacing as much as possible in the devguide with a link to Doc/README.rst (or Doc/README.txt, if that's what it still is). Other improvements should be made in the README. -- nosy: +zach.ware ___ Python

[issue29521] Minor warning messages when compiling documentation

2017-02-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +69 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29536] test_hashlib failure on Ubuntu 16.04

2017-02-14 Thread Xiang Zhang
Xiang Zhang added the comment: I am using 16.10 but I can't reproduce the failures. Sachin can you reliably reproduce the failures? And one thing interesting is that all the failed test cases need the network source to be enabled but your command doesn't do that, it's better to use ./python -m

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +70 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +71 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +72 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks, Raymond :) I prepared the pull requests for 3.5, 3.6, and master branches. Thomas, you mentioned about needing to go over CLA with your employer in your PR. Not sure if you have any update on that? If your CLA is approved, I can merge and cherry-pic

[issue29521] Minor warning messages when compiling documentation

2017-02-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +73 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29521] Minor warning messages when compiling documentation

2017-02-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +74 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue28929] Provide a link from documentation back to its source file

2017-02-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +75 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

  1   2   >