[issue5345] cStringIO class name typo

2009-04-02 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: This is not a typo. cStringIO.StringIO is a factory function that returns either a cStringO object (for writing) or cStringI (for reading). If this behavior causes a problem to you, then consider using StringIO.StringIO. Alternatively, you could upgrade t

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file13594/pickle_batch_dict_exact_py3k-2.diff ___ Python tracker ___ __

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file13593/pickle_batch_dict_exact_py3k.diff ___ Python tracker ___ ___ P

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Oops again, I just remarked that the comment for batch_dict_exact refers to batch_dict as being above, but I copied batch_dict_exact before batch_dict. Here's a good patch (hopefully) that puts batch_dict_exact at the right place. -- keywords: -p

[issue5671] Speed up pickling of lists in cPickle

2009-04-02 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue5671] Speed up pickling of lists in cPickle

2009-04-02 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Here's a patch for py3k. I also added a special-case for 1-item lists. -- nosy: +alexandre.vassalotti Added file: http://bugs.python.org/file13595/pickle_batch_list_exact_py3k.diff ___ Python tracker

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Oops, I forgot to add the comment on top of batch_dict_exact in the patch. Here is a better patch. -- Added file: http://bugs.python.org/file13594/pickle_batch_dict_exact_py3k-2.diff ___ Python tracker

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I ported the patch to py3k. In addition, I added a special-case when the dict contains only one item; you probably want this special-case in the trunk version as well. -- nosy: +alexandre.vassalotti Added file: http://bugs.python.org/file13593/pic

[issue5672] Implement a way to change the python process name

2009-04-02 Thread Marcelo Fernández
Marcelo Fernández added the comment: Uhm... ok, (looking at issue 4015) I agree with that method at some point (tough is not exactly the same thing)... but only if the launcher will not be for Windows only, and that solution would be consistent across al platforms... Just to know, there is no p

[issue5665] Add more pickling tests

2009-04-02 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Overall, the patch looks good. I haven't reviewed the patch thoroughly yet, but there is a few things I am not sure about. First, why do you bother supporting 2.4 (i.e. with a copy of run_with_locale) in a patch aimed at 2.7? In test_many_puts_and_gets()

[issue5675] string module requires bytes type for maketrans, but calling method on regular string does not

2009-04-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: This seems to have been intentional. I'm assigning it to Georg since he made the commit. -- assignee: -> georg.brandl nosy: +benjamin.peterson, georg.brandl ___ Python tracker

[issue5673] Add timeout option to subprocess.Popen

2009-04-02 Thread Reid Kleckner
Reid Kleckner added the comment: I'd like some feedback on this patch. Is the API acceptable? Would it be better to throw an exception in wait() instead of returning None? What should communicate() return if it times out? I can't decide if it should try to return partial output, return Non

[issue5676] Fix "make clean" in py3k/trunk

2009-04-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: @test is the file used by tests. It shouldn't be left around by tests, so if it is, I think you should explicitly has to remove it. -- nosy: +benjamin.peterson ___ Python tracker

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2009-04-02 Thread Robert Xiao
Robert Xiao added the comment: OK, it's not a memory leak, rather, it's something leaking from the files. However, this still winds up filling the affected file full of garbage, which is quite undesirable (and, I think, quite likely to be unwanted behaviour, considering that *some* read methods

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2009-04-02 Thread Robert Xiao
New submission from Robert Xiao : (tested and verified on Windows and Solaris SPARC) Running this code in Python 2.4, 2.5 or 2.6 (all minor versions) produces garbage. f=open("anyfile","w") f.write("garbage") f.readline() Mac OS X and Linux appear to simply throw an "IOError: [Errno 9] Bad fil

[issue5676] Fix "make clean" in py3k/trunk

2009-04-02 Thread Larry Hastings
New submission from Larry Hastings : "make clean" fails in my tree. There's an inscrutable new directory, "@test", which is chmod 400, and therefore "find" isn't allowed to descend into it, so it fails and aborts the clean early. I don't know what the deal is here, but I patched the rules for "

[issue1143] Update to latest ElementTree in Python 2.7

2009-04-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm looking forward to it. Thanks F/ -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-

[issue5675] string module requires bytes type for maketrans, but calling method on regular string does not

2009-04-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5435] test_httpservers on Debian Testing

