[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-14 Thread Tal Einat
Tal Einat added the comment: Bah, I messed up the code sample in my previous message. It was supposed to be: from unicodedata import normalize, category norm_char_first = normalize(char)[0] is_id_first_char = ( norm_char_first == '_' or category(norm_char_first) in {"Lu", "Ll", "Lt", "Lm

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-14 Thread Tal Einat
Tal Einat added the comment: It seems that the unicodedata module already supplies relevant functions which can be used for this. For example, we can replace "char in self._id_first_chars" with something like: from unicodedata import normalize, category norm_char = normalize(char)[0] is_id_fir

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2014-06-14 Thread Tal Einat
Tal Einat added the comment: Terry, I'm not sure what you mean but your last comment. HyperParser.get_surrounding_brackets() will return a previous opening bracket, even if no closing bracket is found for it. CallTips depends on that behavior to find the previous opening parenthesis even if it

[issue21696] Idle: test configuration files

2014-06-14 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Added file: http://bugs.python.org/file35641/test-configuration-v2.diff ___ Python tracker ___ ___ Python-bugs

[issue21767] singledispatch docs should explicitly mention support for abstract base classes

2014-06-14 Thread Nick Coghlan
New submission from Nick Coghlan: functools.singledispatch is integrated with the abc module for fast single dispatch even in the absence of concrete inheritance. However, this isn't obvious from the documentation, so users may not realise they can register a single ABC with the generic functi

[issue21762] update the import machinery to only use __spec__

2014-06-14 Thread Nick Coghlan
Nick Coghlan added the comment: The spec is authoritative for "how was this imported?". The differences between that and the module attributes then provide a record of any post-import modifications. -- ___ Python tracker

[issue19898] No tests for dequereviter_new

2014-06-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks guys. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue19898] No tests for dequereviter_new

2014-06-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a48450f2505 by Raymond Hettinger in branch 'default': Issue 19898: Add test for dequereviter_new. http://hg.python.org/cpython/rev/4a48450f2505 -- nosy: +python-dev ___ Python tracker

[issue19768] Not so correct error message when giving incorrect type to maxlen in deque

2014-06-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, but I don't find this to be an improvement and don't think there is a real problem worth fixing. -- resolution: -> rejected status: open -> closed ___ Python tracker __

[issue19768] Not so correct error message when giving incorrect type to maxlen in deque

2014-06-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue19768] Not so correct error message when giving incorrect type to maxlen in deque

2014-06-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue21762] update the import machinery to only use __spec__

2014-06-14 Thread Eric Snow
Eric Snow added the comment: Thanks for clarifying. I remembered discussing it but couldn't recall the details. Documenting the exact semantics, use cases, and difference between spec and module attrs would be help. I'll look into updating the language reference when I have some time. It w

[issue21764] Document that IOBase.__del__ calls self.close

