[issue7359] mailbox cannot modify mailboxes in system mail spool

2010-12-01 Thread Ole Laursen
Ole Laursen added the comment: Just got bitten by this too. Renaming is good and all, but as far as I can tell, it will never work with the system spool. It's not just that you can't create a temporary file in the directory, you can't rename files into it either. If I creat

[issue7257] Improve documentation of list.sort and sorted()

2010-11-22 Thread Ole Laursen
Ole Laursen added the comment: Okay. I can only say that while the current docstrings are likely good reminders for you, knowing Python in and out, they were pretty useless to me as documentation, which I believe docstrings should be, they're called docstrings, after all, not reminderst

[issue1580] Use shorter float repr when possible

2010-09-30 Thread Ole Laursen
Ole Laursen added the comment: Just came across this bug, I don't want to reopen this or anything, but regarding the SSE2 code I couldn't help thinking that why can't you just detect the presence of SSE2 when the interpreter starts up and then switch implementations based o

[issue7290] Update 'how do I set a global variable' faq entry

2009-11-10 Thread Ole Laursen
Ole Laursen added the comment: As the reporter of issue 7276, I think it's a clear explanation of this phenomonen. I think that maybe you should remove the "New Python programmers" in "New Python programmers are often surprised when they get this error in previously wo

[issue7276] UnboundLocalError scoping problem with nested functions

2009-11-09 Thread Ole Laursen
Ole Laursen added the comment: OK, sorry, I was under the impression that the global binding was still available (I can't find anything to the contrary here http://docs.python.org/reference/simple_stmts.html#assignment-statements ) but it's obviously using a static definition of s

[issue7257] Improve documentation of list.sort and sorted()

2009-11-04 Thread Ole Laursen
Ole Laursen added the comment: OK, thanks! :) Sorry about the unintended nosy list removal, my browser got me there. -- ___ Python tracker <http://bugs.python.org/issue7

[issue7257] Improve documentation of list.sort and sorted()

2009-11-03 Thread Ole Laursen
Ole Laursen added the comment: If you think it's too long, here's a shorter version: Sorts sequence in place with a fast stable sort, returning None. key is a function for extracting a comparison key from each element, e.g. key=lambda x: x['name'] or key=str.lower. rever

[issue7257] Improve documentation of list.sort and sorted()

2009-11-03 Thread Ole Laursen
New submission from Ole Laursen : On my Python 3.1, help() for sorted returns sort(...) L.sort(key=None, reverse=False) -- stable sort *IN PLACE* sorted(...) sorted(iterable, key=None, reverse=False) --> new sorted list Kindly suggest this be expanded. Here's some tex

[issue7035] codecs error handlers lack documentation

2009-10-02 Thread Ole Laursen
New submission from Ole Laursen : import codecs help(codecs.replace_errors) results in replace_errors(...) (END) in Python 2.6. Interestingly, http://docs.python.org/library/codecs actually says "Implements the replace error handling." Which is pretty useless, though. :) Sugges