[issue6311] virtual memory error with archivemail

2009-06-19 Thread helgekraak
New submission from helgekraak : Hi, I'm neither a Python nor a Unix specialist, so please understand that I can't give a very professional bug report. My issue seems to be related to issues 1092502 and 1389051. When I run archivemail with Python 2.6.2 after a couple of minutes the virtual memo

[issue6312] httplib fails with HEAD requests to pages with "transfer-encoding: chunked"

2009-06-19 Thread Ezio Melotti
New submission from Ezio Melotti : Try this code (youtube.com uses "transfer-encoding: chunked"): import httplib url = 'www.youtube.com' conn = httplib.HTTPConnection(url) conn.request('HEAD', '/') # send an HEAD request res = conn.getresponse() print res.getheader('transfer-encoding') so far i

[issue5313] multiprocessing.process using os.close(sys.stdin.fileno) instead of sys.stdin.close()

2009-06-19 Thread Jesse Noller
Jesse Noller added the comment: Attached is a patch which calls close() first, and then attempts to close the fd. In the case of an attribute errors (fileno doesn't exist) we simply set it to devnull. This is just a thought, feedback welcome - right now this allows this fixes issue 5155 and

[issue5313] multiprocessing.process using os.close(sys.stdin.fileno) instead of sys.stdin.close()

2009-06-19 Thread OG7
OG7 added the comment: Please do this: --- a/multiprocessing/process.py +++ b/multiprocessing/process.py @@ -225,7 +225,8 @@ class Process(object): self._children = set() self._counter = itertools.count(1) try: -os.close(sys.stdin.fileno())

[issue6275] let unittest.assertRaises() return the exception object caught

2009-06-19 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: I just want to second Kristján's position. I've used assertRaises a lot over the years (an implementation in a third-party unit testing library) and it is extremely common that I want the exception object to perform the kind of checks he is describing. --

[issue6285] Silent abort on XP help document display

2009-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Like Martin, I am puzzled as to what you actually did to cause a problem. 3.1rc2 on WinXP "Help / Python31" means what? Menu: Help / IDLE Help: brings up help box Menu: Help / Python Docs: brings up doc window same as from Start menu >>> help('Python31') no

[issue5801] spurious empty lines in wsgiref code

2009-06-19 Thread Pablo Torres Navarrete
Pablo Torres Navarrete added the comment: I added the patch for #5800 -- Added file: http://bugs.python.org/file14321/patch ___ Python tracker ___ ___

[issue6311] virtual memory error with archivemail

2009-06-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: Unfortunately, without a much more detailed analysis, I don't think there is much we can do. I recommend to report this to the author of archivemail first. -- nosy: +loewis resolution: -> wont fix status: open -> closed __

[issue2977] truncation of text in tables in Library Reference PDF

2009-06-19 Thread Hugh Myers
Hugh Myers added the comment: Sorry to be so late in replying. I'll check for the problem in 2.6. --hsm On Sun, Jun 7, 2009 at 2:58 PM, R. David Murray wrote: > > R. David Murray added the comment: > > The (2.6) docs have changed enough that I can't find the tables at issue > from your page n

[issue5313] multiprocessing.process using os.close(sys.stdin.fileno) instead of sys.stdin.close()

2009-06-19 Thread Jesse Noller
Jesse Noller added the comment: On Fri, Jun 19, 2009 at 11:55 AM, OG7 wrote: > > OG7 added the comment: > > One shouldn't close the fileno after the file has been closed. The > stdlib raises an error, and the open(os.devnull) won't be reached. If no > error was thrown, it would be worse. This w

[issue6313] test_with.py has a couple minor mistakes

2009-06-19 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : I found a couple mistakes in test_with.py with Pyflakes. -- components: Tests files: test_with.patch keywords: patch messages: 89530 nosy: exarkun severity: normal status: open title: test_with.py has a couple minor mistakes versions: Python 2.7

[issue6313] test_with.py has a couple minor mistakes

2009-06-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks! Fixed in r73485 and r73486. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2009-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current paragraph "There are no implied relationships among the comparison operators. The truth of x==y does not imply that x!=y is false. Accordingly, when defining __eq__(), one should also define __ne__() so that the operators will behave as expected. " i

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2009-06-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: One other thought: The __ne__ method follows automatically from __eq__ only if __ne__ isn't already defined in a superclass. So, if you're inheriting from a builtin, it's best to override both. -- nosy: +rhettinger

[issue6164] [AIX] Patch to correct the AIX C/C++ linker argument used for 'runtime_library_dirs'

2009-06-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Hey Tarek, Trent was the one who wrote the patch originally and hence I had asked him to comment. -- ___ Python tracker ___ _

[issue6274] subprocess.Popen() may leak file descriptors

2009-06-19 Thread Facundo Batista
Facundo Batista added the comment: Applied the patch (slightly modified) to trunk (2.7), 2.6, and 3k branches. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue6314] logging.basicConfig(level='DEBUG', ...

2009-06-19 Thread alexl
New submission from alexl : The following code runs w/o exceptions, but log file is empty: import logging logging.basicConfig(level='DEBUG', filename='log.txt') logging.info('Oh hi!') To avoid such silent error, basicConfig must either throw exception on invalid level parameter, or accept stri