2014-06-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 601a08fcb507 by Benjamin Peterson in branch '3.4': document IOBase.__del__'s behavior (closes #21764) http://hg.python.org/cpython/rev/601a08fcb507 New changeset 4dca82f8d91d by Benjamin Peterson in branch '2.7': document IOBase.__del__'s behavior (

[issue21766] CGIHTTPServer File Disclosure

2014-06-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset b4bab0788768 by Benjamin Peterson in branch '2.7': url unquote the path before checking if it refers to a CGI script (closes #21766) http://hg.python.org/cpython/rev/b4bab0788768 New changeset e47422855841 by Benjamin Peterson in branch '3.2': url

[issue21766] CGIHTTPServer File Disclosure

2014-06-14 Thread Benjamin Peterson
New submission from Benjamin Peterson: >From the security list: The CGIHTTPServer Python module does not properly handle URL-encoded path separators in URLs. This may enable attackers to disclose a CGI script's source code or execute arbitrary scripts in the server's document root. Details

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-14 Thread Jim Jewett
Jim Jewett added the comment: On Jun 14, 2014 4:05 AM, "Aymeric Augustin" > preserving the same behavior by default That is a requirement, because of backwards compatibility. > providing more control for users who need a different behavior, for instance people who use SQLite as an application

[issue21709] logging.__init__ assumes that __file__ is always set

2014-06-14 Thread Vinay Sajip
Vinay Sajip added the comment: > Isn't __code__ implementation-specific? It is, but ISTM it's worth getting a resolution for #21736 before another patch for this issue is developed. -- ___ Python tracker

[issue17941] namedtuple should support fully qualified name for more portable pickling

2014-06-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19414] iter(ordered_dict) yields keys not in dict in some circumstances

2014-06-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry Nikolaus, I'm happy with the code and docs as they are. In general, you should assume that unless documented otherwise, any pure python container (stdlib or 3rd party) has undefined behavior if you mutate while iterating (like you should not assume t

[issue21751] Expand zipimport to support bzip2 and lzma

2014-06-14 Thread Nick Coghlan
Nick Coghlan added the comment: Another use case is more aggressively shrinking the bundled copy of pip. We don't really care about speed of execution there (since we only run it directly once at install time to do the bootstrapping), but we do care about the impact on the installer size. Howeve

[issue21736] Add __file__ attribute to frozen modules

2014-06-14 Thread Nick Coghlan
Nick Coghlan added the comment: Can we just drop "__file__" and set the origin for frozen modules to something that includes the original file name? -- ___ Python tracker ___ ___

[issue21762] update the import machinery to only use __spec__

2014-06-14 Thread Nick Coghlan
Nick Coghlan added the comment: Manipulating name, package and path at runtime is fully supported, and the module level attributes accordingly take precedence over the initial import time spec. There may be some test suite gaps and documentation issues around the behaviour, but it's definitely i

[issue20577] IDLE: Remove FormatParagraph's width setting from config dialog

2014-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: General rule: If the other failures happen without the patch, then go ahead. This is, unfortunately, all too common. If they only happen with the patch (extremely unlikely for this one), then try to find out why. Yes, this change should have a NEWS item. Howev

[issue21686] IDLE - Test hyperparser

2014-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since ParenMatch and fixes* to HyperParser depend on this issue, I would like to do this first. For HyperParser.py, I would like to first commit a clean-up only patch. The test_hyperparser patch should then only add the 'if __name__' clause at the end. I woul

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: #21686 adds the test file that a new test would go in. -- dependencies: +IDLE - Test hyperparser ___ Python tracker ___

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2014-06-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE - Test hyperparser stage: -> test needed ___ Python tracker ___ ___ Python-bugs-li

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-14 Thread Terry J. Reedy
New submission from Terry J. Reedy: idlelib.HyperParser.Hyperparser has these lines _whitespace_chars = " \t\n\\" _id_chars = string.ascii_letters + string.digits + "_" _id_first_chars = string.ascii_letters + "_" used in _eat_identifier() and get_expression. At least the latter two s

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2014-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect that the new end_at_eol parameter should take care of calltips. -- ___ Python tracker ___

[issue21759] URL Typo in Documentation FAQ

2014-06-14 Thread Mike Short
Changes by Mike Short : -- keywords: +patch Added file: http://bugs.python.org/file35639/programmingfaq.patch ___ Python tracker ___ _

[issue21764] Document that IOBase.__del__ calls self.close

2014-06-14 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file35638/iobase2.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21764] Document that IOBase.__del__ calls self.close

2014-06-14 Thread Nikolaus Rath
Changes by Nikolaus Rath : Removed file: http://bugs.python.org/file35637/iobase2.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue21764] Document that IOBase.__del__ calls self.close

2014-06-14 Thread Nikolaus Rath
New submission from Nikolaus Rath: CPython's io.IOBase.__del__ calls self.close(), but this isn't documented anywhere (and may be surprised for derived classes). The attached patch extends the documentation. -- assignee: docs@python components: Documentation files: iobase2.diff keyword

[issue21751] Expand zipimport to support bzip2 and lzma

2014-06-14 Thread Eric Snow
Eric Snow added the comment: related: issue #17630 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue17004] Expand zipimport to include other compression methods

2014-06-14 Thread Eric Snow
Eric Snow added the comment: related: issue #17630 and issue #5950 -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mai

[issue21763] Clarify requirements for file-like objects

