[issue17221] Resort Misc/NEWS

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: Serhiy, can you update and commit the patch? A new IDLE section would be especially useful for #17506. -- ___ Python tracker ___ _

[issue17506] Improve IDLE news handling

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: Setting #17221 as a dependency. Once that is fixed it would be good to keep IDLE entries in Misc/NEWS, and copy them in Lib/idlelib/NEWS.txt before the release. -- dependencies: +Resort Misc/NEWS ___ Python tracker

[issue17625] IDLE regression -- Search and Replace Window doesn't automatically clear

2013-04-03 Thread Roger Serwy
Roger Serwy added the comment: The attached patch restores the original behavior. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file29674/issue17625.patch ___ Python tracker

[issue15964] SyntaxError in asdl when building 2.7 with system Python 3

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: Do you want to provide a patch and test that it works? -- ___ Python tracker ___ ___ Python-bugs-list

[issue17221] Resort Misc/NEWS

2013-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Has anyone checked that the last patch is basically correct? Which is to say, does every entry removed get put back someplace? I tried to import the last patch, NEWS-3.4_3.patch 73/74 chumks were applied, 1 rejected, which can be hand edited. I am willing to do

[issue6743] Add function compatible with print to pprint module

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: > But then, it doesn't have anything similar to print() It has the same signature. Isn't that the point of the whole issue? -- ___ Python tracker ___

[issue17221] Resort Misc/NEWS

2013-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: That was easy. The .patch has a space at the end of this line: - Issue #17028: Allowed Python arguments to be supplied to the Windows which the file, of course, does not. That removed and it applies cleanly. -- ___ Py

[issue1442493] IDLE shell window gets very slow when displaying long lines

2013-04-03 Thread Roger Serwy
Roger Serwy added the comment: The only reason that the IDLE shell is slow is due to the shell's text widget being configured to have wrap="char". If we manually wrapped the output then the shell responds very quickly to rendering really long strings. The attached proof-of-concept patch (again

[issue17625] IDLE regression -- Search and Replace Window doesn't automatically clear

2013-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks. Please go ahead and apply it. I'm teaching some Python classes right now using the 2.7.4rc1 and the students are tripping over the new behavior. -- priority: normal -> high ___ Python tracker

[issue17221] Resort Misc/NEWS

2013-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is also this double entry before and after the patch. This is current patch with space and duplicate removed. - Issue #15116: Remove references to appscript as it is no longer being supported. - Issue #15116: Remove references to appscript as it is no

[issue17625] IDLE regression -- Search and Replace Window doesn't automatically clear

2013-04-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +benjamin.peterson, georg.brandl, larry priority: high -> release blocker ___ Python tracker ___ _

[issue17506] Improve IDLE news handling

2013-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I put 1 or 2 items in idlelib/NEWS, but it does not really matter which way they go. I guess the greater separation in Misc/NEWS says they should go there first, as moving to idlelib would delete reliease info. I will move the one item over sometime, maybe aft

[issue8913] Document that datetime.__format__ is datetime.strftime

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: I left another review with a couple of suggestions. The patch is OK, it's just that the examples look a bit meaningless to me. -- stage: -> patch review versions: +Python 3.4 -Python 3.2 ___ Python tracker

[issue17625] IDLE regression -- Search and Replace Window doesn't automatically clear

2013-04-03 Thread Roger Serwy
Roger Serwy added the comment: If students are having trouble, then it should be changed. This behavior is also in 3.2. Do applied patches in 2.7 tip go toward 2.7.4 or 2.7.5? (I don't know the mechanics of the release candidate process just yet.) -- stage: patch review -> commit rev

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue17629] Expose string width to Python

2013-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: ord(max(s)) == max(map(ord,s)) == ord(max(s, key=ord)) Using a*3000 and mental counting, the first is clearly fastest (about 2 seconds) with a 3.4 build, which has the optimized string comparison patches from last October. The reduction to 3 categories take

[issue13966] Add disable_interspersed_args() to argparse.ArgumentParser

2013-04-03 Thread paul j3
paul j3 added the comment: The optparse page gives a reason for disable_interspersed_args(): "Use this if you have a command processor which runs another command which has options of its own and you want to make sure these options don’t get confused. For example, each command might have a diff