2009-04-02 Thread Michael Zamot
Michael Zamot added the comment: yes it ran with normal user :-) thanks now im enjoying python 3k ;-) 2009/3/23 Facundo Batista > > Facundo Batista added the comment: > > CGI tests shouldn't be run as root, it seems, as it breaks the inherent > protection. > > -- > nosy: +facundobati

[issue1538691] Patch cElementTree to export CurrentLineNumber

2009-04-02 Thread Fredrik Lundh
Fredrik Lundh added the comment: In the upstream 1.0.6, the ParseError exception has a position attribute that contains a (line, column) tuple. -- ___ Python tracker ___ _

[issue1143] Update to latest ElementTree in Python 2.7

2009-04-02 Thread Fredrik Lundh
Fredrik Lundh added the comment: ET 1.3 is still in alpha, though. Hopefully, that'll sort itself out over the next few weeks. -- ___ Python tracker ___

[issue5675] string module requires bytes type for maketrans, but calling method on regular string does not

2009-04-02 Thread MechPaul
New submission from MechPaul : I was making a simple Caesarian cipher when this issue came up. #Following code here >>> import string >>> CAESER_SHIFT = 13 >>> TranslationTableUpper = [string.ascii_uppercase[(index + CAESER_SHIFT) % 26] for index in range(26)] >>> TranslationTableLower = [strin

[issue5643] test__locale fails with RADIXCHAR on Windows

2009-04-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is now failing because an ImportError in a test doesn't cause the test to be skipped like previously. Someone will have to figure out what part of test__locale are applicable to Windows. -- nosy: +benjamin.peterson priority: -> high __

[issue5672] Implement a way to change the python process name

2009-04-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: There was a similar request in Java bug database: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6299778 And I'd follow the same path: provide a way to build a launcher - a .exe file that simply starts python with the given script. I suggest to clos

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine: pickletester.py:test_newobj_generic() appears to test dict > subclasses, though in a roundabout-ish way. I don't know of any tests > for dict subclasses in the C level sense (ie, PyDict_Check() vs > PyDict_CheckExact()). I can add more explicit tests

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch produces different output for an empty dict: a sequence "MARK SETITEMS" is written, which is useless and wastes 2 bytes. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue2578] additional unittest type equality methods

2009-04-02 Thread Michael Foord
Michael Foord added the comment: No - you catch self.failureException rather than AssertionError directly. I use unittest precisely because of the rich failure information from the assert methods - particularly the new ones in this patch! -- ___ Pyt

[issue2578] additional unittest type equality methods

2009-04-02 Thread Skip Montanaro
Skip Montanaro added the comment: >> You don't, but use of assert statements seems a hell of a lot more >> Pythonic to me than all the assert* or fail* method names which I can >> never remember. Antoine> 1. they are optimized away in "-Oxxx" mode As far as I can tell for Python it

[issue1726196] Windows Build Warnings

2009-04-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This was indeed fixed a long time ago -- nosy: +amaury.forgeotdarc resolution: -> out of date status: open -> closed ___ Python tracker __

[issue3169] email/header.py doesn't handle Base64 headers that have been insufficiently padded.

2009-04-02 Thread Tony Nelson
Changes by Tony Nelson : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Collin Winter
Collin Winter added the comment: Antoine: pickletester.py:test_newobj_generic() appears to test dict subclasses, though in a roundabout-ish way. I don't know of any tests for dict subclasses in the C level sense (ie, PyDict_Check() vs PyDict_CheckExact()). I can add more explicit tests for Pytho

[issue3169] email/header.py doesn't handle Base64 headers that have been insufficiently padded.

2009-04-02 Thread Tony Nelson
Tony Nelson added the comment: Postel's law suggests that, as bad padding can be repaired, decode_header ought to do so. The patch does that, adds a test for it, and alters another test to still properly fail on really bad encoded data. The test doesn't check a single character encoded string,

[issue5665] Add more pickling tests

2009-04-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +alexandre.vassalotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue5582] Incorrect DST transition on Windows