2014-06-14 Thread Nikolaus Rath
New submission from Nikolaus Rath: It is currently not perfectly clear what Python (and the standard library) assumes about file-like objects (see e.g. http://article.gmane.org/gmane.comp.python.devel/148199). The attached doc patch tries to improve the current situation by stating explicitl

[issue21709] logging.__init__ assumes that __file__ is always set

2014-06-14 Thread Eric Snow
Eric Snow added the comment: > addLevelName.__code__.co_filename Isn't __code__ implementation-specific? -- nosy: +eric.snow ___ Python tracker ___ _

[issue21736] Add __file__ attribute to frozen modules

2014-06-14 Thread Eric Snow
Eric Snow added the comment: __file__ is the filename from which the module *was* loaded (the inspect doc [1] should probably reflect that [2]). The import machinery only uses the module's __spec__ (origin, etc.). __file__ is set strictly as informational (and for backward-compatibility). P

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2014-06-14 Thread Tal Einat
Tal Einat added the comment: Note that the patch changes the behavior only for ParenMatch.flash_paren_event(). Other uses, such as in CallTips, are not affected. The only possibly unwanted effect that I can think of is in an editor window, on a line missing a closing parenthesis, triggering f

[issue19414] iter(ordered_dict) yields keys not in dict in some circumstances

2014-06-14 Thread Nikolaus Rath
Nikolaus Rath added the comment: Raymond, it would be nice if you could respond to my last comment... -- ___ Python tracker ___ ___ Py

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2014-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current behavior is documented, if not exactly 'chosen' as the best possible. "return the indices of the opening bracket and the closing bracket (or the end of line, whichever comes first". As you note, the automatic matching when pausing afte typing a cl

[issue20069] Add unit test for os.chown

2014-06-14 Thread Claudiu Popa
Claudiu Popa added the comment: Hi, I left a couple of comments on rietveld. -- nosy: +Claudiu.Popa ___ Python tracker ___ ___ Python-

[issue21762] update the import machinery to only use __spec__

2014-06-14 Thread Eric Snow
New submission from Eric Snow: With PEP 451, Python 3.4 introduced module specs to encapsulate the module's import-related information, particularly for loading. While __loader__, __file__, and __cached__ are no longer used by the import machinery, in a few places it still uses __name__, __pa

[issue15955] gzip, bz2, lzma: add option to limit output size

2014-06-14 Thread Nikolaus Rath
Nikolaus Rath added the comment: Nadeem, did you get a chance to look at this? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19898] No tests for dequereviter_new

2014-06-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger versions: -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21759] URL Typo in Documentation FAQ

2014-06-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti stage: -> needs patch type: -> enhancement ___ Python tracker ___ _

[issue21151] winreg.SetValueEx causes crash if value = None

2014-06-14 Thread Claudiu Popa
Claudiu Popa added the comment: Hi. You have some trailing whitespaces in the test file (run make patchcheck or python ../Tools/scripts/patchcheck.py). Except that, looks good to me. -- nosy: +Claudiu.Popa stage: -> patch review versions: +Python 3.5 -Python 3.4 __

[issue21761] language reference describes the role of module.__file__ inaccurately

2014-06-14 Thread Eric Snow
Changes by Eric Snow : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch ___ Python tracker ___ __

[issue21761] language reference describes the role of module.__file__ inaccurately

2014-06-14 Thread Eric Snow
New submission from Eric Snow: The language reference [1] says: Ultimately, the loader is what makes use of __file__ and/or __cached__ This implies that loaders should use __file__ and __cached__ when loading a module. Instead loaders are meant to implement exec_module() and use the spec t

[issue19898] No tests for dequereviter_new

2014-06-14 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: needs patch -> patch review versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mail

[issue21760] inspect documentation describes module type inaccurately

2014-06-14 Thread Eric Snow
Changes by Eric Snow : -- nosy: +brett.cannon, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19768] Not so correct error message when giving incorrect type to maxlen in deque

2014-06-14 Thread Claudiu Popa
Claudiu Popa added the comment: I believe that returning a TypeError instead of a ValueError is better in this situation. Technically, passing 'a' as maxlen makes that value inappropiate, thus the use of TypeError. It will also be backward compatible. Also, your patch needs test updates.

[issue21760] inspect documentation describes module type inaccurately

2014-06-14 Thread Eric Snow
New submission from Eric Snow: In the documentation for the inspect module, the module type is described with just 2 of its potential 7 attributes. The language reference[2] and importlib docs[3] both provide an accurate list of module attributes. Furthermore, the description for __file__ sho

[issue21759] URL Typo in Documentation FAQ

