[issue10461] Use with statement throughout the docs
Terry J. Reedy tjre...@udel.edu added the comment: +1 I have not yet had occasion to use 'with' yet, but in reading the Unicode HOWTO diff, I noticed that I liked replacing 'open,read,close' with 'with open, read' just for reading purposes since it turns 3 steps into 1 compound transaction. Perhaps something should also be added to the doc style guide (along with using 'attributes' instead of 'members'). -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10461 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2986] difflib.SequenceMatcher not matching long sequences
Terry J. Reedy tjre...@udel.edu added the comment: Deadline is probably next Fri. However I will apply this or slight revision thereof in a couple of days to make sure this much is in. I have to fixup some work stuff today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2986 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9222] IDLE: Fix open/saveas 'Files of type' choices
Terry J. Reedy tjre...@udel.edu added the comment: 3.2, 3.1, 2.7: r86702, r86703, r86704 -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9222 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1859] textwrap doesn't linebreak on \n
Terry J. Reedy tjre...@udel.edu added the comment: Georg, if your comment means that you think that the doc patch is ready to apply, as is, without testing with a doc build, then I will do so for all 3 versions. Should there really be two blank lines after the note? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1859 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1859] textwrap doesn't linebreak on \n
Changes by Terry J. Reedy tjre...@udel.edu: Removed file: http://bugs.python.org/file19785/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1859 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1859] textwrap doesn't linebreak on \n
Terry J. Reedy tjre...@udel.edu added the comment: Doc patch applied to 3.2, 3.1, 2.7 in r86717, r86718, r86719 Jeremy Thurgood added to 3.2 Misc/ACKS in r86720. (I know, I should have added this first before committing.) I am leaving this open for a possible behavior patch. Mathew: look at the examples by Tom Lynn and Jeremy Thurgood for unit tests. My comment If newlines in the text are left in, [with replace_whitespace=False] they should reset the characters-in-line count to 0 the same as inserted newlines. may be all that is needed for a fix. If and when there is a behavior patch, the current doc patch should be reverted (undone) with an alternate doc patch. Whoops, you just added a patch while I wrote the above. I will try to take a look if no one else does. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1859 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1859] textwrap doesn't linebreak on \n
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1859 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10516] Add list.clear()
New submission from Terry J. Reedy tjre...@udel.edu: Add list.clear() method with obvious semantics. Pro: 1. parallel to set/dict/defaultdict/deque.clear(), usable in generic mutable collection function; 2. makes it easier to switch between list and other collection class; 3. current alternatives are not as obvious; 4. some people seem to expect it. Anti: 1. unneeded; del l[:] or l[:]=[] do same already. Guido: (python-ideas list, 'Set Syntax' thread, today) FWIW I'm fine with adding list.clear() to 3.3. -- components: Interpreter Core messages: 122251 nosy: terry.reedy priority: normal severity: normal stage: unit test needed status: open title: Add list.clear() type: feature request versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10516 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8938] Mac OS dialogs(Save As..., Load) translation
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8938 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2986] difflib.SequenceMatcher not matching long sequences
Terry J. Reedy tjre...@udel.edu added the comment: Since I am not sure I will be able to do any more before the 3.2b1 feature freeze, I went ahead with the minimal patch after checking the differences from the 2.7 version and redoing the Misc/News entry. (I suspect putting a new entry immediately after the appropriate heading, instead of between other headings, is probably least likely to fatally conflict with intervening changes.) r86745 Thank you Eli and Simon. Leaving this open for possible further changes. -- type: behavior - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2986 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.
New submission from Terry J. Reedy tjre...@udel.edu: Expose and document the junk and popular sets as attributes of the SequenceMatcher object. self.junk = junk self.popular = popular Deprecate the then unneeded and undocumented isbjunk and isbpopular functions, currently defined as self.isbjunk = junk.__contains__ self.isbpopular = popular.__contains__ (and slightly modify the matcher function that localizes and uses one of the above). Question, (how) do we document deprecation/removal of undocumented function? In discussions that included Tim Peters, the idea of exposing the tuning parameters of the heuristic was discussed. Now that the heuristic can be turned off, I think this is YAGNI until someone specifically requests it. -- assignee: terry.reedy messages: 122400 nosy: eli.bendersky, hodgestar, terry.reedy priority: normal severity: normal stage: unit test needed status: open title: difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions. type: feature request versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2986] difflib.SequenceMatcher not matching long sequences
Terry J. Reedy tjre...@udel.edu added the comment: Agreed. #10534. This is really a 'follow-on' rather than 'superseder', but the forward reference should be easy for anyone to find. -- resolution: - fixed status: open - closed superseder: - difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions. type: feature request - behavior versions: +Python 2.6, Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2986 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1178] IDLE - add paste code functionality
Terry J. Reedy tjre...@udel.edu added the comment: I would really like something like this -- for 3.2b1 next week. I am constantly running posted interactive code and the lack of this is a major nuisance. There seems to be a glitch in how the editor deals with ' ' when trying to delete it. However, as well as removing ' ' and '... ' from code lines, I would like it to add '# ' to output lines. I do not see that in the patch. Since I have XP also (and access to Win7) I would consider this working on those two sufficient reason to commit. As near as I can tell, the patch cannot possibly break other systems as long as the feature is not used. Once in the beta, it could get wider testing. -- nosy: +terry.reedy -nobody priority: low - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1178 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1178] IDLE - add paste code functionality
Terry J. Reedy tjre...@udel.edu added the comment: An alternative approach would be to leave pasting alone but add a 'Convert interactive code' option to the format menu, with keycode alt-v (not currently used as far as I can see). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1178 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10521] str methods don't accept non-BMP fillchar on a narrow Unicode build
Terry J. Reedy tjre...@udel.edu added the comment: As a practical matter, I think that for at least the next decade, people are at least as likely to want to fill with a composed, multi-BMP-codepoint 'char' (grapheme) as with a non-BMP char. So to me, failure with the latter is no worse than failure with the former. The underlying problem is that centering k chars within n spaces with fill i is based on one-char per code encodings *and* fixed pitch fonts with one-char per space. That model is not universally applicable, so I do not consider it a bug that functions based on that model are also not universally applicable. Perhaps docs should be clearer about the limitations of many of the string methods in the new context. A full general solution to the general problem of centering requires a shift to physical units (points or mm) and detailed font information, including kerning. This is beyond the scope of a string method. So I consider this a feature request for a partial generalization of unclear utility and unclear definition. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10521 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10537] OS X IDLE 2.7rc1 from 64-bit installer hangs when you paste something.
Terry J. Reedy tjre...@udel.edu added the comment: Is this a duplicate of other issues (close?)? Is this an Apple problem beyond our control (close?)? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10521] str methods don't accept non-BMP fillchar on a narrow Unicode build
Terry J. Reedy tjre...@udel.edu added the comment: After reading the additional messages here and on a similar issue Alexander opened after this, I seem the point of wanting to make the difference between the two types of builds as transparent as sensibly possible. From that viewpoint, rejection of composed chars is not as bad because both types of builds act the same. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10521 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9264] trace.py documentation is incomplete
Terry J. Reedy tjre...@udel.edu added the comment: Éric, please feel free to commit (and even grab Assigned To:) when you feel patch is ready. You can do final review better than me. -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9264 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception
Terry J. Reedy tjre...@udel.edu added the comment: Patch is missing version-added directive and News entry. I will try to add these and re-upload for final check. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception
Terry J. Reedy tjre...@udel.edu added the comment: I applied mkdir.diff, 08-07, patch to my current working copy, added version-added and News entry (with credit to Ray Allen) and added Ray Allen to ACKS. Uploaded as mkdirs.tr.diff I suspect a complete test should include a linux system, but I copied os.py and test_os.py to my WinXP 3.2a3 installation and in IDLE ran from test.test_os import test_main as f; f() The mkdir tests passed, but for what is is worth, 3 others did not: (I have no interpretation or comment on these ;-) == ERROR: test_CTRL_BREAK_EVENT (test.test_os.Win32KillTests) -- Traceback (most recent call last): File C:\Programs\Python32\lib\test\test_os.py, line 1137, in test_CTRL_BREAK_EVENT self._kill_with_event(signal.CTRL_BREAK_EVENT, CTRL_BREAK_EVENT) File C:\Programs\Python32\lib\test\test_os.py, line , in _kill_with_event time.sleep(0.5) WindowsError: [Error 6] The handle is invalid == ERROR: test_link (test.test_os.LinkTests) -- Traceback (most recent call last): File C:\Programs\Python32\lib\test\test_os.py, line 906, in test_link self._test_link(self.file1, self.file2) File C:\Programs\Python32\lib\test\test_os.py, line 901, in _test_link os.link(file1, file2) AttributeError: 'module' object has no attribute 'link' == ERROR: test_link_bytes (test.test_os.LinkTests) -- Traceback (most recent call last): File C:\Programs\Python32\lib\test\test_os.py, line 910, in test_link_bytes bytes(self.file2, sys.getfilesystemencoding())) File C:\Programs\Python32\lib\test\test_os.py, line 901, in _test_link os.link(file1, file2) AttributeError: 'module' object has no attribute 'link' -- Added file: http://bugs.python.org/file19849/mkdirs.tr.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception
Terry J. Reedy tjre...@udel.edu added the comment: \ at end of os.py addition -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception
Terry J. Reedy tjre...@udel.edu added the comment: Afaik, those error have nothing to do with this issue. I just included them for completeness in case they were helpful to GB. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10537] OS X IDLE 2.7rc1 from 64-bit installer hangs when you paste something.
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10500] Palevo.DZ worm msix86 installer 3.x installer
Terry J. Reedy tjre...@udel.edu added the comment: And I checked both .2 and .3 with McAfee Nothing found -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10500 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9620] Python 2.7 IDLE fails on OS X 10.6
Terry J. Reedy tjre...@udel.edu added the comment: This issue was closed as a duplicate of #9227. Please direct further comments there. In any case, all issues wait until a person with the requisite knowledge volunteers a fix and a core developer commits the fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9620 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4113] Add custom __repr__ to functools.partial
Terry J. Reedy tjre...@udel.edu added the comment: I would prefer the module.name without the repr decoration. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception
Terry J. Reedy tjre...@udel.edu added the comment: I removed trailing '\' and whitespace, refreshed against current repository, removing conflicts, and committed. r86930 -- assignee: georg.brandl - terry.reedy resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception
Terry J. Reedy tjre...@udel.edu added the comment: Georg Brandl patched the doc changes in r86931. Ray, for future reference, you might take a look, particularly -.. function:: makedirs(path[, mode][, exist_ok=False]) +.. function:: makedirs(path, mode=0o777, exist_ok=False) In 3.x, (as opposed to 2.x), the style for params with default args is to give the default if possible, *without* [] now, so the signature in the doc looks as in a def statement. I, of course, missed this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10610] Correct the float(), int() and complex() documentation
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10610 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.
Terry J. Reedy tjre...@udel.edu added the comment: Here is a pretty minimal patch to expose bjunk and bpopular as attributes and document them along with b2j, which is already exposed but not documented. I suppose the proposed paragraph could be formatted as a list, perhaps after :class:`SequenceMatcher` objects have the following methods: with 'methods' expanded to 'attributes and methods'. But I do not know how to do that and personally prefer what I wrote. However, Georg, I am adding you as nosy so you can comment on the doc addition *before* I commit this tomorrow, to get it in the beta. Still to do: improve the doctests, including those added as part of #2986, to use the exposed sets (they are already implicitly tested by the existing tests); deprecate the two obsolete function attributes, as discussed on pydev. The docstrings and code comments might stand revision, and there is an XXX todo in the doc yet. -- keywords: +patch nosy: +georg.brandl stage: unit test needed - commit review Added file: http://bugs.python.org/file19915/difflib.10534.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened
Terry J. Reedy tjre...@udel.edu added the comment: The indentation of the patch 'looks' wrong. That appears to be because you used tabs instead of spaces (as in the lines removed and I presume elsewhere in the file -- and because FireFox interprets tabs as 8 spaces. Please redo with spaces. I will try to look at it during 3.2 beta phase if no one beats me to it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.
Terry J. Reedy tjre...@udel.edu added the comment: Added version-added and committed. r86983 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: commit review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.
Terry J. Reedy tjre...@udel.edu added the comment: Deprecated isbjunk and isbpopular methods, ran doc and unit tests, and committed as r87000. Still need to add 'gone in 3.3 test' when revise unittests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.
Terry J. Reedy tjre...@udel.edu added the comment: News entry for both commits: r87001 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10516] Add list.clear() and list.copy()
Terry J. Reedy tjre...@udel.edu added the comment: Objects/dictobject.c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10516 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8754] ImportError: quote bad module name in message
Terry J. Reedy tjre...@udel.edu added the comment: The patch looks same to me as far as I can judge. I would have used .format instead of %, but you wrote it ;-). Seeing how many of our tests had to be patched convinced me that we should treat this like a feature request and only apply to 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8754 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10544] yield expression inside generator expression does nothing
Terry J. Reedy tjre...@udel.edu added the comment: #3267 did not expose endless loop possibility and was closed as won't fix. Rather than reopen that and close this and move nosy list back, I added to nosy list here. -- nosy: +brett.cannon, erickt, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10544 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3267] yield in list comprehensions possibly broken in 3.0
Changes by Terry J. Reedy tjre...@udel.edu: -- superseder: - yield expression inside generator expression does nothing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3267 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7391] Re-title the Using Backslash to Continue Statements anti-idiom
Terry J. Reedy tjre...@udel.edu added the comment: In #10545, 'rurpy2' gives a similar critique of this section and suggests that it be improved or removed. I agree that it needs change and will try to think of what would be better. -- nosy: +rurpy2, terry.reedy versions: -Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10545] remove or rewrite Using Backslash to Continue Statements anti-idiom
Terry J. Reedy tjre...@udel.edu added the comment: This is essentially a duplicate of #7391 where it is already agreed that a change should be made to that section. -- nosy: +terry.reedy resolution: - duplicate status: open - closed superseder: - Re-title the Using Backslash to Continue Statements anti-idiom ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10545 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10546] UTF-16-LE and UTF-16-BE support non-BMP characters
Terry J. Reedy tjre...@udel.edu added the comment: Marc or Alexander, can you confirm that the patch is correct? -- assignee: d...@python - cgw nosy: +belopolsky, cgw, lemburg, terry.reedy stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10546 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10546] UTF-16-LE and UTF-16-BE support non-BMP characters
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: cgw - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10546 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10546] UTF-16-LE and UTF-16-BE support non-BMP characters
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10546 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8426] multiprocessing.Queue fails to get() very large objects
Terry J. Reedy tjre...@udel.edu added the comment: 2.6.6 was the last bugfix release -- type: crash - behavior versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8426 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10669] Document Deprecation Warnings and how to fix
Terry J. Reedy tjre...@udel.edu added the comment: The issue is not the specific warnings Rusi got but how, in general, one can get more information when the warnings are too cryptic to deal with. One response might be that DeprecationWarnings should be much wordier than they are -- a paragraph of a few sentences rather than just a minimal sentence. Another might be that each release have a HOW-TO doc or What's New section with a paragraph for each one added to that release. Currently, information is scattered among pydev posts, tracker issues, commit messages, News entries, and maybe What's new. -- nosy: +rhettinger, terry.reedy title: Remove Deprecation Warnings - Document Deprecation Warnings and how to fix versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10669 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10674] Unused dictmaker symbol in 2.* grammar
Terry J. Reedy tjre...@udel.edu added the comment: Your links are to py3k branch, where dictmaker does not appear. http://svn.python.org/view/python/branches/release27-maint/Grammar/Grammar?view=markup should that Benjamin just removed it from 2.7. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2212] Cookie.BaseCookie has ambiguous unicode handling
Terry J. Reedy tjre...@udel.edu added the comment: This is not a security issue, so removal of 2.6 was right the first time. Changing the one line would be easy, but I know nothing about what is correct or if there is even a standard for cookies. -- stage: - unit test needed versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2212 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9264] trace.py documentation is incomplete
Terry J. Reedy tjre...@udel.edu added the comment: Since Éric grabbed Assigned To:, I was expecting him to ;=). But since he is doing enough other stuff, I will unless there are conflicts in the .rst I do not know how to fix. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9264 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9264] trace.py documentation is incomplete
Terry J. Reedy tjre...@udel.edu added the comment: Éric beat me. Better that he finish. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9264 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.
Terry J. Reedy tjre...@udel.edu added the comment: Added tweak to .__chain_b to avoid creating list of b2j.keys and .items be deleting from b2j in separate loop after creating sets. Test with timeit suggests time about same with 1% deletion. r87276 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10685] trace does not ignore --ignore-module
Terry J. Reedy tjre...@udel.edu added the comment: Please try the recent 2.7.1 release. This needs to be tested with current 3.1.3 or 3.1.b+ also. -- nosy: +eli.bendersky, terry.reedy title: trace does nto ignore --ignore-module - trace does not ignore --ignore-module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10685 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10702] bytes and bytearray methods are not documented
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10702 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10723] Undocumented built-in exceptions
Changes by Terry J. Reedy tjre...@udel.edu: Removed file: http://bugs.python.org/file20084/exceptions.rst ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10723 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7
Terry J. Reedy tjre...@udel.edu added the comment: I do not have much to add, but second the idea of inquiring on python-list or the gmane mirror, especially about alternatives (other than Notepad, which is what I started with). Happily, IDLE has nearly always worked fine on my xp machine, so I have not tried anything else. Macs have had more problems than Windows, but perhaps Vista is worse than XP. I will be moving to Windows 7 sometime. The intermittent behavior is, I think, unusual. Please try 3.1.3 or 3.2b1 or .2b2 (in a few days) to see if there is any difference. It is possible that we could somehow improve the error message or docs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10722 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map
Terry J. Reedy tjre...@udel.edu added the comment: This issue is actually a request to add .svg to the types map and the the abbreviation .svgz for .svg.gx to the suffix_map. I believe Scalable Vector Graphics are well on the way to becoming *the* standard vector graphics format for the web, especially with upcoming IE9 support. https://secure.wikimedia.org/wikipedia/en/wiki/Svg It (they) are already supported by the other major browsers. In addition, Google announced on 31 August 2010 that it had begun to index SVG content on the web, whether it is in standalone files or embedded in HTML. So it might be sensible to add these now rather than two years from now. But if it is too late for 3.2, then I expect addition for 3.3 will be obvious. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map
Terry J. Reedy tjre...@udel.edu added the comment: Separate issue: from the mimetypes doc ... MimeTypes.types_map Dictionary mapping filename extensions to MIME types. This is initially a copy of the global types_map defined in the module. But on Windows, I get a *tuple*, not a dict, of two dicts. The first has just a few pairs mi.types_map[0] {'.xul': 'text/xul', '.pic': 'image/pict', '.pict': 'image/pict', '.jpg': 'image/jpg', '.rtf': 'application/rtf', '.pct': 'image/pict', '.mid': 'audio/midi', '.midi': 'audio/midi'} and the second about a hundred more. Is this a bug? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10461] Use with statement throughout the docs
Terry J. Reedy tjre...@udel.edu added the comment: Vinay, you should look at the logging-cookbook patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10461 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10296] ctypes catches BreakPoint error on windows 32
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +theller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Terry J. Reedy tjre...@udel.edu added the comment: Patch attached. The instructions, after editing the url, are # Before adding new types, make sure they are either registered with IANA, # at http://www.iana.org/assignments/media-types # or extensions, i.e. using the x- prefix Since there is no registration yet, I add the x- prefix. I presume that can be deleted without harm when it is registered. David, is that true? Georg, is this OK for 3.2c1? It can only break code depending on the entries not existing. -- assignee: - terry.reedy keywords: +patch Added file: http://bugs.python.org/file20143/mimetypes.svg.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8885] markupbase declaration errors aren't recoverable
Terry J. Reedy tjre...@udel.edu added the comment: I verified the looping behavior of the testcase in both 2.7.1 and, with minor mods, 3.1.3 and 3.2b1, so this is a valid issue. The HTMLParcer docs (2.7, 3.2) do not mention the .error method. The default is def error(self, message): raise HTMLParseError(message, self.getpos()) If this is *not* intended to be part of the api and over-ridden, the name should be changed to ._error and .error deprecated. If it is, it should be documented. I think the self.error call should be followed either by j+=1 so parsing continues with the next char or by a raise statememt so it is definitely stopped. -- versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8885 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Terry J. Reedy tjre...@udel.edu added the comment: No, the other combined suffixes are not either. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Terry J. Reedy tjre...@udel.edu added the comment: I obviously misunderstood the instruction about 'x-' and will remove that. Should I leave the entry where it is or move as Éric suggested? -- Added file: http://bugs.python.org/file20149/mimetypes.svg2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Terry J. Reedy tjre...@udel.edu added the comment: r87460 -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)
Terry J. Reedy tjre...@udel.edu added the comment: 2.6 is closed except for security fixes, which this does not seem to be. If the problem is in 2.7, then it potentially could be fixed there, but with the same caveats. I will let Antoine reclose if he thinks appropriate. -- nosy: +terry.reedy stage: committed/rejected - patch review versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9090 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10733] plistlib rejects strings containing control characters
Terry J. Reedy tjre...@udel.edu added the comment: Mitchell: 2.6 is closed to revision except for security issues -- nosy: +terry.reedy resolution: wont fix - versions: +Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10733 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10738] webbrowser.py bug with Opera on Linux
Terry J. Reedy tjre...@udel.edu added the comment: According to the linked doc, Opera has '-noraise' but not '-raise' as a command line option (to not raise window when receiving remote commands). It does have 'raise()' (with quotes and parens, but not noraise()) as a remote command following the '-remote' command line option to be sent to another Opera window. I suspect this as the reason for the apparently invalid raise_opts = [, -raise] From the usage of raise_opts in UnixBrowser._invoke, which concatenates one of the entries, if not , to self.name, I am pretty sure the command line form is what is wanted and that the proposed raise_opts = [-noraise, ] is correct. Attached patch also removes a few blank lines to make entries for different browsers consistent. Georg, if you agree, I will commit the change and backport. -- keywords: +patch nosy: +terry.reedy stage: - commit review versions: +Python 3.1, Python 3.2 Added file: http://bugs.python.org/file20158/zweb.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10742] memoryview.readonly attribute is not documented
Terry J. Reedy tjre...@udel.edu added the comment: I agree with addition. Patch look OK to my limited .rst knowledge. To be more parallel to the other entries, the text might say A bool indicating whether ... -- nosy: +terry.reedy stage: - patch review versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10742 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10756] Error in atexit._run_exitfuncs [...] Exception expected for value, str found
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10756 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10757] zipfile.write, arcname should be bytestring
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +aimacintyre stage: - unit test needed type: compile error - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10757 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10762] strftime('%f') segfault
Terry J. Reedy tjre...@udel.edu added the comment: I verified problem with 3.2b1 on 32-bit winxp machine. IDLE restarts after pythonw crashes. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10762 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10733] plistlib rejects strings containing control characters
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10733 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10768] Bug in scrolledtext
Terry J. Reedy tjre...@udel.edu added the comment: Since 'methods' is converted to a set in the next line, there is no need for lists. Instead, use | and delete the conversion. methods = vars(Pack).keys() + vars(Grid).keys() + vars(Place).keys() methods = set(methods).difference(text_meths) becomes methods = vars(Pack).keys() | vars(Grid).keys() | vars(Place).keys() methods = methods.difference(text_meths) Now I am a little puzzled why this does not fail (3.2b1, winxp): from tkinter.scrolledtext import ScrolledText s = ScrolledText() s tkinter.scrolledtext.ScrolledText object at 0x00F6CF70 On the other hand, this fails elsewhere: from tkinter.scrolledtext import example example() Traceback (most recent call last): File pyshell#34, line 1, in module example() File C:\Programs\Python32\lib\tkinter\scrolledtext.py, line 49, in example stext.insert(END, __main__.__doc__) File C:\Programs\Python32\lib\tkinter\__init__.py, line 2970, in insert self.tk.call((self._w, 'insert', index, chars) + args) _tkinter.TclError: wrong # args: should be .16421456.16190896 insert index chars ?tagList chars tagList ...? -- nosy: +gpolo, terry.reedy versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10768 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10769] ast: provide more useful range information
Terry J. Reedy tjre...@udel.edu added the comment: A request limited only to fixing the current field for attribute may get more traction than a request for a new field. Can you dig into to code to get any idea why the difference between attributes versus indexes and parameters? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10769 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10769] ast: provide more useful range information
Terry J. Reedy tjre...@udel.edu added the comment: FWIW, I find the current behavior for attributes to be surprising, to the point where at first glance it almost looks like a bug. Which is to say, I would have expected 'col' to point to the first non-whitespace column after the '.'. If there are multiple attributes, a.b.c.d, then to me, each node should point to its appropriate place, just as with a[b][c]. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10769 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10738] webbrowser.py bug with Opera on Linux
Terry J. Reedy tjre...@udel.edu added the comment: 3.2,3.1,2.7: r87553, r87554, r87555 -- assignee: - terry.reedy components: +Library (Lib) resolution: - fixed status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10792] Compile() and 'Windows/Mac newlines'
New submission from Terry J. Reedy tjre...@udel.edu: In python-list thread Does Python 3.1 accept \r\n in compile()? jmfauth notes that compile('print(999)\r\n', 'in', 'exec') works in 2.7 but not 3.1 (and 3.2 not checked) because 3.1 sees '\r' as SyntaxError. I started to respond that this is part of Py3 cleanup with newlines converted on input and back-compatibility with ancient Python not needed. Then I saw in 3.2 manual Changed in version 3.2: Allowed use of Windows and Mac newlines. ... However, above gives same error. Should Allowed use of Windows and Mac newlines. be deleted? What else could it mean other than use of '\r' or '\r\n'? The note was added in r76232 which is a forward port of r76230 fix several compile() issues by translating newlines in the tokenizer by B. Peterson. Is Windows/Mac part just not applicable to 3.2? -- assignee: benjamin.peterson components: Documentation messages: 124872 nosy: benjamin.peterson, terry.reedy priority: normal severity: normal status: open title: Compile() and 'Windows/Mac newlines' versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10792 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10792] Compile() and 'Windows/Mac newlines'
Terry J. Reedy tjre...@udel.edu added the comment: I made a mistake in testing. Sorry for the noise. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10792 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10537] OS X IDLE 2.7 from 64-bit installer hangs when you paste something.
Changes by Terry J. Reedy tjre...@udel.edu: -- title: OS X IDLE 2.7rc1 from 64-bit installer hangs when you paste something. - OS X IDLE 2.7 from 64-bit installer hangs when you paste something. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6864] IDLE 2.6.1 locks up on Mac OS 10.6
Terry J. Reedy tjre...@udel.edu added the comment: According to Ronald (msg92914) and Ned (msg92923) this particular issue is 2.6 only (and fixed in 2.7 because of patches not backported). 2.6 is in security fix only mode. So unless someone claims that this is a security issue (and Barry agrees) or reports that this particular issue appears in a current version (2.7.1, 3.1.3, 3.2) separate from other open Apple/Tk/IDLE issues, this should be closed. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6864 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4685] IDLE will not open (2.6.1 on WinXP pro)
Terry J. Reedy tjre...@udel.edu added the comment: 2.6 is now security fix only. -- nosy: +terry.reedy resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4685 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2708] IDLE subprocess error
Terry J. Reedy tjre...@udel.edu added the comment: 3.0 is closed to fixed and 2.6 is security fix only. This is otherwise a duplicate of similar issues. -- nosy: +terry.reedy resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2708 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10799] Improve webbrowser.open doc (and, someday, behavior?)
New submission from Terry J. Reedy tjre...@udel.edu: webbrowser.open (and two aliases): 1. document return value, which seems to be: True if a browser tab or window is opened, regardless of whether or not the url is found; False otherwise. 2. document that (on Windows, at least) the default browser only gets used if a non .htm(l) url starts with 'www' or 'http:'. This is true because os.startfile(url) apparently only works if above is true, as required for the Start/Run box to recognize an entry as a url. In particular, I have Firefox as default and 'www.google.com' and 'http://bugs.python.org' get opened in Firefox (new tab as requested). However, 'google.com' and 'bugs.python.org' open with IE after some delay. [Start/run either opens with Firefox or reports 'cannot find'.] - In the longer run, what I would really like is for webbrowser to be better at using the default or finding executables. I thought of adding 'http://' if not present but that would disable opening files in a file browser. I suspect there is a registry entry but do not know what it is. That would also pick up new browswers like Chrome. It seems to me that the current behavior is a 'limitation' in this code: # Detect some common Windows browsers, fallback to IE iexplore = os.path.join(os.environ.get(PROGRAMFILES, C:\\Program Files), Internet Explorer\\IEXPLORE.EXE) for browser in (firefox, firebird, seamonkey, mozilla, netscape, opera, iexplore): if _iscommand(browser): register(browser, None, BackgroundBrowser(browser)) Firefox is not being recognized as a command because _iscommand('firefox') does not not see firefox.exe as an executable because it only checks _isexecutable() in the hodgepodge list of paths in PATH. At one time (but no longer), executables were ofter put in c:/windows, which by default is in PATH. Since you hardcoded the default real path for iexplore (C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE), you could do the same for other programs: firefox = os.path.join(os.environ.get(PROGRAMFILES, C:\\Program Files), Mozilla Firefox\\firefox.exe) -- assignee: georg.brandl components: Library (Lib) messages: 124949 nosy: georg.brandl, terry.reedy priority: normal severity: normal stage: needs patch status: open title: Improve webbrowser.open doc (and, someday, behavior?) versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6285] Silent abort on XP help document display
Terry J. Reedy tjre...@udel.edu added the comment: webbrowser appears to be designed to return True/False if it does/or not open a browser window (regardless of site response). (I opened #10799 for a doc addition.) I believe an exception would likely indicate a bug therein. So I only wrapped the Windows startfile call (and only catch WindowsError), which could fail with any bad entry, and not just one left over from a previous install. This patch should make the behavior on Windows much like on other systems: display message and move on. I have (yet) not tested this (but may try to), but take Scott's and Amaury's claims that the message call is correct. I will commit in a week if there are no objections. -- assignee: - terry.reedy keywords: +patch stage: - commit review type: - behavior versions: +Python 2.7, Python 3.2 Added file: http://bugs.python.org/file20199/z6285.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6285 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2710] error: (10035, 'The socket operation could not complete without blocking')
Terry J. Reedy tjre...@udel.edu added the comment: If there is no verification that there is a bug in 2.7/3.1,2, then I think this should be closed. -- nosy: +terry.reedy versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2710 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10771] descriptor protocol documentation has two different definitions of owner class
Terry J. Reedy tjre...@udel.edu added the comment: For future reference, the 'trunk' branch was frozen with the release of 2.7 in June 2010. However, this particular text is unchanged since in 2.7.1 and still in 3.2b2 (except for removal of 'new style'.) -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10772] Several actions for argparse arguments missing from docs
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +bethard versions: +Python 3.2 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10772 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf
Terry J. Reedy tjre...@udel.edu added the comment: Requests for information should go to python-list or other support forums. That said, does the response settle this issue, so that it can be closed, or is there still a claim that something should be changed in the Python repository? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10782 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10786] unittest.TextTextRunner does not respect redirected stderr
Terry J. Reedy tjre...@udel.edu added the comment: Since the current behavior matches the current doc, class unittest.TextTestRunner(stream=sys.stderr, descriptions=True, verbosity=1, runnerclass=None, warnings=None) A basic test runner implementation which prints results on standard error. ... this is a feature change request, not a bug report. Hence, the change should not be backported, lest it surprise someone. One could even question whether the change should be introduced now, but is does seem rather minor. That aside, the doc needs to be changed and a version-changed note added. Something like class unittest.TextTestRunner(stream=None, descriptions=True, verbosity=1, runnerclass=None, warnings=None) A basic test runner implementation. If *stream* is the default None, results go to standard error. ... Version changed 3.2: default stream determined when class is instantiated rather than when imported. -- nosy: +terry.reedy type: behavior - feature request versions: -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10786 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10787] [random.gammavariate] Add the expression of the distribution in a comprehensive form for random.gammavariate
Terry J. Reedy tjre...@udel.edu added the comment: From reading the Wikipedia article, I might conclude that beta = 1/theta, but from reading random.py, beta=theta. I think this much should be clarified, but without giving the formula in a hard to read text form. Perhaps the random doc should give reference to the much more complete numpy.random (and Wikipedia and/or Mathworld) entries rather than merely 'any statistics text' (many of which will not describe all). -- nosy: +terry.reedy versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10787 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10789] Lock.acquire documentation is misleading
Terry J. Reedy tjre...@udel.edu added the comment: Since threading is written in Python, one might expect Lock to be written in Python and its methods to accept keywords. However, threading.py (3.2) has _acquire_lock = _thread.acquire_lock Lock = _aquire_lock so threading.Lock objects are C-coded _thread.lock objects and hence *might* not accept keyword args. In 3.1: lock.acquire([waitflag]) # same 2.7 Lock.acquire(blocking=True) # [blocking=1] in 2.7 Indeed the first is correct. from threading import Lock l=Lock() l.acquire(blocking=True) Traceback (most recent call last): File pyshell#2, line 1, in module l.acquire(blocking=True) TypeError: acquire() takes no keyword arguments l.acquire(True) True r87596, r87596 In 3.2: lock.acquire(waitflag=1, timeout=-1) Lock.acquire(blocking=True, timeout=-1) The edit in 3.2 is actually correct from threading import Lock l=Lock() l.acquire(blocking=True) True l.acquire(timeout=1) False _thread.lock.acquire now accepts keywords. -- assignee: d...@python - terry.reedy nosy: +terry.reedy resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10789 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10794] Infinite recursion while garbage collecting loops indefinitely
Terry J. Reedy tjre...@udel.edu added the comment: 2.6 is finished except for possible security patches. This should be verified in a current release, preferably 3.2 -- nosy: +terry.reedy stage: - needs patch versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10794 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6285] Silent abort on XP help document display
Changes by Terry J. Reedy tjre...@udel.edu: Removed file: http://bugs.python.org/file20199/z6285.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6285 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6285] Silent abort on XP help document display
Terry J. Reedy tjre...@udel.edu added the comment: I verified the bug by creating a copy of idlelib/help.txt, making the new help entry, testing it, deleting the copy, and retesting -- IDLE silently disappears. (A copy is necessary because IDLE checks that the file exists and gives a similar message as in the patch before posting the new menu item.) I decided that since a file can get renamed, moved, or deleted for various reasons, failure to open it should be caught. I them tested my patch, found and fixed an typo-error (yes, testing is good even for simple patches!), found and fixed another bug in one of the two functions, and committed. r87598, r97599, r87600 -- resolution: - fixed status: open - closed Added file: http://bugs.python.org/file20209/z6285.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6285 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6285] Silent abort on XP help document display
Terry J. Reedy tjre...@udel.edu added the comment: Bug and fix also apply to missing Idlelib/help.txt. r87601 News entry for 3.2. Thanks Scott. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6285 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10789] Lock.acquire documentation is misleading
Terry J. Reedy tjre...@udel.edu added the comment: OK, I will add defaults in the texts and condense them a bit at the same time. Will post patches for review. Arguments that can't be given as kwargs are presented with brackets. I think this should be stated in the introduction to the Lib manual, along with any other conventions a reader should know. If you agree, one of us can open an issue for this. -- resolution: fixed - stage: committed/rejected - needs patch status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10789 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8350] Document lack of support for keyword arguments in C functions
Terry J. Reedy tjre...@udel.edu added the comment: I think that the warning that things are not always as they seem should be repeated in the front of the library manual where the pseudo-arg names are actual used, so the library manual stands on its own. In any case, I believe a lot of people use the lib ref without reading and remembering every detail of the language ref. -- nosy: +terry.reedy versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8350 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8350] Document lack of support for keyword arguments in C functions
Terry J. Reedy tjre...@udel.edu added the comment: If there is no indication in the lib manual as to which parameter names and defaults are real and which are fake, then the safe guideline is to never use keywards for library functions and methods and always pass everything positionally. Slightly more complicated is to be aware of which classes and modules are Python versus C coded. (If needed, change for module.py in /Lib.) For some modules, one can take a cue from doc examples that use keywords. Otherwise, each person has to experiment for himself and check each TypeError messages to determine whether it arises from a misspelling or a hidden limitation. And maybe go through the same process a year later after forgetting. We've lived without this spec for almost twenty years, Yes, and people have been stumbling on this and complaining for probably just as long. Since []s are no longer used in the doc to indicate 'optional', they can and are being used to indicate 'position-only'. Specify in the introduction, where notation should be explained, that the limitation is only for current CPython and may be changed in the future or be different for other implementations. However In my opinion, the real solution is to remove the limitation. Since the language spec says args can be passed by keyword as well as by position, make it be that way for everything we distribute. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8350 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10789] Lock.acquire documentation is misleading
Terry J. Reedy tjre...@udel.edu added the comment: I responded to the general questions on #8350. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10789 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com