2009-04-02 Thread acummings
Changes by acummings : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5672] Implement a way to change the python process name

2009-04-02 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue3609] does parse_header really belong in CGI module?

2009-04-02 Thread Senthil
Senthil added the comment: The attached patch takes care of relocating the parse_header function from cgi module to email.header module in Python2.7. Few comments: 1)parse_multipart need not be moved from cgi, because it is discouraged to use parse_multipart and it is advised to use FieldStora

[issue2578] additional unittest type equality methods

2009-04-02 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Guido - the __ge__/__le__ parallel does actually help me remember the current names. -- ___ Python tracker ___

[issue5674] distutils fails to find Linux libs (lib.....so.n)

2009-04-02 Thread Jim Garrison
New submission from Jim Garrison : Trying to build 3.1a1 on Fedora 9, the following extensions get skipped even though the requisite packages are installed _dbm _gdbm _hashlib _sqlite3 _ssl bz2 readline zlib

[issue2396] Backport memoryview object to Python 2.7

2009-04-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r71070. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pyth

[issue5673] Add timeout option to subprocess.Popen

2009-04-02 Thread Reid Kleckner
Reid Kleckner added the comment: Ugh. I made the assumption that there must be some natural and easy way to wait for a child process with a timeout in C, and it turns out it's actually a hard problem, which is why this isn't already implemented. So my initial hack for solving this problem in m

[issue5672] Implement a way to change the python process name

2009-04-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- priority: -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5671] Speed up pickling of lists in cPickle

2009-04-02 Thread Collin Winter
Collin Winter added the comment: No, we haven't started looking at other serialization formats yet. Marshal will probably be my next target, with json being a lower priority. There were enough instances of low-hanging fruit in cPickle that I didn't go looking at the other implementations for ide

[issue5664] 2to3 wont convert Cookie.Cookie properly

2009-04-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/4/1 Senthil : > > New submission from Senthil : > > In 2.7 code have: > import Cookie > c = Cookie.Cookie('abc') > > 2to3 would do: > c = http.cookies.Cookie('abc') > > This is wrong as there is no class as Cookie in http.cookies. It should > translated

[issue5671] Speed up pickling of lists in cPickle

2009-04-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Out of curiousity, are you also benchmarking against marshal and json? ISTM, that there is always one of them that will be the fastest and that the others should mimic that approach. -- nosy: +rhettinger ___ Pyth

[issue5142] pdb feature request: Ability to skip standard lib modules and other selected packages/modules

2009-04-02 Thread Maru Newby
Maru Newby added the comment: Added a skip keyword argument to Bdb and Pdb class constructors to allow skipping of modules based on a list of glob-style matches (see fnmatch), as per the following example: import pdb;Pdb(skip=['django.command*']).set_trace() -- keywords: +patch nosy: +

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's a test case for your recipe dataset = [9] * 100 + [0,1,2,3,4,5,6,8] for i in range(1, 20): print nsmallest(i, dataset, ties=True) -- ___ Python tracker _

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
George Sakkis added the comment: > I recommend posting an ASPN recipe. That's what I do with a lot of > ideas that are under development or that don't clear the bar for going > into the standard library. Will do. Thanks for the quick turnaround! -- ___

[issue5630] Update CObject API so it is safe and regular

2009-04-02 Thread Larry Hastings
Larry Hastings added the comment: Having slept on it, I agree that we only need one API to create an object. Since passing in a "context" will be relatively rare, users who need that can use PyCObject_SetContext(). I'll remove PyCObject_FromVoidPtrWithContext() in my next patch. -- _

[issue5673] Add timeout option to subprocess.Popen

2009-04-02 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1641] asyncore delayed calls feature

2009-04-02 Thread Jim Fulton
Jim Fulton added the comment: On Apr 2, 2009, at 3:35 PM, Josiah Carlson wrote: > > Josiah Carlson added the > comment: > > I'm not defending the documentation, I'm merely reposting it. > > The documentation for asyncore says, "The full set of methods that can > be overridden in your subclas

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Certainly; see http://bugs.python.org/issue5671 for the list version. > It doesn't make as big an impact on the benchmark, though. How about splitting the benchmark in parts: - (un)pickling lists - (un)pickling dicts - (un)pickling sets (etc.) -- __