2014-06-14 Thread are-you-watching-closely
New submission from are-you-watching-closely: Under this question (https://docs.python.org/2/faq/programming.html#my-program-is-too-slow-how-do-i-speed-it-up) in the 2.7 programming FAQ, it gives a link to an anecdote that Guido van Rossum wrote. The URL it gives: http://www.python.org/doc/es

[issue20577] IDLE: Remove FormatParagraph's width setting from config dialog

2014-06-14 Thread Tal Einat
Tal Einat added the comment: Also, this seems like a small change. Should I mention it in Misc/NEWS? -- ___ Python tracker ___ ___ Pyt

[issue21751] Expand zipimport to support bzip2 and lzma

2014-06-14 Thread Donald Stufft
Donald Stufft added the comment: I'm not sure what that statement means. There is package data that sits alongside python files. These cannot use anything but DEFLATED because zipimport doesn't support it. -- ___ Python tracker

[issue21751] Expand zipimport to support bzip2 and lzma

2014-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For non-Python files you don't need support of bzip2 or lzma compression in zipimport. Use zipfile which supports advanced compression. -- ___ Python tracker ___

[issue21757] Can't reenable menus in Tkinter on Mac

2014-06-14 Thread Ned Deily
Ned Deily added the comment: Yes, it is a Tk bug. The Cocoa version of Tk 8.5 that Apple has been shipping since OS X 10.6 has numerous problems that have been fixed in more recent versions of Tk 8.5. With the current ActiveTcl 8.5.15, your test appears to work correctly. Unfortunately, you

[issue20577] IDLE: Remove FormatParagraph's width setting from config dialog

2014-06-14 Thread Tal Einat
Tal Einat added the comment: With very minor changes (just use default=72 instead of "or 72" and added a comment explaining why 72 is the default - see attached), I ran the entire test suite (which is a must according to the dev guide). On current default I'm getting consistent failures in tes

[issue21751] Expand zipimport to support bzip2 and lzma

2014-06-14 Thread Donald Stufft
Donald Stufft added the comment: I disagree that there is no large benefit. Python files aren't the only files that could exist inside of a zip file. Supporting LZMA import (or bz2) would make it easier to have LZMA or bzip2 wheels in the future without losing the ability to import them.

[issue17941] namedtuple should support fully qualified name for more portable pickling

2014-06-14 Thread ctismer
ctismer added the comment: Ok, I almost forgot about this because I thought my idea was not considered, and wondered if I should keep that code online. It is still around, and I could put it into an experimental branch if someone asks for it. Missing pull-request on python.org. -- nosy

[issue21758] Not so correct documentation about asyncio.subprocess_shell method

2014-06-14 Thread Vajrasky Kok
New submission from Vajrasky Kok: subprocess_shell in asyncio accepts cmd as a string or a bytes but the test unit, the documentation and the exception indicates that it only accepts a string. -- assignee: docs@python components: Documentation, asyncio files: fix_doc_asyncio_subprocess

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-14 Thread Aymeric Augustin
Aymeric Augustin added the comment: > If this statement is accurate, the what you are proposing is just a different > (presumably clearer) spelling for 'isolation_level = None'? This statement is accurate but it doesn't cover the whole scope of what I'm attempting to fix. I'm also trying to a

[issue18108] shutil.chown should support dir_fd and follow_symlinks keyword arguments

2014-06-14 Thread Claudiu Popa
Claudiu Popa added the comment: Looks good to me. But aren't the last two lines skipped if an error is raised by the first line from the with block? +with self.assertRaises(FileNotFoundError): +shutil.chown('invalid-file', user=uid, dir_fd=dirfd) +shutil.chown('i

[issue18108] shutil.chown should support dir_fd and follow_symlinks keyword arguments

2014-06-14 Thread Berker Peksag
Berker Peksag added the comment: Here's a patch. -- keywords: +patch nosy: +berker.peksag stage: needs patch -> patch review Added file: http://bugs.python.org/file35633/issue18108.diff ___ Python tracker _

[issue21719] Returning Windows file attribute information via os.stat()

2014-06-14 Thread Ben Hoyt
Ben Hoyt added the comment: Uploading a (hopefully final! :-) patch to fix Zach Ware's points from the code review: 1) use stat.FILE_ATTRIBUTE_DIRECTORY constant in test_os.py 2) break line length in stat.rst doc source -- Added file: http://bugs.python.org/file35632/issue21719-4.patch

[issue11792] asyncore module print to stdout

2014-06-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Looking back at this: a warning seems a bit too invasive to me as there are cases where avoiding to override a certain methods are legitimate. I will just close this out as won't fix, also because asyncore has been deprecated by asyncio. -- resoluti

[issue10084] SSL support for asyncore

2014-06-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: asyncore module has been deprecated as per https://docs.python.org/3/library/asyncore.html: <> Closing this out as won't fix. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue12317] inspect.getabsfile() is not documented

2014-06-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: giampaolo.rodola -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2014-06-14 Thread Claudiu Popa
Claudiu Popa added the comment: This seems to be a reasonable fix. Michael, could you have a look at this patch, please? -- nosy: +Claudiu.Popa versions: +Python 3.5 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue6916] Remove deprecated items from asynchat

