[issue24756] doctest run_docstring_examples does have an obvious utility

2015-07-30 Thread Ethan Furman
Ethan Furman added the comment: Looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24756 ___ ___ Python-bugs-list mailing list

[issue24754] argparse add_argument with action=store_true, type=bool should not crash

2015-07-30 Thread R. David Murray
R. David Murray added the comment: Looking at the source it appears that there are many actions for which it is not legal to also specify type. That is, this looks like a design decision rather than a bug. -- nosy: +r.david.murray ___ Python

[issue24756] doctest run_docstring_examples does have an obvious utility

2015-07-30 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24756 ___ ___ Python-bugs-list

[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-30 Thread Etienne Fortin
Etienne Fortin added the comment: I replaced: import importlib.machinery loader = importlib.machinery.ExtensionFileLoader(name, path) return loader.load_module() With: import importlib.machinery loader = importlib.machinery.ExtensionFileLoader(modname, filename)

[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-30 Thread R. David Murray
R. David Murray added the comment: You are on your own for AIX debugging, I'm afraid. You can try the #python-dev channel on freenode for questions about how things work in general. If you find real problems with the python code you can open new issues (we have accepted patches for AIX when

[issue16508] include the object type in the lists of documented types

2015-07-30 Thread Martin Panter
Martin Panter added the comment: Here is a patch. Perhaps it is what you had in mind. I added quick mentions of the “object” class to The Standard Type Hierarchy and Other Built-in Types. I added documentation of what the object class’s own implementations do where it provides them. I added

[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-30 Thread REIX Tony
REIX Tony added the comment: About test_io, when running it alone by: ./python ./Lib/test/test_io.py /tmp/test_io.res I got NO error ! Done 2 times on each of my 2 AIX machines. Hu Why these tests do block in the middle ? -- ___ Python

[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-30 Thread REIX Tony
REIX Tony added the comment: I got strange things: Tests blocked in: [300/400/22] test_signal and: # ps -edf | grep python root 7405612 12320954 0 14:52:04 pts/2 0:00 ./python -m -c -l -x test_io root 7929900 34209932 0 14:52:04 pts/2 0:00 ./python -m -c -l -x test_io

[issue24756] doctest run_docstring_examples does have an obvious utility

2015-07-30 Thread R. David Murray
New submission from R. David Murray: I propose that we remove the paragraph before 'run_docstring_exmaples' in the doctest docs. It says that there's no intent to remove the function but that it is rarely useful. However, it is in fact *very* useful, for any code that also uses testmod.

[issue24707] Assertion failed in pymonotonic_new

2015-07-30 Thread STINNER Victor
STINNER Victor added the comment: Chris Angelico added the comment: Where's this issue heading? The buildbots seem to be green now, does that imply that this is fixed? The issue still exist, it's just that the issue occurs randomly and is very rare (seen twice in 6 months...). --

[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-30 Thread REIX Tony
REIX Tony added the comment: Hum I'm now building Python 2.7.10 RPMs on AIX. The .spec file works fine. However, when adding make test in the .spec file, I've got the tests blocked in test_io. The same with 2.7.6 . Going into the directory and trying make quicktest, it is now blocked after

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4476b578b8fd by Berker Peksag in branch '3.5': Issue #15582: Add a whatsnew entry for inspect.getdoc() changes in 3.5. https://hg.python.org/cpython/rev/4476b578b8fd New changeset e0f4a5f09bfa by Berker Peksag in branch 'default': Issue #15582: Add

[issue24745] Better default font for editor

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: I'm ok with putting TkFixedFont in the config file. Only potential downside I see is that the code will look for this specific value, but people may read the config file and assume it could be changed to any Tk*Font. I'd strongly argue against putting in a

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Eric Snow added the comment: Also, here is the output from running the pywikibot suite (using just the 3 test modules) with the logging odict wrapper. -- Added file: http://bugs.python.org/file40069/odict.log ___ Python tracker

[issue15138] base64.urlsafe_b64**code are too slow

2015-07-30 Thread Guido van Rossum
Guido van Rossum added the comment: I'm going to apply the 2.7 patch, except I'm going to leave the (now unused) _translate() function in place, in case it's used anywhere (minimizing the risk of breaking anything). -- ___ Python tracker

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Eric Snow added the comment: After some quick tests, it looks like during the tests only a single thread is used, so it is *not* threading-related. That makes a bit more sense to me given the consistency. Notwithstanding this development, I should be able to isolate the problem soon (when I

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-07-30 Thread Berker Peksag
Berker Peksag added the comment: Applied, thanks! -- nosy: +berker.peksag stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15582 ___

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: Sounds good. To clarify, (2) refers to not the overall window, but just around the text widget. Both regarding this and the comments regarding status bar (4), things look really good now on Windows. The changes I've made are barely perceptible there, but

[issue12160] codecs doc: what is StreamCodec?

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9694502f07c by Berker Peksag in branch '3.4': Issue #12160: Fix incorrect StreamCodec references in Codec.encode() and Codec.decode() docs. https://hg.python.org/cpython/rev/f9694502f07c New changeset 98631f35426f by Berker Peksag in branch

[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-30 Thread REIX Tony
REIX Tony added the comment: Yes. I'm on my own for AIX debugging. I'm afraid too. ;) OK. What I need is build more skills about how to get into deep details when things run badly. Lot of fun. ;) Thx -- ___ Python tracker rep...@bugs.python.org

[issue24752] SystemError when importing from a non-package directory

2015-07-30 Thread Eric Snow
Eric Snow added the comment: You are correct that SystemError indicates a non-fatal issue in the interpreter and thanks for reporting the matter. In this case I'd say that SystemError is the wrong exception type. I expect that ImportError (or perhaps RuntimeError) is more appropriate.

[issue12160] codecs doc: what is StreamCodec?

2015-07-30 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Nick! -- nosy: +berker.peksag resolution: - fixed stage: commit review - resolved status: open - closed type: - behavior versions: +Python 3.5, Python 3.6 -Python 3.1, Python 3.2 ___ Python

[issue13884] IDLE: Remove tear-off menu feature

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: Doing it via the option database vs. on each menu would be my preferred approach. The option database is global, not per toplevel, so would cover everything. Only 'downside' is the whole its-not-an-application-its-a-library thing, though in the highly unlikely

[issue15138] base64.urlsafe_b64**code are too slow

2015-07-30 Thread Guido van Rossum
Guido van Rossum added the comment: And just in case someone objects to my breaking the policy stated by Antoine in msg163432: see http://bugs.python.org/issue4753 -- it's not actually a real policy. -- versions: +Python 2.7 ___ Python tracker

[issue15138] base64.urlsafe_b64**code are too slow

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 309cbbc32491 by Guido van Rossum in branch '2.7': Issue #15138: Speed up base64.urlsafe_b64* considerably (2.7 backport). https://hg.python.org/cpython/rev/309cbbc32491 -- nosy: +python-dev ___ Python

[issue12932] filecmp.dircmp does not allow non-shallow comparisons

2015-07-30 Thread Robert Collins
Robert Collins added the comment: Thanks for the patch @planet36, however I think this is sufficiently large a change that we should also have a test case for it. I'm also retargeting this to the current open branches for feature work - 3.6. -- nosy: +rbcollins stage: commit review -

[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message

2015-07-30 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24758 ___ ___

[issue12160] codecs doc: what is StreamCodec?

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 296a09614f31 by Berker Peksag in branch '2.7': Issue #12160: Fix incorrect StreamCodec references in Codec.encode() and Codec.decode() docs. https://hg.python.org/cpython/rev/296a09614f31 -- ___ Python

[issue13884] IDLE: Remove tear-off menu feature

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset bead9330438c by Terry Jan Reedy in branch '2.7': Issue #13884: Idle: Remove tearoff lines from menus. Patch by Roger Serwy. https://hg.python.org/cpython/rev/bead9330438c New changeset 6eb4441ed14b by Terry Jan Reedy in branch '3.4': Issue #13884:

[issue13884] IDLE: Remove tear-off menu feature

2015-07-30 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13884 ___ ___

[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message

2015-07-30 Thread Robert Collins
Robert Collins added the comment: How were you setting/introducing your assertions on the mocks? e.g. could you supply a small sample script showing what used to work? Thanks. -- nosy: +rbcollins ___ Python tracker rep...@bugs.python.org

[issue12932] filecmp.dircmp does not allow non-shallow comparisons

2015-07-30 Thread Robert Collins
Robert Collins added the comment: Bah, wrong stage. patch review. -- stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12932 ___

[issue24757] Installing Py on Windows: Need to restart or logout for path to be added

2015-07-30 Thread eryksun
eryksun added the comment: I think a custom action can be added to Tools/msi/msisupport.c to send a [WM_SETTINGCHANGE][1] Environment message to top-level windows. This makes Explorer reload its environment from the registry, so starting a new command prompt (cmd.exe) from Explorer will see

[issue23779] imaplib authenticate raises TypeError if authenticator tries to abort

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe55a36a335b by Robert Collins in branch '3.4': Issue #23779: imaplib raises TypeError if authenticator tries to abort. https://hg.python.org/cpython/rev/fe55a36a335b New changeset b6f04b9d8c12 by Robert Collins in branch '3.5': Issue #23779:

[issue23779] imaplib authenticate raises TypeError if authenticator tries to abort

2015-07-30 Thread Robert Collins
Robert Collins added the comment: Thanks for the patch. Applied to 3.4 through 3.6. -- nosy: +rbcollins resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13884] IDLE: Remove tear-off menu feature

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided the accessibility argument does not apply because a) there is only one nested menu, Recent files b) that menu can be very wide and I intend to make it longer, making it a bad candidate for staying on the screen, and c) when torn off, it did not seem

[issue24724] Element.findall documentation misleading

2015-07-30 Thread Eric S
Eric S added the comment: Pointing to XPath and clarifying the example reference are good ideas. For me though, the phrase direct children would still lead me to believe that findall() would only give me the first generation right below the element (e.g. only the countries in the example),

[issue24759] Idle: require 8.5 / ttk

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tested by renaming installed 3.5 ttk, editing 3.5 PyShell with 3.4, and clicking 3.5 icon. -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24759

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: Great. Sent in the contributor agreement Monday so I assume it should percolate through soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24750 ___

[issue24760] IDLE settings dialog shouldn't be modal

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't know. I do not thing that any option settings affect the dialog box itself, Someone could switch modal off and experiment. It would certainly make it easier to change something, Apply, and then try it out. The is one place I would not feel obligated

[issue24039] Idle: some modal dialogs maximize, don't minimize

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another solution to this issue is to not make things modal. See #24760. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24039 ___

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Eric Snow added the comment: Getting closer. Here's a reproducer derived from the calls made while running the pywikibot test suite (3 tests only). Note that the KeyError indicates a different key for each run, even though the code is consistent. This means that order preservation is

[issue24724] Element.findall documentation misleading

2015-07-30 Thread Martin Panter
Martin Panter added the comment: How about something like: ''' :meth:`Element.findall` finds all elements matching a path expression; in this example, all country children of *root*. meth:`Element.find` finds the *first* matching element, in this example the first rank child. . . . ''' Also,

[issue24759] Idle: require 8.5 / ttk

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: Sounds good. Only suggestion, given it's user facing, is to have the error message point them towards a solution. Off the top of my head, maybe something like IDLE requires Python be configured to use Tk 8.5 or newer (you have Tk x.x) with a title of IDLE

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looks fine on Windows. Now to be picky: Is it possible to move 'Col:' to the left, leaving space to the right, so that 'Col:' does not move when going from 9 to 10? Ditto for 'Ln:'? -- ___ Python tracker

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: The attached mainwin.patch implements these few small changes (except for removing the Mac grow box space); checked active/inactive on Mac, Windows, Linux. -- keywords: +patch Added file: http://bugs.python.org/file40070/mainwin.patch

[issue24707] Assertion failed in pymonotonic_new

2015-07-30 Thread STINNER Victor
STINNER Victor added the comment: Hum, I'm not sure that I was clear: in fact, the assertion is only useful for me, because I'm curious to know bugs in implementations of monotonic clocks. In the case of this buildbot, it may be a bug in qemu, less likely in the linux kernel. I don't think that

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Eric Snow added the comment: As expected (considering the link to dict ordering here), the inconsistent results are tied to hash randomization: $ for i in `seq 1 25`; do echo $i; PYTHONHASHSEED=$i ./python /tmp/odict_reproduce.py; done

[issue24759] Idle: require 8.5 / ttk

2015-07-30 Thread Terry J. Reedy
New submission from Terry J. Reedy: PyShell currently has this code try: from tkinter import * except ImportError: print(** IDLE can't import Tkinter.\n Your Python may not be configured for Tk. **, file=sys.__stderr__) sys.exit(1) import tkinter.messagebox as tkMessageBox

[issue13248] deprecated in 3.2/3.3, should be removed in 3.5 or ???

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad4c1bfe257f by Berker Peksag in branch 'default': Issue #13248: Delete remaining references of inspect.getargspec(). https://hg.python.org/cpython/rev/ad4c1bfe257f -- ___ Python tracker

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-07-30 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Alessandro! I left some additional comments on Rietveld: https://bugs.python.org/review/19475/#ps15278 -- nosy: +berker.peksag stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added a dependency to gracefully exit when no ttk. Mark: If you have not yet, please sign PSF Contributor Agreement before submitting further patches. https://www.python.org/psf/contrib/ https://www.python.org/psf/contrib/contrib-form/ I now see what you

[issue24760] IDLE settings dialog shouldn't be modal

2015-07-30 Thread Mark Roseman
New submission from Mark Roseman: Is there any reason the IDLE settings dialog is modal? (Actually while it is modal on Windows and Linux, on OS X you can actually switch back to the main window while the settings dialog is up, but you can't actually type etc. into it!) While I could

[issue24760] IDLE settings dialog shouldn't be modal

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: Ok, I'll do some playing around with that one over the next few days, and see if anything comes up. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24760

[issue18383] test_warnings modifies warnings.filters when running with -W default

2015-07-30 Thread Berker Peksag
Berker Peksag added the comment: Here is an updated patch (against 3.4 branch). I've just made some small cosmetic changes and split the test into two parts (filterwarnings and simplefilter). Patch looks reasonable to me, but it would be nice to get a second opinion. -- Added file:

[issue24759] Idle: require 8.5 / ttk

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Improved message. Thanks. Should be good enough for the extremely few times it should ever be triggered. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I patched the other scrollbars for 3.4 and verified the expected appearance change. For 2.7, with 8.5.15, I so not see any difference. Is this what I should expect on Windows? Did ttk.Scrollbar only use the Win7 scrollbar in 8.6? --

[issue24707] Assertion failed in pymonotonic_new

2015-07-30 Thread Chris Angelico
Chris Angelico added the comment: Ah. It's one of *those* bugs. Got it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24707 ___ ___

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: The mainwin2.patch keeps the width of the fields constant. Thanks! -- Added file: http://bugs.python.org/file40071/mainwin2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24750

[issue24759] Idle: require 8.5 / ttk

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8203fc75b3d2 by Terry Jan Reedy in branch '2.7': Issue 24759: Gracefull exit Idle if ttk import fails. https://hg.python.org/cpython/rev/8203fc75b3d2 New changeset 13a8782a775e by Terry Jan Reedy in branch '3.4': Issue 24759: Gracefull exit Idle if

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Eric Snow added the comment: For the reproducer I'm sticking with a seed of 1: PYTHONHASHSEED=1 ./python /tmp/odict_reproduce.py -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___

[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory

2015-07-30 Thread Robert Collins
Robert Collins added the comment: Yes, Python vendors pip, but is not maintaining it - it should be filed in https://github.com/pypa/pip/issues. -- nosy: +rbcollins resolution: third party - rejected status: pending - closed ___ Python tracker

[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory

2015-07-30 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- resolution: rejected - third party stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21657 ___

[issue20674] Update comments in dictobject.c

2015-07-30 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- components: +Documentation keywords: +easy stage: - needs patch versions: +Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20674

[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory

2015-07-30 Thread Zachary Ware
Zachary Ware added the comment: I sincerely apologize for it taking more than a year for somebody to say this, but I think this is in the wrong bug tracker and should be reported to the pip project at https://github.com/pypa/pip/issues Donald, could you confirm? -- nosy: +zach.ware

[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message

2015-07-30 Thread Randy Syring
Randy Syring added the comment: Old functionality: (temp)rsyring@loftex:~/projects/hllapi-src$ python Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type help, copyright, credits or license for more information. import mock mock.__version__ '1.0.0' m = mock.Mock()

[issue23420] python -m cProfile -s fails with non informative message

2015-07-30 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23420 ___ ___

[issue13248] deprecated in 3.2/3.3, should be removed in 3.5 or ???

2015-07-30 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, Berker! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13248 ___ ___ Python-bugs-list mailing list

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I assume that change should be apparent on 2.7 with other system, but I'd like to make sure that I have not missed anything. I am otherwise ready to commit these. -- Added file: http://bugs.python.org/file40075/@scroll.diff

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hmm, the problem with maxsize = constant is occasionally losing a trailing digit or two. For instance, if one enters 8**, one might be interested in the number of digits and put cursor at end of wrapped line. But trailing 7 of 2007 is missing. Is there

[issue24751] regrtest/buildbot: test run marked as failure even when re-run succeeds

2015-07-30 Thread Zachary Ware
Zachary Ware added the comment: Here's a patch. -- components: +Tests keywords: +patch stage: - patch review type: - behavior versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file40076/issue24751.diff ___

[issue24761] ERROR: test_dh_params (test.test_ssl.ThreadedTests)

2015-07-30 Thread Zhang Yun
Changes by Zhang Yun cloud2h...@163.com: -- components: Tests files: test_ssl.log nosy: cloud2han9 priority: normal severity: normal status: open title: ERROR: test_dh_params (test.test_ssl.ThreadedTests) versions: Python 3.4 Added file: http://bugs.python.org/file40077/test_ssl.log

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: Added file: http://bugs.python.org/file40078/odict_reproduce.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___

[issue20051] PA-RISC buildbot: compiler cannot create executables

2015-07-30 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- resolution: - out of date stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20051 ___

[issue21126] Return results from doctest.run_docstring_examples()

2015-07-30 Thread Zachary Ware
Zachary Ware added the comment: Patch looks straightforward enough to me, and I think it's a good idea; tests would be nice though (was another issue opened for that?). -- nosy: +zach.ware stage: - commit review title: Integrate doctest.run_docstring_examples() with unittest - Return

[issue20464] Update distutils sample config file in Doc/install/index.rst

2015-07-30 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- versions: +Python 3.5, Python 3.6 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20464 ___

[issue23652] ifdef uses of EPOLLxxx macros so we can compile on systems that don't have them

2015-07-30 Thread Zachary Ware
Zachary Ware added the comment: Looks good to me. -- nosy: +zach.ware stage: - commit review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23652 ___

[issue24762] Branchless, vectorizable frozen set hash

2015-07-30 Thread Raymond Hettinger
New submission from Raymond Hettinger: Speed-up frozenset_hash(). Switching to an entry++ style loop instead of set_next() eliminates much of the loop overhead. Removing the key=NULL or key==dummy checks eliminates the unpredictable branches and makes the loop vectorizable. Those benefits

[issue24762] Branchless, vectorizable frozen set hash

2015-07-30 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file40080/timings_fasthash.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24762 ___

[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message

2015-07-30 Thread Dima Tisnek
Changes by Dima Tisnek dim...@gmail.com: -- nosy: +Dima.Tisnek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24758 ___ ___ Python-bugs-list

[issue22359] Remove incorrect uses of recursive make

2015-07-30 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- stage: commit review - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22359 ___ ___

[issue22625] When cross-compiling, don’t try to execute binaries

2015-07-30 Thread Martin Panter
Martin Panter added the comment: So is there somewhere that documents how cross compilation is meant to be done? I tried looking at https://docs.python.org/2/using/unix.html#building-python, https://hg.python.org/cpython/file/2.7/README, and “./configure --help”, but found no hints for cross

[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-30 Thread REIX Tony
REIX Tony added the comment: Thnaks for the information. I'm surprised that: $ make test Go.res3 21 makes issues that do not appear with: $ nohup make test Go.res3 21 Anyway, we know the root cause now, and there is a work-around. So, closing the defect is OK for me. About the comment

[issue24753] function to get completion install location for setup.py?

2015-07-30 Thread STINNER Victor
STINNER Victor added the comment: I think it is good to have a function which can be used easily when distributing this kind of package. I don't think that we should put this stuff into distutils, it's too specific for UNIX, and your patch only supports a few shells. It's better to put

[issue24753] function to get completion install location for setup.py?

2015-07-30 Thread Kentaro Wada
Kentaro Wada added the comment: Yeah, that's right. I don't think to send patch to distutils but send to that kind of package as you said. I'm looking for that kind of packages to send patch but not found yet. Do you have any idea? -- ___ Python

[issue12833] raw_input misbehaves when readline is imported

2015-07-30 Thread Berker Peksag
Berker Peksag added the comment: Also, I'd change the patch to use a note directive. -- nosy: +berker.peksag stage: commit review - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12833

[issue13248] deprecated in 3.2/3.3, should be removed in 3.5 or ???

2015-07-30 Thread Yaroslav Halchenko
Yaroslav Halchenko added the comment: the function getargspec was removed but references to it within docstrings remained: $ git grep getargspec Doc/library/inspect.rst: The first four items in the tuple correspond to :func:`getargspec`. Doc/library/inspect.rst: :func:`getargspec` or

[issue24752] SystemError when importing from a non-package directory

2015-07-30 Thread Yongzhi Pan
New submission from Yongzhi Pan: In an empty dir, e.g. Desktop, the following import raises SystemError: from . import foo Traceback (most recent call last): File stdin, line 1, in module SystemError: Parent module '' not loaded, cannot perform relative import The documentation says that

[issue24753] function to get completion install location for setup.py?

2015-07-30 Thread Kentaro Wada
New submission from Kentaro Wada: I'm distributing command line tools by pypi, and the package also installs shell completion file. The default shell completion install location is sometimes platform specific, so the code cannot be so simple. I think it is good to have a function which can be

[issue24752] SystemError when importing from a non-package directory

2015-07-30 Thread Brett Cannon
Brett Cannon added the comment: It's that way because that's how import.c has it coded in Python 2.7: https://hg.python.org/cpython/file/309cbbc32491/Python/import.c#l2462 . Here is how it looks in Python 2: %%python2 from __future__ import absolute_import from . import foo

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-30 Thread Cyd Haselton
Cyd Haselton added the comment: A nominal bump before starting to re-build a PIE gdb to debug the segfault above -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue24757] Installing Py on Windows: Need to restart or logout for path to be added

2015-07-30 Thread John Palermo
New submission from John Palermo: Something I suppose many new users could stumble over: After installing Python and trying out pip or python on the command line nothing is found. You have to re-start Windows or re-log into your account. I suggest adding this information to the documentation

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: Added file: http://bugs.python.org/file40074/@scroll27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24750 ___

[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message

2015-07-30 Thread Randy Syring
New submission from Randy Syring: In issue http://bugs.python.org/issue21238 a feature was introduced to help prevent false-positive test cases by throwing an AttributeError whenever a non-existent method prefixed with assert_ is used on a mock object. I had mock objects with legitimate

[issue24754] argparse add_argument with action=store_true, type=bool should not crash

2015-07-30 Thread Douglas Bagnall
New submission from Douglas Bagnall: A line like this: parser.add_argument('--hello', action=store_true, type=bool) causes a TypeError in 2.7 and 3.4: File /usr/lib/python3.4/argparse.py, line 1344, in add_argument action = action_class(**kwargs) TypeError: __init__() got an

[issue13884] IDLE: Remove tear-off menu feature

2015-07-30 Thread Tal Einat
Tal Einat added the comment: +1 for removal. -- nosy: +taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13884 ___ ___ Python-bugs-list