[issue5673] Add timeout option to subprocess.Popen

2009-04-02 Thread Reid Kleckner
New submission from Reid Kleckner : I was looking for a way to run a subprocess with a timeout. While there are a variety of solutions on Google, I feel like this functionality should live in the standard library module. Apparently Guido thought this would be good in 2005 but no one did it: htt

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, an easy way to pare down millions of entries to dozens is to use a bigger heap: from heapq import nsmallest def nsmallest_with_ties(n, iterable, scale=2): ext = n * scale s = nsmallest(ext, iterable) lastplace = s[n-1] if s[-1] == last

[issue1555570] email parser incorrectly breaks headers with a CRLF at 8192

2009-04-02 Thread Tony Nelson
Tony Nelson added the comment: The OP's diagnosis of a buffer boundary problem is correct, but incomplete. The problem can be reproduced by calling feedparser FeedParser.feed() directly, or as my patch test does, by calling BufferedSubFile.push() directly. The proper fix is for push() to treat

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Collin Winter
Collin Winter added the comment: On Thu, Apr 2, 2009 at 12:20 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > By the way, could the same approach be applied to lists and sets as well? Certainly; see http://bugs.python.org/issue5671 for the list version. It doesn't make as

[issue5672] Implement a way to change the python process name

2009-04-02 Thread Marcelo Fernández
New submission from Marcelo Fernández : As python gains more popularity, more and more applications run under CPython in a common user desktop. The problem is that if a user has 2 or more python apps running there is no way to identify them correctly from the generic "Task/Process Manager Applica

[issue1641] asyncore delayed calls feature

2009-04-02 Thread Josiah Carlson
Josiah Carlson added the comment: I'm not defending the documentation, I'm merely reposting it. The documentation for asyncore says, "The full set of methods that can be overridden in your subclass follows:" The documentation for asynchat says, "To make practical use of the code you must sub

[issue5671] Speed up pickling of lists in cPickle

2009-04-02 Thread Collin Winter
New submission from Collin Winter : The attached patch adds another version of cPickle.c's batch_list(), batch_list_exact(), which is specialized for "type(x) is list". This provides a nice performance boost when pickling objects that use lists. This is similar to the approach taken in issue 5670

[issue2578] additional unittest type equality methods

2009-04-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > You don't, but use of assert statements seems a hell of a lot more Pythonic > to me than all the assert* or fail* method names which I can never remember. Two problems: 1. they are optimized away in "-Oxxx" mode 2. they don't provide good reporting in case of

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, could the same approach be applied to lists and sets as well? -- ___ Python tracker ___

[issue2578] additional unittest type equality methods

2009-04-02 Thread Skip Montanaro
Skip Montanaro added the comment: Michael> Why do you need the assert methods to go away in order to use Michael> assert statements? You don't, but use of assert statements seems a hell of a lot more Pythonic to me than all the assert* or fail* method names which I can never remember. S -

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I recommend posting an ASPN recipe. That's what I do with a lot of ideas that are under development or that don't clear the bar for going into the standard library. -- ___ Python tracker

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Without taking a very detailed look, the patch looks good. Are there already tests for pickling of dict subclasses? Otherwise, they should be added. -- nosy: +pitrou ___ Python tracker

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
Changes by George Sakkis : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
George Sakkis added the comment: > That should have been: last = result[-1]; [last]*s.count(last). Nice, though that's not equivalent if the objects' identity is significant for what happens next (which typically is the case when ties are preserved). The sorted/bisect solution doesn't have thi

[issue2578] additional unittest type equality methods

2009-04-02 Thread Michael Foord
Michael Foord added the comment: Why do you need the assert methods to go away in order to use assert statements? -- ___ Python tracker ___ __

[issue2578] additional unittest type equality methods

2009-04-02 Thread Skip Montanaro
Skip Montanaro added the comment: Am I the only person who wishes all the assert* and fail* methods would simply go away in favor of simply using the assert statement? Skip -- ___ Python tracker __

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
George Sakkis added the comment: > In that case, I think it best to leave nsmallest/nlargest as-is. By > appending ties to the result, it becomes harder to implement policy > decisions on what to do with those ties (perhaps listing them separately > or splitting their prizes n-ways). I woul