2014-06-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I simply removed asynchat.fifo documentation. Closing this out. -- resolution: -> fixed status: open -> closed versions: +Python 3.5 -Python 3.2 ___ Python tracker _

[issue6916] Remove deprecated items from asynchat

2014-06-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 42a645d74e9d by Giampaolo Rodola' in branch 'default': fix issue #6916: undocument deprecated asynchat.fifo class.q http://hg.python.org/cpython/rev/42a645d74e9d -- nosy: +python-dev ___ Python tracker <

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2014-06-14 Thread Steve Dower
Steve Dower added the comment: > Isn't PyLong_FromUnsignedLongLong() still involved through spec_add_field()? The two issues were unrelated - the 'invalid filter ID' (4611686018427387905 == 0x4000_0001) is the correct value but the wrong branch in the switch was taken, leading to the e

[issue21650] add json.tool option to avoid alphabetic sort of fields

2014-06-14 Thread Berker Peksag
Berker Peksag added the comment: Updated patch attached based on feedback from David. Thanks! -- stage: needs patch -> patch review Added file: http://bugs.python.org/file35631/issue21650_v2.diff ___ Python tracker

[issue21686] IDLE - Test hyperparser

2014-06-14 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Added file: http://bugs.python.org/file35630/test-hyperparser-v1.diff ___ Python tracker ___ ___ Python-bugs-l

[issue21694] IDLE - Test ParenMatch

2014-06-14 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Removed file: http://bugs.python.org/file35629/test-hyperparser-v1.diff ___ Python tracker ___ ___ Python-bugs

[issue21694] IDLE - Test ParenMatch

2014-06-14 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Added file: http://bugs.python.org/file35629/test-hyperparser-v1.diff ___ Python tracker ___ ___ Python-bugs-l

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-14 Thread R. David Murray
R. David Murray added the comment: > My take is to avoid the problem entirely, and not inflict it to new users, by > providing an option to start in autocommit mode and then create transactions > only when you want them. If this statement is accurate, the what you are proposing is just a diffe

[issue21757] Can't reenable menus in Tkinter on Mac

2014-06-14 Thread R. David Murray
Changes by R. David Murray : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21757] Can't reenable menus in Tkinter on Mac

2014-06-14 Thread R. David Murray
R. David Murray added the comment: Given the description it sounds likely that this is a tk bug. -- assignee: -> ronaldoussoren components: +Macintosh nosy: +r.david.murray, ronaldoussoren ___ Python tracker _

[issue21757] Can't reenable menus in Tkinter on Mac

2014-06-14 Thread Mark Bell
New submission from Mark Bell: The following example is a Tkinter app with a button that toggles the menu being enabled based off of https://mail.python.org/pipermail/tkinter-discuss/2004-September/000204.html #--- from Tkinter import * root=Tk() def hello():

[issue21684] inspect.signature bind doesn't include defaults or empty tuple/dicts

2014-06-14 Thread Ryan McCampbell
Ryan McCampbell added the comment: If this is decided against, a partial solution would be to set the "default" attribute of VAR_POSITIONAL and VAR_KEYWORD args to an empty tuple/dict, respectively. Then you could get a parameter's value no matter what with boundargs.get(param.name, param.defa

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2014-06-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: Please don't. If the compiler is demonstrated to generate bad code in one case, we should *not* exclude that code from optimization, but not use optimization at all. How many other places will there be which also cause bad code being generated that just happe

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2014-06-14 Thread Claudiu Popa
Claudiu Popa added the comment: This was fixed in the latest versions. >>> b = bytearray(b'457') >>> b[:1] = 4 Traceback (most recent call last): File "", line 1, in TypeError: can assign only bytes, buffers, or iterables of ints in range(0, 256) >>> -- nosy: +Claudiu.Popa resolution

[issue21686] IDLE - Test hyperparser