[issue16399] argparse: append action with default list adds to list instead of overriding

2013-04-03 Thread paul j3
paul j3 added the comment: The test file, test_argparse.py, has a test case for this: 'class TestOptionalsActionAppendWithDefault' argument_signatures = [Sig('--baz', action='append', default=['X'])] successes = [ ('--baz a --baz b', NS(baz=['X', 'a', 'b'])), ] -- no

[issue15964] SyntaxError in asdl when building 2.7 with system Python 3

2013-04-03 Thread Roger Serwy
Roger Serwy added the comment: The attached patch allows the same parser code to run under Python 2 and Python 3. I'm not sure how to test it other than by running the test suite which passed. -- Added file: http://bugs.python.org/file29677/patch_2and3.py _

[issue17625] IDLE regression -- Search and Replace Window doesn't automatically clear

2013-04-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'll handle it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue17625] IDLE regression -- Search and Replace Window doesn't automatically clear

2013-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset edcfd18840cc by Benjamin Peterson in branch '2.7': close search and replace dialog after it is used (closes #17625) http://hg.python.org/cpython/rev/edcfd18840cc New changeset 36130b84cd22 by Benjamin Peterson in branch '3.3': close search and repla

[issue17625] IDLE regression -- Search and Replace Window doesn't automatically clear

2013-04-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: Over to Georg for 3.3 cherry picking. -- assignee: roger.serwy -> georg.brandl ___ Python tracker ___ ___

[issue17629] Expose string width to Python

2013-04-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is an implementation detail we don't want to expose. (It might change someday!) -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13966] Add disable_interspersed_args() to argparse.ArgumentParser

2013-04-03 Thread paul j3
paul j3 added the comment: Oops, I was wrong about this: "Argparse doesn't prohibit all interspersed positionals. You could, for example, have one or more positionals with other nargs that could be interspersed. But the REMAINDER one has to be last." parser.add_argument('a') parser.a

[issue8913] Document that datetime.__format__ is datetime.strftime

2013-04-03 Thread Heikki Partanen
Heikki Partanen added the comment: The examples in the previous patches were trying to show some "real-worldish" use cases, but I admit that they don't fit in that well to the existing examples shown in the docs. The new examples Ezio suggested are more straightforward and better in line with

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Brett. I look forward to this. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bug

[issue1721083] Add File - Reload

2013-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Roger, can you pick this one up? Adding a "reload" option to the file menu benefits IDLE in two ways. First, it allows users to easily discard changes. Second, it helps IDLE play well with reverts and updates in version control systems. In the absence of

[issue17632] IDLE: Add clear-window option to the Shell menu.

2013-04-03 Thread Raymond Hettinger
New submission from Raymond Hettinger: Without a restart-and-clear option, the shell window tends to grow without bound, becoming increasingly lethargic along the way. I've have recurring student requests for this minor feature. -- components: IDLE keywords: easy messages: 186004 nosy:

[issue8913] Document that datetime.__format__ is datetime.strftime

2013-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 40f582a73901 by Ezio Melotti in branch '3.3': #8913: add examples and docs for date/time/datetime.__format__. Patch by Heikki Partanen. http://hg.python.org/cpython/rev/40f582a73901 New changeset 8dd7f7134700 by Ezio Melotti in branch 'default': #

[issue8913] Document that datetime.__format__ is datetime.strftime

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed type: behavior -> enhancement ___ Python tracker

[issue17628] str==str: compare the first and last character before calling memcmp()

2013-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't understand why the patch makes the comparaison much slower, > since most time is supposed to be spend in memcmp()? Because reading the last character evicts useful data from the CPU cache, just before memcmp() reads it again from memory? In other wor

[issue6743] Add function compatible with print to pprint module

2013-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > But then, it doesn't have anything similar to print() > > It has the same signature. Isn't that the point of the whole issue? This is becoming stupid. How about making it the same signature as sum() or max() too? -- __

[issue1721083] Add File - Reload

2013-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Notepad++ has 'Reload from disk' right after New and Open, and I like that explicit wording. 'Revert' is a bit esoteric for beginners. (And I do not see that on the menu now.) Kurt's argument applies to Notepad++ also -- one could close the file and reload fr

<    1   2