[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

[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? -- __

[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

[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

[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': #

[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:

[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

[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

[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

[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

[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.

[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

[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 ___ ___

[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: I'll handle it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[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 _

[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

[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

[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

[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

[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

[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

[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

[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 ___ _

[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
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

[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

[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

[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: 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

[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

[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

[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

[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 ___ _

[issue15331] Codecs docs should explain that the bytes-bytes shorthand aliases are missing

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: Should they just be removed from the table then? -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ _

[issue17572] strptime exception context

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker _

[issue17572] strptime exception context

2013-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3203e083aa7b by Ezio Melotti in branch '3.3': #17572: Avoid chained exceptions while passing bad directives to time.strptime(). Initial patch by Claudiu Popa. http://hg.python.org/cpython/rev/3203e083aa7b New changeset d408c9bd4bf7 by Ezio Melotti

[issue17631] inspect getsource does not display full text of lambda

2013-04-03 Thread Alexey Spiridonov
New submission from Alexey Spiridonov: This happens because the block search algorithm seems not to be handling lambda arguments correctly. $ cat x.py import inspect def a(y): print inspect.getsource(y) print inspect.getsourcelines(y) a( lambda x: x * 3 ) $ p

[issue1222585] C++ compilation support for distutils

2013-04-03 Thread Danek Duvall
Changes by Danek Duvall : -- nosy: +dhduvall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue17615] String comparison performance regression

2013-04-03 Thread Neil Hodgson
Neil Hodgson added the comment: For 32-bit Windows, the code generated for unicode_compare is quite slow. There are either 1 or 2 kind checks in each call to PyUnicode_READ and 2 calls to PyUnicode_READ inside the loop. A compiler may decide to move the kind checks out of the loop and spec

[issue17629] Expose string width to Python

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: max(map(ord, s)) or your str_width(s) are not much more complicated than s.width(), just slower, so it's just a problem of performance. len() is a much more common operation so it makes sense to have a fast built-in function. -- ___

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17629] Expose string width to Python

2013-04-03 Thread Chris Angelico
Chris Angelico added the comment: CPython also knows the length of a string, which means that len(s) is a fast operation. I wouldn't expect anyone to rewrite len() as: def get_string_length(s): length=0 for ch in s: length+=1 return length even though that works. No, we have a built-

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16321] Move eq.h out of stringlib

2013-04-03 Thread STINNER Victor
STINNER Victor added the comment: Issue #17628 proposes a patch which reuses unicode_eq() in PyUnicode_RichCompare. -- ___ Python tracker ___ ___

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

2013-04-03 Thread STINNER Victor
STINNER Victor added the comment: benchmark2: Results on a slower computer. Comparing equal strings is much faster with the patch. Example: equal, 'A', 100 | 945 us (*) | 1.25 ms (+32%) I don't understand why the patch makes the comparaison much slower, since most time is suppos

[issue17629] Expose string width to Python

2013-04-03 Thread STINNER Victor
STINNER Victor added the comment: "This is, on some occasions, useful to know; for instance, when testing string performance, it's handy to be able to very quickly throw something down that, without scanning the contents of all the strings used, can identify the width spread." When you test s

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Brett Cannon
Brett Cannon added the comment: I should mention I have an old implementation at https://code.google.com/p/importers/. -- ___ Python tracker ___

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Brett Cannon
New submission from Brett Cannon: I'm going to write an importer using zipfile and importlib in pure Python. I'm doing this so that (a) there is an importer that relies on zipfile and thus what features it adds over time, (b) to have good example code to point people to when they need to imple

[issue17629] Expose string width to Python

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: Not sure this is a good idea. The fact that CPython knows the width is an implementation detail. The method you suggested might not be too fast but it works, so we would be adding a new function/method just to optimize a fairly uncommon operation that depends

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

2013-04-03 Thread STINNER Victor
STINNER Victor added the comment: Attach the benchmark script. -- Added file: http://bugs.python.org/file29671/bench_unicode_eq.py ___ Python tracker ___

[issue17629] Expose string width to Python

2013-04-03 Thread Chris Angelico
Chris Angelico added the comment: And of course, I make a copy/paste error in a trivial piece of example code. def str_width(s): width=1 for ch in map(ord,s): if ch > 0x: return 4 if ch > 0xFF: width=2 return width -- ___ Python tra

[issue17629] Expose string width to Python

2013-04-03 Thread Chris Angelico
New submission from Chris Angelico: As of PEP 393, a string's width is recorded in its header - effectively, a marker that says whether the highest codepoint in the string is >0x, >0xFF, or <=0xFF. This is, on some occasions, useful to know; for instance, when testing string performance, i

[issue17554] Compact output for regrtest

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: Attached patch shows the "Fetching ..." only in verbose mode. -- Added file: http://bugs.python.org/file29670/issue17554-urlfetch.diff ___ Python tracker ___

[issue17627] Datetime and time doesn't update timezone in a running Win app

2013-04-03 Thread R. David Murray
R. David Murray added the comment: On linux, if you call time.ctime() before and after changing the system /etc/localtime file, the time will be updated without restarting Python. The same applies to datetime.now(). -- nosy: +r.david.murray stage: needs patch ->

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2013-04-03 Thread Trent Nelson
Changes by Trent Nelson : -- nosy: +trent ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue17615] String comparison performance regression

2013-04-03 Thread Neil Hodgson
Neil Hodgson added the comment: For 32-bits whether wchar_t is signed shouldn't matter as Unicode is only 21-bits so no character will be seen as negative. On Windows, wchar_t is unsigned. C11 has char16_t and char32_t which are both unsigned but it doesn't include comparison functions.

[issue17627] Datetime and time doesn't update timezone in a running Win app

2013-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not sure this is a bug, as I don't think it reasonable to expect every time function call to re-initialize the timezone setting. I think you should change this to a request to see if time.tzset can now be made to work on Windows and not unix-only (as docu

[issue17627] Datetime and time doesn't update timezone in a running Win app

2013-04-03 Thread Brian Curtin
Changes by Brian Curtin : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue17568] re: Infinite loop with repeated empty alternative

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: I can reproduce on 3.2.3, but otherwise this work fine in the upcoming 3.2.4 and on 3.3+. -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker

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

2013-04-03 Thread STINNER Victor
STINNER Victor added the comment: According to my benchmark, performances are almost the same with the patch. The major difference is on comparing two strings longer than 10 characters, of the same length, with a common prefix but a different suffix. See attached benchmark for the result. ---

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

2013-04-03 Thread STINNER Victor
New submission from STINNER Victor: In Python 3.4, str==str is implemented by calling memcmp(). unicode_eq() function, used by dict and set types, checks the first byte before calling memcmp(). bytes==bytes uses the same check. Py_UNICODE_MATCH macro checks the first *and* last character befor

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2013-04-03 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou wrote: > It's customary for even innocent changes in ceval to produce small > changes in some benchmarks. It's only really important to consider the > global average. Yes, the float benchmark appears to be particularly sensitive. In the 3.3.0 releas

[issue17094] sys._current_frames() reports too many/wrong stack frames

2013-04-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17263] crash when tp_dealloc allows other threads

2013-04-03 Thread Chris Kaynor
Changes by Chris Kaynor : -- nosy: +DragonFireCK ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2013-04-03 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2013-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > BTW, there's no general slowdown on the Core2 Duo: In the patched version, > the telco benchmark is consistently 4% faster. It's customary for even innocent changes in ceval to produce small changes in some benchmarks. It's only really important to consider th

[issue17470] random.choice should accept a set as input

2013-04-03 Thread Mark Dickinson
Mark Dickinson added the comment: See also issue #7522 (with an identical title!) for previous discussion. -- nosy: +mark.dickinson ___ Python tracker ___ ___

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2013-04-03 Thread Stefan Krah
Stefan Krah added the comment: BTW, there's no general slowdown on the Core2 Duo: In the patched version, the telco benchmark is consistently 4% faster. -- ___ Python tracker ___

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2013-04-03 Thread Stefan Krah
Stefan Krah added the comment: I'm surprised, too, but after a couple of retries the results stay the same. On an i7 there's also a difference, but not quite as large. I'm using b16527f84774.diff, which applies cleanly apart from importlib.h (which I just regenerated). With an increased loop cou

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2013-04-03 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2013-04-03 Thread Mark Shannon
Mark Shannon added the comment: Antoine, Two bytecode examples. For the following function: >>> def f(x): ... try: ... return x ... except: ... pass Without the patch: 2 0 SETUP_EXCEPT 8 (to 11) 3 3 LOAD_FAST0 (x)

[issue17483] Can not tell urlopen not to check the hostname for https connections.

2013-04-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: I shall do it. Just for keeping it clean and it may help when future patches can be merged across branches cleanly. There is no loss IMO. -- ___ Python tracker __

[issue17483] Can not tell urlopen not to check the hostname for https connections.

2013-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: IMO, there's not much point backporting such a simple cleanup, so I'm simply closing the issue. -- stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue16061] performance regression in string replace for 3.3

2013-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: My experiments last September, before this was filed, showed that str.find (index) had most of the relative slowdown of str.replace. I assumed at that time that .replace used .find or .index to find substrings to replace, so that the fix for .replace would in

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2013-04-03 Thread Mark Shannon
Mark Shannon added the comment: Stefan, I tried running your pi_bench (increasing the numer of iterations by x10 to reduce jitter). The run to run variation exceed the difference between the two versions. Here are the fastest of 7 runs on my machine. i3-2370M CPU @ 2.40GHz × 4. linux 64bit. W

[issue5609] Create Unit Tests for nturl2path module

2013-04-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the patch and test coverage. LGTM. I shall verify further and commit it. -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker

[issue17615] String comparison performance regression

2013-04-03 Thread STINNER Victor
STINNER Victor added the comment: "wmemcmp is widely available but is based on wchar_t so is for different widths on Windows and Unix. On Windows it would handle the 2:2 case." I don't know if wmemcmp() can be used if wchar_t type is signed. Is there an OS with signed wchar_t? If yes, we need

[issue17627] Datetime and time doesn't update timezone in a running Win app

2013-04-03 Thread CM
New submission from CM: On Windows (tested on XP), the datetime module (and, as reported online in [1], time module) apparently gets the timezone only when a Python instance first starts, but then never updates the timezone during the life of that Python instance. So, if the user changes the

[issue17626] set's __isub__ doesn't support non-sets.

2013-04-03 Thread Georg Brandl
Georg Brandl added the comment: Assigning to Raymond for confirmation, but IIRC this is by design. -- assignee: -> rhettinger nosy: +georg.brandl, rhettinger status: open -> pending ___ Python tracker

[issue17626] set's __isub__ doesn't support non-sets.

2013-04-03 Thread Roy Wellington
New submission from Roy Wellington: The following: s = set(range(10)) s -= (1, 2, 3) raises a TypeError. Yet the following, which is more verbose and equivalent, succeeds: s.difference_update((1, 2, 3)) Under the hood, __isub__ calls difference_update to do its work. Unfortunately, __isub_

[issue15940] Time module: effect of locale

2013-04-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker ___ ___

[issue15940] Time module: effect of locale

2013-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3daa20ce817e by Terry Jan Reedy in branch '3.3': Issue #15940: NEWS entry http://hg.python.org/cpython/rev/3daa20ce817e New changeset be9273375b61 by Terry Jan Reedy in branch '2.7': Issue #15940: NEWS entry http://hg.python.org/cpython/rev/be927337

[issue5609] Create Unit Tests for nturl2path module

2013-04-03 Thread Thomas Fenzl
Thomas Fenzl added the comment: The authoritative implementation of this functionality would be Microsoft's PathCreateFromUrl (http://msdn.microsoft.com/en-us/library/windows/desktop/bb773581%28v=vs.85%29.aspx) and UrlCreateFromPath (http://msdn.microsoft.com/en-us/library/windows/desktop/bb7

[issue17484] add tests for getpass

2013-04-03 Thread Thomas Fenzl
Thomas Fenzl added the comment: I signed the contributor agreement during pycon, with the pdf sent to me on March 19th, 15:25 PDT -- ___ Python tracker ___ _

[issue15940] Time module: effect of locale

2013-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset ee5add45bf9d by Terry Jan Reedy in branch '3.3': Issue #15940: Specify effect of locale on time functions. http://hg.python.org/cpython/rev/ee5add45bf9d New changeset 5ffb808683e1 by Terry Jan Reedy in branch '2.7': Issue #15940: Specify effect of l

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2013-04-03 Thread Phil Connell
Phil Connell added the comment: The problem appears to be more general. zipimport fails for deeper hierarchies, even with directory entries. With the supplied patch (zipimport-issue14905-2.patch) I see the following: $ unzip -l foo.zip Archive: foo.zip Length DateTimeName -

[issue13249] argparse.ArgumentParser() lists arguments in the wrong order

2013-04-03 Thread Mark Lawrence
Mark Lawrence added the comment: Can someone please review the latest patch and commit if appropriate. -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue16895] Batch file to mimic 'make' on Windows

2013-04-03 Thread Zachary Ware
Zachary Ware added the comment: I was rather off about kill_python, wasn't I? Anyway, I've finally gotten another version put together that I'd like to get comments on. Major differences between this patch and the previous one, in no particular order: - Add a 'configure.bat' script to increa

[issue17615] String comparison performance regression

2013-04-03 Thread Georg Brandl
Georg Brandl added the comment: Reopening for consideration of using wmemcmp(). -- nosy: +georg.brandl status: closed -> open ___ Python tracker ___ _

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2013-04-03 Thread Martin Morrison
Changes by Martin Morrison : -- nosy: +isoschiz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2013-04-03 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1634774] locale 1251 does not convert to upper case properly

2013-04-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: With Python3 .upper() is locale-independent for unicode and bytes strings. For serious work with non-ascii text Python3 is strongly recommended anyway, so I suggest to close this issue. -- resolution: -> wont fix status: open -> pending

[issue14143] test_ntpath failure on Windows

2013-04-03 Thread R. David Murray
R. David Murray added the comment: Possibly. However, it's an intermittent buildbot failure, so it is a bit difficult to know if it fixed or not. We really need a way to track intermittent failures so we can figure out when they have gone away :) -- nosy: +r.david.murray ___

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2013-04-03 Thread Mark Lawrence
Mark Lawrence added the comment: @harobed if you still have a problem please provide more data as requested in msg138692. -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue8639] Allow callable objects in inspect.getfullargspec

2013-04-03 Thread Mark Lawrence
Mark Lawrence added the comment: Would someone please review the patch file as it's out of my league. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue14143] test_ntpath failure on Windows

2013-04-03 Thread Mark Lawrence
Mark Lawrence added the comment: I'm guessing this is a one off. As nobody is screaming or shouting can it be closed? -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue12558] Locale-dependent exception for float width argument to Tkinter widget constructor

2013-04-03 Thread Mark Lawrence
Mark Lawrence added the comment: FWIW this can be reproduced on Windows Vista with Python 3.3.1rc1. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue1634774] locale 1251 does not convert to upper case properly

2013-04-03 Thread R. David Murray
R. David Murray added the comment: No, the issues with locale on Windows have to do with the locale names. Locale otherwise works fine on windows. -- nosy: +r.david.murray ___ Python tracker ___

[issue1634774] locale 1251 does not convert to upper case properly

2013-04-03 Thread Mark Lawrence
Mark Lawrence added the comment: Am I correct in saying that fixing this wouldn't help much as there are known issues with locales on Windows, e.g. #10466 ? -- ___ Python tracker

  1   2   >