[issue5659] logging.FileHandler encoding parameter does not work as expected

2009-04-02 Thread Kuno
Kuno added the comment: Ah! Good to know that it has been fixed already. Thank you. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Collin Winter
New submission from Collin Winter : The attached patch adds another version of cPickle.c's batch_dict(), batch_dict_exact(), which is specialized for "type(x) is dict". This provides a nice performance boost when pickling objects that use dictionaries: Pickle: Min: 2.216 -> 1.858: 19.24% faster

[issue4847] csv fails when file is opened in binary mode

2009-04-02 Thread R David Murray
R David Murray added the comment: On Thu, 2 Apr 2009 at 17:55, Skip Montanaro wrote: > This thread is getting a bit long. Can someone summarize how the expected > usage of the csv module is supposed to change? If I read things correctly, > instead of requiring (in the general case) that csv fi

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2009-04-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Kurt, do not type hard returns except at the end of code lines and paragraphs. As I said in my previous comment, the HOME key works as I said both in 2.5 AND in 3.0 (and still in 3.0.1). If it was fixed in 2.6, fine, but that fix was either not forward ported

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2009-04-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: As reported in a comment for #2704, the Home key misbehaves on WinXP for 3.0.1. The 2.6 fix was either not forward ported or otherwise disabled. I removed 2.5 since that is now on security fix only status. -- nosy: +kbk versions: +Python 3.0, Python 3

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: That should have been: last = result[-1]; [last]*s.count(last). -- ___ Python tracker ___ ___ Py

[issue4847] csv fails when file is opened in binary mode

2009-04-02 Thread Skip Montanaro
Skip Montanaro added the comment: David> I also deleted the unicode discussion (since CSV obviously David> handles unicode now) ... Maybe there should be a simple example showing use of the encoding parameter to open() to encode Unicode on write and decode to Unicode on read? Skip ---

[issue1641] asyncore delayed calls feature

2009-04-02 Thread Tres Seaver
Tres Seaver added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guido van Rossum wrote: > ISTR that Zope has or had significant monkeypatches to at least one of > asyncore/asynchat. The resulting coupling between Zope and asyn* has > meant that the de-facto API of asyn* was much m

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: In that case, I think it best to leave nsmallest/nlargest as-is. By appending ties to the result, it becomes harder to implement policy decisions on what to do with those ties (perhaps listing them separately or splitting their prizes n-ways). A preferred

[issue5646] test_importlib fails for py3k on Windows

2009-04-02 Thread Brett Cannon
Brett Cannon added the comment: I committed a fix in r71057 where instead of hard-coding the paths I moved over to os.path.join(). Let me know if that fixes it. As for the deletion hole that Vista has, it could be added to test.test_support.unlink(), but talking here at PyCon it sounds like it

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
George Sakkis added the comment: There's nothing special about my use cases; I'd even go as far as to suggest that this is more often than not the desired behavior in general. Say that you have to select the top 3 chess players and there are two players with equal Elo rating at positions 3 and

[issue4847] csv fails when file is opened in binary mode

2009-04-02 Thread Skip Montanaro
Skip Montanaro added the comment: David> I've added some unit tests for embedded newlines, and py3k csv David> passes (on linux at least) when newline='' is used. Unless David> someone can provide a test case that fails when newline='' is David> used, I propose we fix the documentat

[issue1641] asyncore delayed calls feature

2009-04-02 Thread Jim Fulton
Jim Fulton added the comment: On Apr 2, 2009, at 1:27 PM, Guido van Rossum wrote: > > Guido van Rossum added the comment: > > [Guido] >>> Looking back, I think Zope and Medusa should have adopted and >>> evolved >>> their own copy of asynchat a long time ago... > > [Jim] >> This statement is

[issue5658] make html in doc fails because Makefile assigns python to PYTHON

2009-04-02 Thread Mitchell Model
Mitchell Model added the comment: OK -- -- --- Mitchell -- Added file: http://bugs.python.org/file13583/unnamed ___ Python tracker ___