2014-06-14 Thread Tal Einat
Tal Einat added the comment: Regarding lines 32 & 42, a test could also set editwin.num_context_lines to allow triggering with smaller code blocks. It's value needs to be a list of integers, the last of which is incredibly large, perhaps sys.maxint. --

[issue21686] IDLE - Test hyperparser

2014-06-14 Thread Tal Einat
Tal Einat added the comment: Here are details how to trigger all of the uncovered code lines and branches, listed by line. Uncovered lines: Line 159: This catches would-be identifiers (variable names) which are keywords or begin with a character that can't be first (e.g. a digit). We should

[issue21724] resetwarnings doesn't reset warnings registry

2014-06-14 Thread Stefan van der Walt
Stefan van der Walt added the comment: This can be quite painful to work around, since the warning registry is scattered all over. See, e.g., https://github.com/scikit-image/scikit-image/blob/master/skimage/_shared/_warnings.py#L9 -- nosy: +stefanv ___

[issue19495] Enhancement for timeit: measure time to run blocks of code using 'with'

2014-06-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > It might still be worth having a time elapsed decorator This is exactly what I think. It's a very common task. -- ___ Python tracker ___ _

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2014-06-14 Thread Stefan Krah
Stefan Krah added the comment: Isn't PyLong_FromUnsignedLongLong() still involved through spec_add_field()? -- ___ Python tracker ___

[issue11287] Add context manager support to dbm modules

2014-06-14 Thread Claudiu Popa
Claudiu Popa added the comment: Hi. This was already fixed in c2f1bb56760d. I'm sorry that this patch didn't make it through. -- nosy: +Claudiu.Popa resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue21694] IDLE - Test ParenMatch

2014-06-14 Thread Tal Einat
Changes by Tal Einat : Removed file: http://bugs.python.org/file35627/taleinat.20140614.IDLE_parenmatch_multiline_statement.patch ___ Python tracker <http://bugs.python.org/issue21

[issue21694] IDLE - Test ParenMatch

2014-06-14 Thread Tal Einat
Tal Einat added the comment: I've opened a separate issue for the issue raised by Terry, #21756. Patch is included there. -- Added file: http://bugs.python.org/file35627/taleinat.20140614.IDLE_parenmatch_multiline_statement.patch ___ Python tr

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2014-06-14 Thread Tal Einat
ssue. Review and additional testing are required. -- components: IDLE files: taleinat.20140614.IDLE_parenmatch_multiline_statement.patch keywords: patch messages: 220542 nosy: taleinat, terry.reedy priority: normal severity: normal status: open title: IDLE - ParenMatch fails to find closing

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2014-06-14 Thread Tal Einat
Changes by Tal Einat : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21742] WatchedFileHandler can fail due to race conditions or file open issues.

2014-06-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb8b0c7fefd0 by Vinay Sajip in branch '2.7': Issue #21742: Set stream to None after closing. http://hg.python.org/cpython/rev/bb8b0c7fefd0 New changeset 6f1f38775991 by Vinay Sajip in branch '3.4': Issue #21742: Set stream to None after closing. htt

[issue13322] buffered read() and write() does not raise BlockingIOError

2014-06-14 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue21742] WatchedFileHandler can fail due to race conditions or file open issues.

2014-06-14 Thread Vinay Sajip
Vinay Sajip added the comment: There *is* a race condition with WatchedFileHandler - see #14632 - but there is not much that can be done about it (see the various comments in that issue). BTW, I wasn't able to reproduce the threading problem from your script: there were no errors and the file

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-14 Thread Vladimir Iofik
Vladimir Iofik added the comment: Thanks, Martin. I didn't read the final with enough care. I think the second part of changes (the ones that are around QueryValueEx) should be rolled back. I believe the code was correct at that part. Tim, what do you think? -- ___

[issue21751] Expand zipimport to support bzip2 and lzma

2014-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As shown in msg180323, using lzma compression for typical *.py and *.pyc produces 8% less zip file, but reading from it is 2.5 times slower. The bzip2 compression is even worse. So there is no large benefit in supporting other compression methods. -

[issue21751] Expand zipimport to support bzip2 and lzma

2014-06-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> duplicate status: open -> closed superseder: -> Expand zipimport to include other compression methods ___ Python tracker ___ ___

[issue21748] glob.glob does not sort its results

2014-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually iglob() can sort (per directory). But I don't think this is too needed feature. In any case you can sort result of glob(). -- nosy: +serhiy.storchaka ___ Python tracker

  1   2   >