[issue24756] doctest run_docstring_examples does have an obvious utility
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 Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24754] argparse add_argument with action=store_true, type=bool should not crash
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 tracker rep...@bugs.python.org http://bugs.python.org/issue24754 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24756] doctest run_docstring_examples does have an obvious utility
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24756 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading
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) spec = importlib.machinery.ModuleSpec( name = modname, loader = loader, origin = filename, loader_state = 1234, is_package = False, ) mod = loader.create_module(spec) loader.exec_module(mod) And it now works as advertised. Since load_module() is flagged as Deprecated, I believe no correction is necessary as the preffered way to load a module, with exec_module(), is working. I will do some more tests to be sure it's the case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24748 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24741] Hangs and errors while testing on Ubuntu/Intel
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 they were not AIX specific or were adjustments to existing AIX conditionals...we need an AIX buildbot to provide real AIX support). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24741 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16508] include the object type in the lists of documented types
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 sentences pointing out that other methods are not provided by the object class, where I thought it may not already be clear. I also added a test case to check that various methods exist or not, to match the documentation. -- keywords: +patch nosy: +vadmium stage: needs patch - patch review versions: +Python 3.5, Python 3.6 -Python 3.3 Added file: http://bugs.python.org/file40066/object-type.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16508 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24741] Hangs and errors while testing on Ubuntu/Intel
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 tracker rep...@bugs.python.org http://bugs.python.org/issue24741 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24741] Hangs and errors while testing on Ubuntu/Intel
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 root 12320954 34209932 0 14:52:04 pts/2 0:00 ./python -m -c -l -x test_io root 16384082 34209932 0 14:52:04 pts/2 0:00 ./python -m -c -l -x test_io root 34209932 4325570 0 14:46:14 pts/2 3:28 ./python -m -c -l -x test_io root 43712512 34209932 0 14:52:04 pts/2 0:00 ./python -m -c -l -x test_io root 53477604 12320954 0 14:52:04 pts/2 0:00 ./python -m -c -l -x test_io root 56819916 12320954 0 14:52:04 pts/2 0:00 ./python -m -c -l -x test_io root 57409628 12320954 0 14:52:04 pts/2 0:00 ./python -m -c -l -x test_io root 58458148 34209932 0 14:52:04 pts/2 0:00 ./python -m -c -l -x test_io -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24741 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24756] doctest run_docstring_examples does have an obvious utility
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. For example, a module I just wrote has this: if __name__ == '__main__': import doctest flags = doctest.REPORT_NDIFF|doctest.FAIL_FAST if len(sys.argv) 1: name = sys.argv[1] if name in globals(): obj = globals()[name] else: obj = __test__[name] doctest.run_docstring_examples(obj, globals(), name=name, optionflags=flags) else: fail, total = doctest.testmod(optionflags=flags) print({} failures out of {} tests.format(fail, total)) This makes the module its own test runner: if I get doctest failures, I can re-run a *specific* doctest while debugging the problem, and is the obvious application of run_docstring_examples. The attached patch also clarifies the fact that it works on strings. It also adds the above example to the soapbox section of the docs. I'm less interested in that change than in the clarification that strings work :) Someday perhaps I'll propose the addition of the equivalent to unittest.main for doctest. -- files: remove_doctest_run_docstring_examples_gloss.patch keywords: patch messages: 247667 nosy: r.david.murray priority: normal severity: normal stage: patch review status: open title: doctest run_docstring_examples does have an obvious utility type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file40067/remove_doctest_run_docstring_examples_gloss.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24756 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24707] Assertion failed in pymonotonic_new
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...). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24707 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24741] Hangs and errors while testing on Ubuntu/Intel
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 test_signal : # ps -edf | grep python root 154010881 0 11:54:03 pts/1 4:49 ./python -Wd -3 -E -tt ./Lib/test/regrtest.py -l Retrying with 2.7.6, it is blocked again with test_io. OK. Either it is a general issue with Python tests, or there is an issue on AIX. Investigating. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24741 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15582] Enhance inspect.getdoc to follow inheritance chains
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 a whatsnew entry for inspect.getdoc() changes in 3.5. https://hg.python.org/cpython/rev/e0f4a5f09bfa -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15582 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24745] Better default font for editor
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 default button and/or including TkFixedFont in the list for the following reasons: 1. The config dialog should really be using the platform-specific font chooser for this anyway. (Tk 8.6 does include this dialog btw). The default dialogs don't allow anything like that, and I can't off the top of my head think of any common applications that allow you to revert back to a default. 2. I see no real advantage to being able to switch 'back' to a default. In fact, from the user perspective, there isn't conceptually a default font separate than whatever the 'actual' version of TkFixedFont is (courier, monaco, whatever). What they know is it starts with a certain font, and if they go into the dialog, it shows that font. If they change to a different font (or even back to the original font), that's what shows up next time they start the app. Is there actually a downside to writing out the per-user config file even if there isn't a real change in the font? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24745 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24667] OrderedDict.popitem()/__str__() raises KeyError
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 rep...@bugs.python.org http://bugs.python.org/issue24667 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15138] base64.urlsafe_b64**code are too slow
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 rep...@bugs.python.org http://bugs.python.org/issue15138 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24667] OrderedDict.popitem()/__str__() raises KeyError
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 can free up some time) given the information I have now. FWIW, I've attached a file containing source that I added to requests/packages/urllib3/_collections.py while investigating. In that same file I then set RecentlyUsedContainer.ContainerCls to _LoggingOrderedDict. -- Added file: http://bugs.python.org/file40068/logging_odict.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15582] Enhance inspect.getdoc to follow inheritance chains
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24750] IDLE: Cosmetic improvements for main window
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 improve things a bit more on Linux, and way more on Mac. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24750 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12160] codecs doc: what is StreamCodec?
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 '3.5': Issue #12160: Fix incorrect StreamCodec references in Codec.encode() and Codec.decode() docs. https://hg.python.org/cpython/rev/98631f35426f New changeset d3b20bff9c5d by Berker Peksag in branch 'default': Issue #12160: Fix incorrect StreamCodec references in Codec.encode() and Codec.decode() docs. https://hg.python.org/cpython/rev/d3b20bff9c5d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24741] Hangs and errors while testing on Ubuntu/Intel
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 http://bugs.python.org/issue24741 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24752] SystemError when importing from a non-package directory
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. However, Brett will have a better idea of why we raise SystemError instead. -- stage: - needs patch type: - behavior versions: +Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24752 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12160] codecs doc: what is StreamCodec?
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 tracker rep...@bugs.python.org http://bugs.python.org/issue12160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13884] IDLE: Remove tear-off menu feature
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 case someone was actually using idlelib this way, I'd consider setting that option a public service. There's no harm doing it the other way (and I was being polite since the previous patch was done that way), but it does very marginally increase maintainability difficulties (remembering to keep the option and add it to any future menus). Either way - please let's just make this change! :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13884 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15138] base64.urlsafe_b64**code are too slow
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 rep...@bugs.python.org http://bugs.python.org/issue15138 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15138] base64.urlsafe_b64**code are too slow
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 tracker rep...@bugs.python.org http://bugs.python.org/issue15138 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12932] filecmp.dircmp does not allow non-shallow comparisons
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 - test needed versions: +Python 3.6 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12932 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message
Changes by Robert Collins robe...@robertcollins.net: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24758 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12160] codecs doc: what is StreamCodec?
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 tracker rep...@bugs.python.org http://bugs.python.org/issue12160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13884] IDLE: Remove tear-off menu feature
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: Idle: Remove tearoff lines from menus. Patch by Roger Serwy. https://hg.python.org/cpython/rev/6eb4441ed14b -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13884 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13884] IDLE: Remove tear-off menu feature
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13884 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message
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 http://bugs.python.org/issue24758 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12932] filecmp.dircmp does not allow non-shallow comparisons
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24757] Installing Py on Windows: Need to restart or logout for path to be added
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 the updated PATH. [1]: https://msdn.microsoft.com/en-us/library/ms725497 -- nosy: +eryksun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24757 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23779] imaplib authenticate raises TypeError if authenticator tries to abort
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: imaplib raises TypeError if authenticator tries to abort. https://hg.python.org/cpython/rev/b6f04b9d8c12 New changeset 0879f2c53289 by Robert Collins in branch 'default': Issue #23779: imaplib raises TypeError if authenticator tries to abort. https://hg.python.org/cpython/rev/0879f2c53289 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23779 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23779] imaplib authenticate raises TypeError if authenticator tries to abort
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 http://bugs.python.org/issue23779 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13884] IDLE: Remove tear-off menu feature
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 accessible from the keyboard. I decided to keep the patch as is, with tearoff disabled at the point of submenu creation. Setting the option on root is no easier when there are multiple Tk() calls. There may be more than one for normal Idle execution. There are many for testing, and we want the option set for tests. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13884 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24724] Element.findall documentation misleading
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), not grandchildren, greatgrandchildren, etc. That's why I think direct descendents or all descendents would give a clearer picture. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24724 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24759] Idle: require 8.5 / ttk
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24750] IDLE: Cosmetic improvements for main window
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24760] IDLE settings dialog shouldn't be modal
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 to follow modal-happy Microsoft. (Too small, cramped dialog boxes designed for 400x600 screen is another.) I have asked the same on at least one of the search dialog issues. The search dialog for Notepad++ is not modal and works fine. Also see #24039. -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24760 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24039] Idle: some modal dialogs maximize, don't minimize
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24667] OrderedDict.popitem()/__str__() raises KeyError
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 failing and implies that popitem is depending on the underlying dict rather than on the linked list. I'll look into that next. -- Added file: http://bugs.python.org/file40072/odict_reproduce.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24724] Element.findall documentation misleading
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, perhaps it would be good to change findall() to iterfind(), which is a newer API. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24724 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24759] Idle: require 8.5 / ttk
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 Cannot be Started -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24759 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24750] IDLE: Cosmetic improvements for main window
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 rep...@bugs.python.org http://bugs.python.org/issue24750 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24750] IDLE: Cosmetic improvements for main window
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24750 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24707] Assertion failed in pymonotonic_new
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 Python should workaround bugs in the OS (kernel). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24707 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24667] OrderedDict.popitem()/__str__() raises KeyError
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 1 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1794, in module od.popitem(last=False) KeyError: ('https', 'ml.wikipedia.org', 443) 2 3 4 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1737, in module od.popitem(last=False) KeyError: ('https', 'li.wikipedia.org', 443) 5 6 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1699, in module od.popitem(last=False) KeyError: ('https', 'ksh.wikipedia.org', 443) 7 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1889, in module od.popitem(last=False) KeyError: ('https', 'nds-nl.wikipedia.org', 443) 8 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1794, in module od.popitem(last=False) KeyError: ('https', 'ml.wikipedia.org', 443) 9 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1528, in module od.popitem(last=False) KeyError: ('https', 'ga.wikipedia.org', 443) 10 11 12 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1585, in module od.popitem(last=False) KeyError: ('https', 'hu.wikipedia.org', 443) 13 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1737, in module od.popitem(last=False) KeyError: ('https', 'li.wikipedia.org', 443) 14 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1775, in module od.popitem(last=False) KeyError: ('https', 'mg.wikipedia.org', 443) 15 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1965, in module od.popitem(last=False) KeyError: ('https', 'pdc.wikipedia.org', 443) 16 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1680, in module od.popitem(last=False) KeyError: ('https', 'it.wikipedia.org', 443) 17 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1452, in module od.popitem(last=False) KeyError: ('https', 'fa.wikipedia.org', 443) 18 19 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1965, in module od.popitem(last=False) KeyError: ('https', 'nn.wikipedia.org', 443) 20 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1642, in module od.popitem(last=False) KeyError: ('https', 'ilo.wikipedia.org', 443) 21 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1319, in module od.popitem(last=False) KeyError: ('https', 'da.wikipedia.org', 443) 22 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1661, in module od.popitem(last=False) KeyError: ('https', 'it.wikipedia.org', 443) 23 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1547, in module od.popitem(last=False) KeyError: ('https', 'gl.wikipedia.org', 443) 24 25 Traceback (most recent call last): File /tmp/odict_reproduce.py, line 1699, in module od.popitem(last=False) KeyError: ('https', 'ksh.wikipedia.org', 443) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24759] Idle: require 8.5 / ttk
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 When Idle is started from an icon, there is no place for the error message to go, so it appears than nothing happens. But this is the best we can do without invoking system specific error message functions. (This, if possible, would be another issue.) The second import assumes that messagebox is available, which is should be without modification of the tkinter package since long ago. But I think we should guard against someone trying to start Idle on pre 8.5. The following seems to work nicely. This is a prerequisite for any ttk patches. Any comment before I apply? try: from tkinter import ttk except: root = Tk() root.withdraw() tkMessageBox.showerror(Fatal Idle Import Error, Idle cannot import required module tkinter.ttk.\n Click OK to exit., parent=root) sys.exit(1) -- assignee: terry.reedy messages: 247701 nosy: markroseman, terry.reedy priority: normal severity: normal stage: needs patch status: open title: Idle: require 8.5 / ttk type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24759 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13248] deprecated in 3.2/3.3, should be removed in 3.5 or ???
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 rep...@bugs.python.org http://bugs.python.org/issue13248 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision
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 http://bugs.python.org/issue19475 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24750] IDLE: Cosmetic improvements for main window
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 mean -- the active text border for linux and mac. I cannot see anything on Windows with side-by-side text windows, even with a magnifier, so if there is a change, it is too subtle for my eyes. I am working on a scrollbar patch for the other files. -- dependencies: +Idle: require 8.5 / ttk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24750 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24760] IDLE settings dialog shouldn't be modal
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 probably ask the same question about all the other modal dialogs, let's start here. :-) -- components: IDLE messages: 247707 nosy: markroseman, terry.reedy priority: normal severity: normal status: open title: IDLE settings dialog shouldn't be modal type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24760 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24760] IDLE settings dialog shouldn't be modal
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18383] test_warnings modifies warnings.filters when running with -W default
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: http://bugs.python.org/file40073/issue18383_34.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18383 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24759] Idle: require 8.5 / ttk
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 rep...@bugs.python.org http://bugs.python.org/issue24759 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24750] IDLE: Cosmetic improvements for main window
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? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24750 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24707] Assertion failed in pymonotonic_new
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24750] IDLE: Cosmetic improvements for main window
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24759] Idle: require 8.5 / ttk
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 ttk import fails. https://hg.python.org/cpython/rev/13a8782a775e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24759 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24667] OrderedDict.popitem()/__str__() raises KeyError
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory
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 rep...@bugs.python.org http://bugs.python.org/issue21657 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20674] Update comments in dictobject.c
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory
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 resolution: - third party status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21657 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message
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() m.assert_screen_status.call_count 0 New 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.1.0' m = mock.Mock() m.assert_screen_status.call_count Traceback (most recent call last): File stdin, line 1, in module File /home/rsyring/.virtualenvs/temp/local/lib/python2.7/site-packages/mock/mock.py, line 714, in __getattr__ raise AttributeError(name) AttributeError: assert_screen_status In my case, the objects I was patching had a legit method like assert_screen_status(). But, after upgrading Mock, the use of those methods started throwing AttributeError's even though it was very obvious that a) the methods existed on the real objects and b) Mock is supposed to let me call anything on I want. As I said previously, this was a VERY confusing situation to figure out. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24758 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23420] python -m cProfile -s fails with non informative message
Changes by Zachary Ware zachary.w...@gmail.com: -- versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23420 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13248] deprecated in 3.2/3.3, should be removed in 3.5 or ???
Yury Selivanov added the comment: Thank you, Berker! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13248 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24750] IDLE: Cosmetic improvements for main window
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24750 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24750] IDLE: Cosmetic improvements for main window
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 any (sensible) way to have min with no max, like printf and python formatting? '%3d' % '' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24750 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24751] regrtest/buildbot: test run marked as failure even when re-run succeeds
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24751 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24761] ERROR: test_dh_params (test.test_ssl.ThreadedTests)
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24761 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24667] OrderedDict.popitem()/__str__() raises KeyError
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20051] PA-RISC buildbot: compiler cannot create executables
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21126] Return results from doctest.run_docstring_examples()
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 results from doctest.run_docstring_examples() type: - enhancement versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21126 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20464] Update distutils sample config file in Doc/install/index.rst
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23652] ifdef uses of EPOLLxxx macros so we can compile on systems that don't have them
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24762] Branchless, vectorizable frozen set hash
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 outweigh the extra work of doing a multiplication for every row in set table rather than just the non-null, non-dummy entries. To make sure the overall hash value is unchanged, there are two final clean-up steps to undo the effect of including dummy and null entries. -- assignee: serhiy.storchaka components: Interpreter Core files: fashhash_nobranch.diff keywords: patch messages: 247735 nosy: rhettinger, serhiy.storchaka priority: low severity: normal stage: patch review status: open title: Branchless, vectorizable frozen set hash type: performance versions: Python 3.6 Added file: http://bugs.python.org/file40079/fashhash_nobranch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24762 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24762] Branchless, vectorizable frozen set hash
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message
Changes by Dima Tisnek dim...@gmail.com: -- nosy: +Dima.Tisnek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24758 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22359] Remove incorrect uses of recursive make
Changes by Martin Panter vadmium...@gmail.com: -- stage: commit review - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22359 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22625] When cross-compiling, don’t try to execute binaries
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 compilation. If it is just word-of-mouth, would someone mind explaining to me how it is meant to be done? The configure script lists CC as a “C compiler command”. But for cross compilation it sounds like you would need to differentiate host and target compilers. From the errors that have been posted, it sounds like you guys may be setting CC to the target compiler, causing the build to try and use the target compiler to build host programs. -- nosy: +vadmium stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22625 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24741] Hangs and errors while testing on Ubuntu/Intel
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 Python has been used on AIX by other, I'm sure that Python2 has been ported on AIX. About Python3, I have found no one for AIX. I'll have another look. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24741 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24753] function to get completion install location for setup.py?
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 that into a project which is updated more frequently on PyPI. Stdlib is more for frozen stuff, we only update the stdlib every ~18 months! (each Python major release) -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24753 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24753] function to get completion install location for setup.py?
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 tracker rep...@bugs.python.org http://bugs.python.org/issue24753 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12833] raw_input misbehaves when readline is imported
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13248] deprecated in 3.2/3.3, should be removed in 3.5 or ???
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 :func:`getfullargspec`. Doc/whatsnew/3.4.rst::func:`~inspect.getfullargspec` and :func:`~inspect.getargspec` Doc/whatsnew/3.5.rst:* :func:`inspect.getargspec` is deprecated and scheduled to be removed in Doc/whatsnew/3.6.rst:* ``inspect.getargspec()`` was removed (was deprecated since CPython 3.0). Lib/inspect.py:getargspec(), getargvalues(), getcallargs() - get info about function arguments Lib/inspect.py:The first four items in the tuple correspond to getargspec(). Lib/inspect.py:Format an argument spec from the values returned by getargspec Lib/test/test_inspect.py:# getclasstree, getargspec, getargvalues, formatargspec, formatargvalues, Misc/NEWS:- Issue #13248: Remove deprecated inspect.getargspec and inspect.getmoduleinfo -- nosy: +Yaroslav.Halchenko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13248 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24752] SystemError when importing from a non-package directory
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 SystemError should be reported as a bug. -- components: Interpreter Core messages: 247653 nosy: fossilet priority: normal severity: normal status: open title: SystemError when importing from a non-package directory versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24752 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24753] function to get completion install location for setup.py?
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 used easily when distributing this kind of package. I think the function is similar with ``distutils.sysconfig.get_python_lib()``. Please see attached file. It contains a function I'm thinking to add now. -- components: Installation files: get_completion_install_location.py messages: 247654 nosy: Kentaro Wada priority: normal severity: normal status: open title: function to get completion install location for setup.py? type: enhancement versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file40064/get_completion_install_location.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24753 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24752] SystemError when importing from a non-package directory
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 - Traceback (most recent call last): File stdin, line 2, in module ValueError: Attempted relative import in non-package I think another sanity check needs to be added to https://github.com/python/cpython/blob/829b49cbd2e4b1d573470da79ca844b730120f3d/Lib/importlib/_bootstrap.py#L919 for when __package__ is None but level 0 and then raise the ValueError like in Python 2. -- stage: needs patch - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24752 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24757] Installing Py on Windows: Need to restart or logout for path to be added
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 here https://docs.python.org/2/using/windows.html#installing-python and also adding it to the Windows installer description for the add Python to your path option. -- assignee: docs@python components: Documentation messages: 247688 nosy: John Palermo, docs@python priority: normal severity: normal status: open title: Installing Py on Windows: Need to restart or logout for path to be added type: enhancement versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24757 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24750] IDLE: Cosmetic improvements for main window
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message
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 assert_* methods that had been working for some time. My tests included calls like: my_mock.assert_in_status.assert_called_once_with(...) My tests started failing unexpectedly and it took me HOURS to figure out that I had a new mock version installed. Those hours could have been turned into seconds my simply giving a better error message, something like: AttributeError: you used assert_in_status but that method is not a valid Mock assert method. Please check your spelling. If this was not a typing mistake, you can use the `unsafe` keyword argument to the Mock instance to turn this validation check off. See https://mock-docs...org/ for more details. -- components: Library (Lib) messages: 247690 nosy: Randy Syring priority: normal severity: normal status: open title: unittest.mock.Mock's new unsafe feature needs a better error message type: behavior versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24758 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24754] argparse add_argument with action=store_true, type=bool should not crash
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 unexpected keyword argument 'type' It shouldn't really. -- components: Library (Lib) files: argparse-crash.py messages: 247658 nosy: dbagnall priority: normal severity: normal status: open title: argparse add_argument with action=store_true, type=bool should not crash versions: Python 2.7, Python 3.4 Added file: http://bugs.python.org/file40065/argparse-crash.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24754 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13884] IDLE: Remove tear-off menu feature
Tal Einat added the comment: +1 for removal. -- nosy: +taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13884 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com