[issue9634] Add timeout parameter to Queue.join()
Nick Coghlan ncogh...@gmail.com added the comment: The thread pool impl where I'm using this: http://git.fedorahosted.org/git/?p=pulpdist.git;a=blob;f=src/pulpdist/cli/thread_pool.py -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9634 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14489] repr() function link on the built-in function documentation is incorrect
New submission from H Xu xuh...@gmail.com: The `repr()` built-in function link in this page [ http://docs.python.org/library/functions.html ] should link to the built-in version of `repr()`. It should link to: http://docs.python.org/library/functions.html#repr However, it links to here: http://docs.python.org/library/repr.html#module-repr -- assignee: docs@python components: Documentation messages: 157462 nosy: H.Xu, docs@python priority: normal severity: normal status: open title: repr() function link on the built-in function documentation is incorrect versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14489 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12723] Provide an API in tkSimpleDialog for defining custom validation functions
Andrew Svetlov andrew.svet...@gmail.com added the comment: I think we have to reject this issue. Adding generic validation make sense, but adding just permanent check for non-empty string is wrong. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12723 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8998] add crypto routines to stdlib
Changes by Matej Cepl mc...@redhat.com: -- nosy: +mcepl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6181] Tkinter.Listbox several minor issues
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9141] Allow objects to decide if they can be collected by GC
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I just noticed that PyTypeObjects have a gc slot already: inquiry tp_is_gc; /* For PyObject_IS_GC */ Now, this is used in only one place in 2.7, for type objects: return type-tp_flags Py_TPFLAGS_HEAPTYPE; This is thus used to dynamically query if an object was allocated with a GC header or not, since static types cannot have this. Now, it would be perfectly possible to change the semantics of this function to return a bit flag, with bit 0 being the has head and bit 1 meaning is collectable This might simplify some stuff. Any thoughts? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9141 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14321] Do not run pgen during the build if files are up to date
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4e306c1a3c92 by Matthias Klose in branch 'default': Followup for issue #14321, remove references to Parser/pgen.stamp http://hg.python.org/cpython/rev/4e306c1a3c92 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14321 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13903] New shared-keys dictionary implementation
Antoine Pitrou pit...@free.fr added the comment: I'm not bothered by the regression in silent_logging, as it is a micro benchmark with a very short running time. I'm not concerned about the micro-benchmark itself but the fact that it might hint at a wider problem. Also, I don't get your remark about it running in a short time. Your patch AFAICT doesn't need any warm up period to exhibit any improvements. Reducing the method-cache size from 2**10 to 2**9 allows the working set to fit better in the cache. This fixes the regression in mako, but makes OO programs that use few objects (such as richards) a bit slower. I don't think we should reduce the size of the method cache. 1024 is not a very large number, and might even be too small for complex OO programs. I also think that, apart from the dict storage changes, your patch should strive not to change any other tunables. Otherwise we're really comparing apples to oranges. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14490] abitype.py wrong raise format
New submission from Popa Claudiu pcmantic...@gmail.com: In Tools/abitype.py an exception is raised using the old format: raise Exception, '%s has no PyVarObject_HEAD_INIT' % name The attached patch fixes this problem. -- components: Demos and Tools files: abitype.patch keywords: patch messages: 157467 nosy: Popa.Claudiu priority: normal severity: normal status: open title: abitype.py wrong raise format type: behavior versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file25114/abitype.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14321] Do not run pgen during the build if files are up to date
Changes by Matthias Klose d...@debian.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14321 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14428] Implementation of the PEP 418
STINNER Victor victor.stin...@gmail.com added the comment: Patch version 5, updated to the last version of the PEP: - drop time.highres() - time.monotonic() is always monotonic but it not always available - add a test on time.monotonic() setting the system clock (jump backward wtih a delta of 1 hour) -- Added file: http://bugs.python.org/file25115/pep418-5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14428] Implementation of the PEP 418
STINNER Victor victor.stin...@gmail.com added the comment: +#if defined(linux) || defined(__linux) || defined(__linux__) Hum, a better check should be done in configure and/or a macro like MS_WINDOWS should be added. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14491] fixcid.py is using instead of !=
New submission from Popa Claudiu pcmantic...@gmail.com: Tools/fixcid.py uses instead of !=. The attached patched fixes this issue. -- components: Demos and Tools files: fixcid.patch keywords: patch messages: 157470 nosy: Popa.Claudiu priority: normal severity: normal status: open title: fixcid.py is using instead of != versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file25116/fixcid.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14492] pdeps.py has_key
Changes by Popa Claudiu pcmantic...@gmail.com: -- components: +Demos and Tools versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14492 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14492] pdeps.py has_key
New submission from Popa Claudiu pcmantic...@gmail.com: Tools/pdeps.py is using has_key for a dictionary. The attached patch fixes this issue. -- files: pdeps.patch keywords: patch messages: 157471 nosy: Popa.Claudiu priority: normal severity: normal status: open title: pdeps.py has_key Added file: http://bugs.python.org/file25117/pdeps.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14492 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py
New submission from Matthias Klose d...@debian.org: [forwarded from https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/971311] The webbrowser.py is using gnome-open. This is no longer supported by gnome, instead they use gvfs-open. The attached patch adds support for this and will also use xdg-open if available as this is meant to be the cross desktop tool to use for this kind of task, see http://portland.freedesktop.org/wiki/ -- assignee: doko components: Library (Lib) keywords: patch messages: 157472 nosy: doko priority: normal severity: normal status: open title: use gvfs-open/xdg-open in Lib/webbrowser.py versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14493 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 70c58903b52e by Matthias Klose in branch 'default': - Issue #14493: Use gvfs-open/xdg-open in Lib/webbrowser.py. http://hg.python.org/cpython/rev/70c58903b52e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14493 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14494] __future__.py and its documentation claim absolute imports became mandatory in 2.7, but they didn't
New submission from Sven Marnach s...@marnach.net: As has been pointed out before on python-dev [1], the mandatory version of '__future__.absolute_import' does not match reality. In Python 2.7, absolute imports are not the default. [1]: http://article.gmane.org/gmane.comp.python.devel/125446 The attached patch should fix the documentation and Lib/__future__.py. I set the mandatory version to (3, 0, 0, alpha, 0), in accordance with other features that became mandatory in Py3k, though there never was a 3.0a0 release. I double-checked that absolute imports already were the default in 3.0a1. The patch should probably be applied to all branches. -- assignee: docs@python components: Documentation, Library (Lib) files: absolute_import.patch keywords: patch messages: 157474 nosy: docs@python, smarnach priority: normal severity: normal status: open title: __future__.py and its documentation claim absolute imports became mandatory in 2.7, but they didn't type: behavior versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file25118/absolute_import.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14494 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14065] Element should support cyclic GC
Eli Bendersky eli...@gmail.com added the comment: Fix committed - Windows bots now compile successfully. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14065 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11734] Add half-float (16-bit) support to struct module
Andrew Svetlov andrew.svet...@gmail.com added the comment: Tests passed, looks good. Code is also looks ok. Documentation is out-of-date. Patch cannot be applied to struct.rst from default branch. Compilation generates warning messages on gcc 4.6.1: /home/andrew/projects/py3k/Modules/_struct.c: In function ‘nu_halffloat’: /home/andrew/projects/py3k/Modules/_struct.c:489:5: warning: pointer targets in passing argument 1 of ‘_PyFloat_Unpack2’ differ in signedness [-Wpointer-sign] Include/floatobject.h:108:20: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’ /home/andrew/projects/py3k/Modules/_struct.c: In function ‘np_halffloat’: /home/andrew/projects/py3k/Modules/_struct.c:712:5: warning: pointer targets in passing argument 2 of ‘_PyFloat_Pack2’ differ in signedness [-Wpointer-sign] Include/floatobject.h:87:17: note: expected ‘unsigned char *’ but argument is of type ‘char *’ After fixing warnings and structure.rst I like to see that patch in standard library. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11734 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13903] New shared-keys dictionary implementation
Mark Shannon m...@hotpy.org added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: I'm not bothered by the regression in silent_logging, as it is a micro benchmark with a very short running time. I'm not concerned about the micro-benchmark itself but the fact that it might hint at a wider problem. Or it might not. Micro-benchmarks produce micro-optimisations. That's why I dislike them. Also, I don't get your remark about it running in a short time. Your patch AFAICT doesn't need any warm up period to exhibit any improvements. What I mean is that the runtime is so short, no one would notice any change, so who cares? Reducing the method-cache size from 2**10 to 2**9 allows the working set to fit better in the cache. This fixes the regression in mako, but makes OO programs that use few objects (such as richards) a bit slower. I don't think we should reduce the size of the method cache. 1024 is not a very large number, and might even be too small for complex OO programs. not very large or too small, by what metric? The optimum size (for speed) of the method cache depends on the size of hardware data cache, the complexity of the program, and many other factors. Attempt to reason about it are pretty much futile. Empiricism is the only way to go. I also think that, apart from the dict storage changes, your patch should strive not to change any other tunables. Otherwise we're really comparing apples to oranges. If the implementation changes, shouldn't the tunable parameters be retuned? Cheers, Mark. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py
R. David Murray rdmur...@bitdance.com added the comment: If gvfs is preferred, should its if block come second, or perhaps those two should be an if/elif block? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14493 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py
Matthias Klose d...@debian.org added the comment: I don't think so. the register calls append to the list, don't overwrite it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14493 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14489] repr() function link on the built-in function documentation is incorrect
R. David Murray rdmur...@bitdance.com added the comment: This is only a problem in the 2.7 docs. I tried adding a .. py:currentmodule:: builtins directive to the page, hoping that would make all unqualified links local, but it didn't work. I think the fix will require someone with more Sphinx-foo than I have. -- nosy: +r.david.murray type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14489 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14490] abitype.py wrong raise format
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the patch. Do you have an interest in trying your hand at writing a test for this to go into Lib/test/test_tools.py? -- nosy: +r.david.murray stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14492] pdeps.py has_key
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14492 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14491] fixcid.py is using instead of !=
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14494] __future__.py and its documentation claim absolute imports became mandatory in 2.7, but they didn't
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - patch review versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14494 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13903] New shared-keys dictionary implementation
Antoine Pitrou pit...@free.fr added the comment: Also, I don't get your remark about it running in a short time. Your patch AFAICT doesn't need any warm up period to exhibit any improvements. What I mean is that the runtime is so short, no one would notice any change, so who cares? None of the benchmarks used here are real-world workloads, so you might as well claim that they are all irrelevant. But then we'll have a hard time assessing the consequences of your patch. I don't think we should reduce the size of the method cache. 1024 is not a very large number, and might even be too small for complex OO programs. not very large or too small, by what metric? By the metric of the number of classes and methods in a complex OO application (for example something based on Twisted or SQLAlchemy). I also think that, apart from the dict storage changes, your patch should strive not to change any other tunables. Otherwise we're really comparing apples to oranges. If the implementation changes, shouldn't the tunable parameters be retuned? Only if there's a reasoning behind it. Perhaps the retuning would have given the same results without the rest of your patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14495] Minor typo in tkinter.ttk.Treeview.exists docstring
New submission from Zachary Ware zachary.w...@gmail.com: I found a very very minor typo in the docstring of tkinter.ttk.Treeview.exists: Returns True if the specified item is present in the *three* I assume that should be tree. The attached patch removes the h. Thanks! --Note: This is the first time I've done anything on bugs.python.org, so if there's anything I've done wrong or could do better, please let me know! Thanks, Zach -- assignee: docs@python components: Documentation files: Treeview.exists docstring.diff keywords: patch messages: 157483 nosy: docs@python, eric.araujo, ezio.melotti, georg.brandl, gpolo, zach.ware priority: normal severity: normal status: open title: Minor typo in tkinter.ttk.Treeview.exists docstring versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file25119/Treeview.exists docstring.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14495 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11734] Add half-float (16-bit) support to struct module
Antoine Pitrou pit...@free.fr added the comment: Given than there is no native half float in C (AFAIK), does it make sense to have a native variant of half floats? Also: +{'e', sizeof(short), SHORT_ALIGN,nu_halffloat, np_halffloat}, Shouldn't it be 2 rather than sizeof(short)? And why SHORT_ALIGN? Other comments: - in the tests, please remove the commented out print() calls - in the tests, I don't understand why some examples are commented out; you should explain why (add a comment) - you can add the import math at the top-level, rather than in the test method - in the doc, you need a versionchanged or versionadded tag to specify that half-float support was added in 3.3 I'll let others review the numerical code, if necessary. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11734 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14490] abitype.py wrong raise format
R. David Murray rdmur...@bitdance.com added the comment: Nevermind, it occurred to me that what we really need is a 'test_sundry' style test for the tools. Here's a patch that adds that. I'll apply it after I fix the other bugs it reveals (which include the other two you pointed out as a subset...). -- Added file: http://bugs.python.org/file25120/tools_sundry.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py
R. David Murray rdmur...@bitdance.com added the comment: OK, sounds fine. Shall we close this as fixed then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14493 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14491] fixcid.py is using instead of !=
Popa Claudiu pcmantic...@gmail.com added the comment: Hello. I added a test for fixcid.py regression. -- nosy: +r.david.murray Added file: http://bugs.python.org/file25121/fixcid_test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11734] Add half-float (16-bit) support to struct module
Andrew Svetlov andrew.svet...@gmail.com added the comment: I used half-float in GPU programming and from my perspective it was just native. There are no half-float in C, right. But there are half-floats used in NVIDIA libraries for example and I like to think used format is native and platform-depended in general. Correct me if I'm mistaking. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11734 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14490] abitype.py wrong raise format
Popa Claudiu pcmantic...@gmail.com added the comment: Oh, ok then. That makes the last file added in 14491 irrelevant. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11734] Add half-float (16-bit) support to struct module
Antoine Pitrou pit...@free.fr added the comment: I used half-float in GPU programming and from my perspective it was just native. There are no half-float in C, right. But there are half-floats used in NVIDIA libraries for example and I like to think used format is native and platform-depended in general. Correct me if I'm mistaking. By native, the struct module means there is a corresponding C type and therefore corresponding rules for size and alignment, as implemented by the C compiler. GPU structure layout is another matter, as the C compiler doesn't target that (not in a standard setup, anyway). Apparently the patch takes the stance that the corresponding C type (for size and alignment) is short, which I guess is an acceptable compromise, but still a bit weird. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11734 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11734] Add half-float (16-bit) support to struct module
Andrew Svetlov andrew.svet...@gmail.com added the comment: Antoine, agree with you after explanation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11734 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9141] Allow objects to decide if they can be collected by GC
Antoine Pitrou pit...@free.fr added the comment: This might simplify some stuff. Any thoughts? I think you should float it on python-dev. -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9141 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1053687] PyOS_InputHook not called in IDLE subprocess
Andrew Svetlov andrew.svet...@gmail.com added the comment: Closing as wan't fix. -- assignee: kbk - asvetlov resolution: - wont fix stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1053687 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14496] Wrong name in idlelib/tabbedpages.py
New submission from Popa Claudiu pcmantic...@gmail.com: In the file from the subject, page_name was used instead of tab_name, increasing the chances of a NameError exception. I didn't find any tests for IDLE, so there are no tests attached. -- components: IDLE files: idlelib.patch keywords: patch messages: 157494 nosy: Popa.Claudiu priority: normal severity: normal status: open title: Wrong name in idlelib/tabbedpages.py type: behavior versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file25122/idlelib.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14496] Wrong name in idlelib/tabbedpages.py
Andrew Svetlov andrew.svet...@gmail.com added the comment: The patch looks good. Can you describe manual steps to reproduce the issue? -- assignee: - asvetlov nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14495] Minor typo in tkinter.ttk.Treeview.exists docstring
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 45287f2799f5 by Georg Brandl in branch '3.2': Closes #14495: fix typo. http://hg.python.org/cpython/rev/45287f2799f5 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14495 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14496] Wrong name in idlelib/tabbedpages.py
Popa Claudiu pcmantic...@gmail.com added the comment: Yes. 1. inherit from TabbedPageSet 2. pass tabs keyword to the internal TabSet instance 3. when the GUI started, enter a page with the same name found in tabs list. NameError will be raised at this point. I'm curios if this script is used anywhere, I couldn't find any reference to it in the source code. -- Added file: http://bugs.python.org/file25123/test_tabbedpages.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue634412] RFC 2112 in email package
moijes12 moije...@gmail.com added the comment: Is this still open for someone to work on? -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue634412 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14490] abitype.py wrong raise format
Serhiy Storchaka storch...@gmail.com added the comment: Hmm. I came across this error yesterday in the tests, when broke utf-16 decoder. The error was introduced in the module atexit. Until it all tests passed successfully, and this branch will not run. A simple search find -name '*.py' -exec egrep '\braise +\w+[^(]*,' '{}' + showed more than a thousand of problem lines. -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13903] New shared-keys dictionary implementation
Raymond Hettinger raymond.hettin...@gmail.com added the comment: [Antoine] I also think that, apart from the dict storage changes, your patch should strive not to change any other tunables. I agree. Please keep the patch focused on the single task, the shared keys. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14497] Invalid syntax Python files in Python sources tree
New submission from Serhiy Storchaka storch...@gmail.com: I was very surprised to find in Python source code files that are not compatible with Python3. It turns out that this is not an exception, such files very much (see scanner script in attachment). Surely for many years no one had reached his hands run 2to3? These files need to be or to correct, or throw (when nobody needs them). Python 3.2 detects significantly less invalid syntax files. But Python 3.3 has become more severe. -- assignee: ronaldoussoren components: 2to3 (2.x to 3.x conversion tool), Demos and Tools, Library (Lib), Macintosh, Tests, Tkinter, Windows files: scanpy.py messages: 157501 nosy: ronaldoussoren, storchaka priority: normal severity: normal status: open title: Invalid syntax Python files in Python sources tree type: compile error versions: Python 3.3 Added file: http://bugs.python.org/file25124/scanpy.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14497] Invalid syntax Python files in Python sources tree
Serhiy Storchaka storch...@gmail.com added the comment: See also issues 14490, 14491, and 14492. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14497] Invalid syntax Python files in Python sources tree
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file25125/invalid.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14497] Invalid syntax Python files in Python sources tree
R. David Murray rdmur...@bitdance.com added the comment: Some of these at least are intentional. There are test files (especially in 2to3!) that use python2 syntax, and test files that have specially crated syntax errors in them. Sphinx at one point was using Python2, I'm not sure if it has been upgraded to 3 yet or not. I'm sure there are also files that just haven't been checked and updated, such as the ones in Tools/scripts(*). So an audit is definitely in order. (*) I thought someone *had* done an audit of those, but the evidence says otherwise. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14498] Python 3.x distutils.util.get_platform returns incorrect value using Mac OSX 10.7
New submission from Matthew Scott m...@11craft.com: Using Python 3.2.2 and Python 3.3.0a2 (installed via 64-bit installers in official DMGs on python.org), 'distutils.util.get_platform()' returns an incorrect OS version when running on Mac OSX 10.7. Using Python 2.6.7, and Python 2.7.1 (the versions included with Mac OSX), the output indicates 'macosx-10.7' correctly. for version in 2.6 2.7 3.2 3.3; do python${version} -c from __future__ import print_function;import distutils.util,sys;print(sys.version.split()[0],distutils.util.get_platform()); done 2.6.7 macosx-10.7-intel 2.7.1 macosx-10.7-intel 3.2.2 macosx-10.6-intel 3.3.0a2 macosx-10.6-intel Some packages make use of this in their setup.py to determine the proper location of libraries. For example, the 'readline' distribution's setup.py does so here: https://github.com/ludwigschwardt/python-readline/blob/6f0e801fa1632fcbb0e005eb9709aaa6051a0f28/setup.py#L33 It fails due to the incorrect assumption that it's running on 10.6 instead of 10.7. Excerpt from python setup.py bdist_egg: building 'readline' extension Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.6.sdk Please check your Xcode installation gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL -DHAVE_RL_COMPLETION_APPEND_CHARACTER -DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK -I. -I/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m -c Modules/3.x/readline.c -o build/temp.macosx-10.6-intel-3.2/Modules/3.x/readline.o -Wno-strict-prototypes -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 In file included from Modules/3.x/readline.c:8: /Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m/Python.h:11:20: error: limits.h: No such file or directory -- assignee: eric.araujo components: Distutils, Library (Lib), Macintosh messages: 157504 nosy: Matthew.Scott, eric.araujo, tarek priority: normal severity: normal status: open title: Python 3.x distutils.util.get_platform returns incorrect value using Mac OSX 10.7 type: behavior versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14498] Python 3.x distutils.util.get_platform returns incorrect value using Mac OSX 10.7
Matthew Scott m...@11craft.com added the comment: In the cases of both Python 3.x and 2.x, get_platform() is deriving information about the version of OSX from the 'MACOSX_DEPLOYMENT_TARGET' dictionary returned by distutils.sysconfig.get_config_vars(). Using Python 3.2.2: In [1]: import distutils.sysconfig;distutils.sysconfig.get_config_vars()['MACOSX_DEPLOYMENT_TARGET'] Out[1]: '10.6' Using Python 2.7.1: In [1]: import distutils.sysconfig;distutils.sysconfig.get_config_vars()['MACOSX_DEPLOYMENT_TARGET'] Out[1]: '10.7' While the deployment target seems like a useful source of information, it does not seem to be accurate enough to Return a string that identifies the current platform as the docstring for distutils.util.get_platform() suggests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
d9pouces pyt...@19pouces.net added the comment: storchaka I'm trying to take care of your remarks. So, I'm working on a more object-oriented code, with both write and read functions. I just need to write some test cases. IMHO, we should add a new parameter to the writePlist function, to allow the use of the binary or the json format of plist files instead of the default XML one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14498] Python 3.x distutils.util.get_platform returns incorrect value using Mac OSX 10.7
Matthew Scott m...@11craft.com added the comment: Interestingly, the 2.x series allowed an os.environ override for the MACOSX_DEPLOYMENT_TARGET value, while the 3.x series did away with that, as a result of http://bugs.python.org/issue9516 for version in 2.6 2.7 3.2 3.3; do MACOSX_DEPLOYMENT_TARGET=10.42 python${version} -c from __future__ import print_function;import distutils.util,sys;print(sys.version.split()[0],distutils.util.get_platform()); done 2.6.7 macosx-10.42-intel 2.7.1 macosx-10.42-intel 3.2.2 macosx-10.6-intel 3.3.0a2 macosx-10.6-intel -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue634412] RFC 2112 in email package
R. David Murray rdmur...@bitdance.com added the comment: Yes, that's why its status is still open :) As far as I know no one is actively working on it (email issues are all assigned to me so I can keep track of them, not because I'm actively working on all of them). At this point I haven't made any significant modifications to the way mime parts are handled in email6, so any development work you do should be valid whether you work against 3.3 trunk or the email6 feature branch. Joining the email-sig mailing list and discussing this there might also be helpful. Thank you for your interest! -- components: +Library (Lib) -Interpreter Core ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue634412 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14498] Python 3.x distutils.util.get_platform returns incorrect value using Mac OSX 10.7
Ned Deily n...@acm.org added the comment: For OS X builds, the value returned in get_platform() is not intended to indicate what OS version the Python instance is running on. Rather, it indicates which ABI version was used to build the Python in use so that Distutils can use the same ABI for building C extension modules. The ABI is determined by the value of MACOSX_DEPLOYMENT_TARGET at build time. In this case, a value of macosx_10.6-intel means the resulting executables and object files are a universal build with both 32-bit (i386) and 64-bit (x64_64) Intel architectures and can run on Mac OS X 10.6 and higher. The reason the Apple-supplied system Pythons have a value of 10.7 is that they are built with a deployment target of 10.7; they have no need to run on earlier version of OS X. The issue with the readline extension build you cite is the error Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.6.sdk. Chances are you are using the most recent Xcode release (4.3.x) from Apple which unfortunately moved the location of the SDKs from /Developer, which now no longer is used by Xcode, to within the Xcode.app bundle itself, now located in /Applications. A workaround for Xcode 4.3 is to install a symlink to the old location: sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer /Developer -- nosy: +ned.deily resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9634] Add timeout parameter to Queue.join()
Antoine Pitrou pit...@free.fr added the comment: Nick, why don't you submit your workaround as a patch to Queue.join()? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9634 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move
New submission from Ned Deily n...@acm.org: With the release of Xcode 4.3 for OS X 10.7, Apple has moved the location of the OS X SDKs from their long-time path of /Developer to within the new Xcode.app bundle itself. This breaks the building of extension modules with any of Distutils or packaging/Distutils2 when Python was built as as universal build with an SDK in the former location, as is the case with the python.org installers. A workaround is to either leave the old /Developer directory in place when upgrading to Xcode 4.3 or to install a symlink to the new location: sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer /Developer -- assignee: ned.deily components: Distutils, Macintosh messages: 157511 nosy: ned.deily, tarek priority: critical severity: normal stage: needs patch status: open title: Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14499 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14498] Python 3.x distutils.util.get_platform returns incorrect value using Mac OSX 10.7
Ned Deily n...@acm.org added the comment: BTW, Issue14499 is now open to track the Xcode 4.3 SDK problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move
Changes by Matthew Scott m...@11craft.com: -- nosy: +Matthew.Scott ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14499 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14318] clarify may not in time.steady docs
STINNER Victor victor.stin...@gmail.com added the comment: I close this issue as a duplicate because it is now discussed in the PEP 418 and this PEP is going to change the new time functions (time.highres and time.monotonic/steady). -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14318 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14500] test_importlib fails in refleak mode
New submission from Antoine Pitrou pit...@free.fr: $ ./python -m test -R 3:2 test_importlib [1/1] test_importlib beginning 5 repetitions 12345 test test_importlib failed -- Traceback (most recent call last): File /home/antoine/cpython/default/Lib/importlib/test/import_/test_packages.py, line 41, in test_module_not_package_but_side_effects submodule = import_util.import_(subname) File /home/antoine/cpython/default/Lib/importlib/test/import_/util.py, line 15, in import_ return importlib.__import__(*args, **kwargs) File /home/antoine/cpython/default/Lib/importlib/_bootstrap.py, line 1046, in __import__ return sys.modules[name.partition('.')[0]] KeyError: 'mod' -- assignee: brett.cannon components: Library (Lib), Tests messages: 157514 nosy: brett.cannon, pitrou priority: normal severity: normal stage: needs patch status: open title: test_importlib fails in refleak mode type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14500 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14497] Invalid syntax Python files in Python sources tree
Ned Deily n...@acm.org added the comment: There was some related work on this in the earlier Demo clean up issue (Issue7962) and the still open make altnstall shebang line cleanup (Issue10318). But I'm confused. From the list of files you show in invalid.txt appear to be from a Python 2 source directory not a Python 3 one. Many (most?) of the files in your list no longer exist in Python 3. What problem are you trying to solve here? -- assignee: ronaldoussoren - nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14428] Implementation of the PEP 418
STINNER Victor victor.stin...@gmail.com added the comment: Version 6: simplify the code handling GetTickCounter() integer overflow. We don't need a has_last_ticks variable. -- Added file: http://bugs.python.org/file25126/pep418-6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14428] Implementation of the PEP 418
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file25115/pep418-5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14428] Implementation of the PEP 418
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file25108/pep418-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14386] Expose dict_proxy internal type as types.MappingViewType
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Expose dictproxy as a public type - Expose dict_proxy internal type as types.MappingViewType ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14386 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9634] Add timeout parameter to Queue.join()
Nick Coghlan ncogh...@gmail.com added the comment: I probably will eventually - I'll be playing catchup a bit on other tasks this month after doing almost no coding for CPython since some time in Feb. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9634 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14386] Expose dict_proxy internal type as types.MappingViewType
STINNER Victor victor.stin...@gmail.com added the comment: mappingproxy-5.patch is ready for a review. msg157036 contains a summary except that types.MappingViewType is now called types.MappingProxyType. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14386 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14309] Deprecate time.clock()
STINNER Victor victor.stin...@gmail.com added the comment: I misunderstood the time.clock() function. It counts the CPU time while the process is active, whereas a monotonic clock counts elapsed time even during a sleep. time.clock() and time.monotonic() are different clocks for different purposes. I wrote the PEP 418 which contains a list of all available OS clocks. It lists monotonic clocks, but also process time and thread time clocks. And it has a Deferred API: time.perf_counter() section. Something can be done to provide portable functions to get the user and system times. See for example Tools/pybench/systimes.py written by Marc-Andre Lemburg. Python 3.3 gives access to clock_gettime(CLOCK_PROCESS_CPUTIME_ID) and clock_gettime(CLOCK_THREAD_CPUTIME_ID). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14309 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14309] Deprecate time.clock()
STINNER Victor victor.stin...@gmail.com added the comment: Something can be done to provide portable functions to get the user and system times. Lib/profile.py tests also various functions to choose the best one in Profile constructor. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14309 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14222] Use time.steady() to implement timeout
STINNER Victor victor.stin...@gmail.com added the comment: Other modules that should use a monotonic clock instead of the system time: - timeit: default_timer = time.time (but time.clock is still the best clock on Windows for this mmodule) - subprocess for Popen.communicate() timeoout - sched - socket, ssl: timeout. need a C function which uses a monotonic clock if available, or fallback to the system clock - trace See also issues #12338 and #14309. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14222 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14222] Use time.steady() to implement timeout
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I don't think *trace* and *timeit* should be changed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14222 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14494] __future__.py and its documentation claim absolute imports became mandatory in 2.7, but they didn't
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14494 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14500] test_importlib fails in refleak mode
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14500 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14493 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14490] abitype.py wrong raise format
R. David Murray rdmur...@bitdance.com added the comment: Serhiy: I'm not sure what you are talking about. Does it relate to this specific issue (abitype.py)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14491] fixcid.py is using instead of !=
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 62dde5dd475e by R David Murray in branch '3.2': #14490, #14491: add 'sundry'-style import tests for Tools/scripts. http://hg.python.org/cpython/rev/62dde5dd475e New changeset 696cb524322a by R David Murray in branch 'default': Merge #14490, #14491: add 'sundry'-style import tests for Tools/scripts. http://hg.python.org/cpython/rev/696cb524322a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14491] fixcid.py is using instead of !=
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the patch. -- resolution: - fixed stage: test needed - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14490] abitype.py wrong raise format
R. David Murray rdmur...@bitdance.com added the comment: Fixed in 62dde5dd475e and 696cb524322a. Thanks for the patch. -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14491] fixcid.py is using instead of !=
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14492] pdeps.py has_key
R. David Murray rdmur...@bitdance.com added the comment: This one is not a syntax error, so the new 'sundry' tests don't catch it. Want to write a test for this one? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14492 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14497] Invalid syntax Python files in Python sources tree
R. David Murray rdmur...@bitdance.com added the comment: Here's a run of your script against Python3.3 I see nothing on this list that is a problem (after the recent fixes in Tools/scripts). The Doc stuff can be ignored, that's a Python2 based toolchain checked out by the Doc 'make' file. As I said, lib2to3 tests contain python2 code. The other tests files are supposed to be bad syntax. The PC build toolchain is also still Python2 (same comment applies to the msi tool, which is part of that toolchain). I imagine the Mac buildscript is too, but Ned can comment on that. The gdb script is also Python2 (that's what GDB links against). So, I'm closing this issue. -- resolution: - invalid stage: - committed/rejected status: open - closed Added file: http://bugs.python.org/file25127/scan.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14493 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14428] Implementation of the PEP 418
Changes by R. David Murray rdmur...@bitdance.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13238] Add shell command helpers to subprocess module
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14491] fixcid.py is using instead of !=
Éric Araujo mer...@netwok.org added the comment: Great change David. Thanks for the help Popa! -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14490] abitype.py wrong raise format
Éric Araujo mer...@netwok.org added the comment: Serhiy is talking about the same syntax issue, but in other files, such as Tools/msi. The regex given sprouts a lot of false positives from comments or docstrings; for the msi one, I presume it is not a bug (it’s probably run with Python 2), otherwise Martin would have noticed it when making releases. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14222] Use time.steady() to implement timeout
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Why do you think monotonic time is needed for the Queue module? If time.time() goes backwards for some reason, the only consequence is that the timeouts take longer to cross the timeout boundard. On the other hand, it monotonic is used, then time won't go backwards but it won't go forwards either, so the consequence is the same. AFAICT, this patch doesn't fix any bug and doesn't make the module better in any observable way. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14222 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14362] No mention of collections.ChainMap in What's New for 3.3
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset deadd0823ab3 by Éric Araujo in branch 'default': A few tweaks to whatsnew/3.3 (fixes #14362) http://hg.python.org/cpython/rev/deadd0823ab3 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14362 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14362] No mention of collections.ChainMap in What's New for 3.3
Éric Araujo mer...@netwok.org added the comment: Done. -- assignee: docs@python - eric.araujo resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14362 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14362] No mention of collections.ChainMap in What's New for 3.3
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Thanks :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14362 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9634] Add timeout parameter to Queue.join()
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9634 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1360] Queue.get() can't be interrupted with Ctrl-C unless timed out
Matt Joiner anacro...@gmail.com added the comment: Isn't this fixed in Python=3.2? -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1360 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14497] Invalid syntax Python files in Python sources tree
Serhiy Storchaka storch...@gmail.com added the comment: Indeed, somehow I have in the source tree were many Python2 files. After `rm -r *` and `hg revert -a ` number of invalid files decreased to a reasonable limit. Sorry for the false alarm. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14490] abitype.py wrong raise format
Serhiy Storchaka storch...@gmail.com added the comment: Because of some error in my source tree was a lot of Python2 files, which gave a false result (see issue 14497). After cleaning, old-style raise was only in Mac/BuildScript/build-installer.py and Tools/msi/. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com