From report at bugs.python.org Tue Mar 1 00:27:44 2011 From: report at bugs.python.org (Guy Kloss) Date: Mon, 28 Feb 2011 23:27:44 +0000 Subject: [issue5542] Socket is closed prematurely in httplib, if server sends response before request body has been sent In-Reply-To: <1237800550.85.0.782891199129.issue5542@psf.upfronthosting.co.za> Message-ID: <1298935664.43.0.716507898612.issue5542@psf.upfronthosting.co.za> Guy Kloss added the comment: I would open a new issue if I had it verified. But I can't verify it right now, as I cannot install the dependencies for a Py2.7 (or 3.x) for running my failing code on the server (running Ubuntu Lucid/LTS). Unless you're saying I should open an issue for it anyway, without having it verified on 2.7 or 3.x ... ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 00:33:17 2011 From: report at bugs.python.org (Antoine Pitrou) Date: Mon, 28 Feb 2011 23:33:17 +0000 Subject: [issue10866] Add sethostname() In-Reply-To: <1294474577.93.0.97800635081.issue10866@psf.upfronthosting.co.za> Message-ID: <1298935997.2.0.738563962815.issue10866@psf.upfronthosting.co.za> Antoine Pitrou added the comment: Patch committed in r88685 (3.3), closing. ---------- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 00:37:29 2011 From: report at bugs.python.org (Antoine Pitrou) Date: Mon, 28 Feb 2011 23:37:29 +0000 Subject: [issue11341] test_os fails In-Reply-To: <1298752293.07.0.502448238318.issue11341@psf.upfronthosting.co.za> Message-ID: <1298936249.51.0.509512011768.issue11341@psf.upfronthosting.co.za> Antoine Pitrou added the comment: Thanks for the investigation, Charles-Fran?ois. I'm closing as invalid, then. ---------- resolution: -> invalid status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 02:25:35 2011 From: report at bugs.python.org (Eric Wolf) Date: Tue, 01 Mar 2011 01:25:35 +0000 Subject: [issue10900] bz2 module fails to uncompress large files In-Reply-To: <1294938865.74.0.735458664613.issue10900@psf.upfronthosting.co.za> Message-ID: <1298942735.99.0.159879008174.issue10900@psf.upfronthosting.co.za> Eric Wolf added the comment: I'm experiencing the same thing. My script works perfectly on a 165MB file but fails after reading 900,000 bytes on a 22GB file. My script uses a buffered bz2file.read and is agnostic about end-of-lines. Opening with "rb" does not help. It is specifically written to avoid reading too much into memory at once. I have tested this script on: Python 2.5.1 (r251:54863) (ESRI ArcGIS version) (WinXP 64-bit) Python 2.7.1.4 (r271:86832) (64-bit ActiveState version) (WinXP 64-bit) Python 2.6.4 (r264:75706) (Ubuntu 9.10 64-bit) Check here for some really big BZ2 files: http://planet.openstreetmap.org/full-experimental/ ---------- nosy: +Eric.Wolf Added file: http://bugs.python.org/file20952/OSM_Extract.py _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 03:57:41 2011 From: report at bugs.python.org (Kelsey) Date: Tue, 01 Mar 2011 02:57:41 +0000 Subject: [issue11041] On the distutils2 documentation, 'requires-python' shouldn't be documented as *multi In-Reply-To: <1296214788.72.0.049703794101.issue11041@psf.upfronthosting.co.za> Message-ID: <1298948261.22.0.324891922931.issue11041@psf.upfronthosting.co.za> Kelsey added the comment: Fixed in my bitbucket fork. https://bitbucket.org/khightower/distutils2/changeset/ee9e580e5000 ---------- nosy: +kelseyhightower _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 04:06:35 2011 From: report at bugs.python.org (Kelsey) Date: Tue, 01 Mar 2011 03:06:35 +0000 Subject: [issue11357] Add support for PEP 381 -- Mirror Authenticity In-Reply-To: <1298948795.56.0.864012658533.issue11357@psf.upfronthosting.co.za> Message-ID: <1298948795.56.0.864012658533.issue11357@psf.upfronthosting.co.za> New submission from Kelsey : Distutils2 should provide support for verifying a mirrors authenticity as described in PEP 381 -- Mirror Authenticity. ---------- assignee: tarek components: Distutils2 messages: 129736 nosy: alexis, eric.araujo, kelseyhightower, tarek priority: normal severity: normal status: open title: Add support for PEP 381 -- Mirror Authenticity type: feature request versions: 3rd party, Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 04:13:14 2011 From: report at bugs.python.org (Kelsey) Date: Tue, 01 Mar 2011 03:13:14 +0000 Subject: [issue11357] Add support for PEP 381 -- Mirror Authenticity In-Reply-To: <1298948795.56.0.864012658533.issue11357@psf.upfronthosting.co.za> Message-ID: <1298949194.12.0.922201788361.issue11357@psf.upfronthosting.co.za> Kelsey added the comment: I have started on an implementation in my distutil2 patch-queue on bitbucket. Link to code, tests, and documentation: https://bitbucket.org/khightower/distutils2-patch-queue/qseries?apply=t&qs_apply=mirror-authenticity Outstanding items include back porting the SSL module for python < 2.6 support and making sure all test pass on python >= 2.4 ---------- _______________________________________ Python tracker _______________________________________ From orsenthil at gmail.com Tue Mar 1 04:17:39 2011 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 1 Mar 2011 11:17:39 +0800 Subject: [issue11306] mailbox should test for errno.EROFS In-Reply-To: <1298560030.09.0.737390688888.issue11306@psf.upfronthosting.co.za> References: <1298531012.94.0.719284706533.issue11306@psf.upfronthosting.co.za> <1298560030.09.0.737390688888.issue11306@psf.upfronthosting.co.za> Message-ID: <20110301031739.GA2305@kevin> On Thu, Feb 24, 2011 at 03:07:10PM +0000, R. David Murray wrote: > Creating a test for this may not be practical :( Then should we just go ahead with this change as it seems reasonable one. - elif e.errno == errno.EACCES: + elif e.errno == errno.EACCES or e.errno == errno.EROFS: From report at bugs.python.org Tue Mar 1 04:17:51 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Tue, 01 Mar 2011 03:17:51 +0000 Subject: [issue11306] mailbox should test for errno.EROFS In-Reply-To: <1298560030.09.0.737390688888.issue11306@psf.upfronthosting.co.za> Message-ID: <20110301031739.GA2305@kevin> Senthil Kumaran added the comment: On Thu, Feb 24, 2011 at 03:07:10PM +0000, R. David Murray wrote: > Creating a test for this may not be practical :( Then should we just go ahead with this change as it seems reasonable one. - elif e.errno == errno.EACCES: + elif e.errno == errno.EACCES or e.errno == errno.EROFS: ---------- nosy: +orsenthil _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 04:23:06 2011 From: report at bugs.python.org (Raymond Hettinger) Date: Tue, 01 Mar 2011 03:23:06 +0000 Subject: [issue10516] Add list.clear() and list.copy() In-Reply-To: <1290555468.47.0.0329661397161.issue10516@psf.upfronthosting.co.za> Message-ID: <1298949786.79.0.535408244279.issue10516@psf.upfronthosting.co.za> Raymond Hettinger added the comment: The patch is fine. Do consider using assertIsNot() in the tests. Then go ahead and apply it. The OverflowError in bytearray.pop() is a bug, please open a separate report for it and make a patch changing it to IndexError. Assign that bug report to me. Go ahead and propose a patch for MutableSequence.clear() implemented with MutableSequence.pop() and catching an IndexError when empty. Thanks for your efforts. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 04:29:00 2011 From: report at bugs.python.org (Kelsey) Date: Tue, 01 Mar 2011 03:29:00 +0000 Subject: [issue11357] Add support for PEP 381 -- Mirror Authenticity In-Reply-To: <1298948795.56.0.864012658533.issue11357@psf.upfronthosting.co.za> Message-ID: <1298950140.95.0.0480526275976.issue11357@psf.upfronthosting.co.za> Changes by Kelsey : ---------- keywords: +patch Added file: http://bugs.python.org/file20953/mirror-authenticity.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 07:34:24 2011 From: report at bugs.python.org (Georg Brandl) Date: Tue, 01 Mar 2011 06:34:24 +0000 Subject: [issue10516] Add list.clear() and list.copy() In-Reply-To: <1290555468.47.0.0329661397161.issue10516@psf.upfronthosting.co.za> Message-ID: <1298961264.82.0.2994116968.issue10516@psf.upfronthosting.co.za> Georg Brandl added the comment: Hmm, shouldn't self.__class__(self) be a good default implementation of copy()? I'd expect any sequence to support this way of creation from another sequence, even if it's inefficient. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 07:35:45 2011 From: report at bugs.python.org (Georg Brandl) Date: Tue, 01 Mar 2011 06:35:45 +0000 Subject: [issue11356] Include module name on ImportError In-Reply-To: <1298932245.21.0.726100579882.issue11356@psf.upfronthosting.co.za> Message-ID: <1298961345.95.0.604479492329.issue11356@psf.upfronthosting.co.za> Georg Brandl added the comment: This is a dupe of #1559549. ---------- nosy: +georg.brandl resolution: -> duplicate status: open -> closed superseder: -> ImportError needs attributes for module and file name _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 07:51:43 2011 From: report at bugs.python.org (david) Date: Tue, 01 Mar 2011 06:51:43 +0000 Subject: [issue11358] Please replace the use of pickle in multiprocessing with json. In-Reply-To: <1298962303.49.0.457457869343.issue11358@psf.upfronthosting.co.za> Message-ID: <1298962303.49.0.457457869343.issue11358@psf.upfronthosting.co.za> New submission from david : Please replace the use of pickle in multiprocessing with json. ---------- messages: 129742 nosy: db priority: normal severity: normal status: open title: Please replace the use of pickle in multiprocessing with json. _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 08:01:43 2011 From: report at bugs.python.org (Alex) Date: Tue, 01 Mar 2011 07:01:43 +0000 Subject: [issue11358] Please replace the use of pickle in multiprocessing with json. In-Reply-To: <1298962303.49.0.457457869343.issue11358@psf.upfronthosting.co.za> Message-ID: <1298962903.1.0.997948298584.issue11358@psf.upfronthosting.co.za> Alex added the comment: Why? JSON is incapable of representing most Python datastructures that can be pickled (i.e. anything that isn't a list, tuple, dict, int, or str). ---------- nosy: +alex _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 08:02:25 2011 From: report at bugs.python.org (david) Date: Tue, 01 Mar 2011 07:02:25 +0000 Subject: [issue11359] Please replace the use of pickle in subprocess with json. In-Reply-To: <1298962945.05.0.373214818345.issue11359@psf.upfronthosting.co.za> Message-ID: <1298962945.05.0.373214818345.issue11359@psf.upfronthosting.co.za> New submission from david : Please replace the use of pickle in subprocess with json. ---------- messages: 129744 nosy: db priority: normal severity: normal status: open title: Please replace the use of pickle in subprocess with json. _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 08:26:45 2011 From: report at bugs.python.org (aaugustin) Date: Tue, 01 Mar 2011 07:26:45 +0000 Subject: [issue11140] threading.Lock().release() raises _thread.error, not RuntimeError In-Reply-To: <1297092927.55.0.763535906906.issue11140@psf.upfronthosting.co.za> Message-ID: <1298964405.65.0.510608937928.issue11140@psf.upfronthosting.co.za> aaugustin added the comment: Shouldn't this be fixed in _dummy_thread too? Attached patch contains fix + test. (Unfortunately, I was not able to run the tests with my patch: `python3.2 -m test.regrtest test_dummy_thread` tests my 'system' version, not my svn checkout. I did not change the ticket flags either because I do not know the rules here - first time I work on Python...) ---------- Added file: http://bugs.python.org/file20954/11140.2.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 08:53:32 2011 From: report at bugs.python.org (Ezio Melotti) Date: Tue, 01 Mar 2011 07:53:32 +0000 Subject: [issue11359] Please replace the use of pickle in subprocess with json. In-Reply-To: <1298962945.05.0.373214818345.issue11359@psf.upfronthosting.co.za> Message-ID: <1298966012.27.0.918798628669.issue11359@psf.upfronthosting.co.za> Changes by Ezio Melotti : ---------- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Please replace the use of pickle in multiprocessing with json. _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 08:54:50 2011 From: report at bugs.python.org (Ezio Melotti) Date: Tue, 01 Mar 2011 07:54:50 +0000 Subject: [issue11358] Please replace the use of pickle in multiprocessing with json. In-Reply-To: <1298962303.49.0.457457869343.issue11358@psf.upfronthosting.co.za> Message-ID: <1298966090.06.0.527804482448.issue11358@psf.upfronthosting.co.za> Changes by Ezio Melotti : ---------- components: +Library (Lib) stage: -> needs patch type: -> feature request versions: +Python 3.3 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 09:01:42 2011 From: report at bugs.python.org (Raymond Hettinger) Date: Tue, 01 Mar 2011 08:01:42 +0000 Subject: [issue10516] Add list.clear() and list.copy() In-Reply-To: <1290555468.47.0.0329661397161.issue10516@psf.upfronthosting.co.za> Message-ID: <1298966502.54.0.294078279972.issue10516@psf.upfronthosting.co.za> Raymond Hettinger added the comment: > Hmm, shouldn't self.__class__(self) be a > good default implementation of copy()? > > I'd expect any sequence to support this way > of creation from another sequence, even if it's inefficient. The copy() method isn't being proposed for MutableSequence because it presumes that we know something about the constructor's signature. For example, the constructor of array() needs the element storage type as an argument. We refuse the temptation to guess. In the Set api, we had no choice because many set-methods necessarily create a new set. To handle the constructor signature problem, the creation step was factored-out into the from_iterable() method so that a user could override it if necessary. Also copy() is handled oddly in the builtin types. To handle the constructor signature issue for subclasses, they ignore the subclass and return a instance of the base class. For example, the inherited copy() method on a subclass of list or dict will create an instance of list or dict, not of the subclass itself. Accordingly, subclasses that want instances of themselves have to override the inherited copy() method. They would have to do this anyway if they subclass contained any other data in the class dictionary that would need to be passed along to a copy. In short, we're better-off not supplying copy() as part of the MutableSequence ABC. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 09:17:32 2011 From: report at bugs.python.org (Antoine Pitrou) Date: Tue, 01 Mar 2011 08:17:32 +0000 Subject: [issue11140] threading.Lock().release() raises _thread.error, not RuntimeError In-Reply-To: <1298964405.65.0.510608937928.issue11140@psf.upfronthosting.co.za> Message-ID: <1298967449.3709.1.camel@localhost.localdomain> Antoine Pitrou added the comment: Hello, > Shouldn't this be fixed in _dummy_thread too? > > Attached patch contains fix + test. Oops, thanks for noticing. > (Unfortunately, I was not able to run the tests with my patch: > `python3.2 -m test.regrtest test_dummy_thread` tests my 'system' > version, not my svn checkout. You must run "./python" instead and it should work. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 10:34:03 2011 From: report at bugs.python.org (Nick Coghlan) Date: Tue, 01 Mar 2011 09:34:03 +0000 Subject: [issue11349] _pickle should implement the module finalisation protocol In-Reply-To: <1298856551.7.0.829193493202.issue11349@psf.upfronthosting.co.za> Message-ID: <1298972043.72.0.0135099457031.issue11349@psf.upfronthosting.co.za> Nick Coghlan added the comment: We might be able to tapdance our way around the issue by falling back to the old mechanism when dealing with extension modules without traverse/clear/dealloc methods. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 10:51:23 2011 From: report at bugs.python.org (Antoine Pitrou) Date: Tue, 01 Mar 2011 09:51:23 +0000 Subject: [issue11349] _pickle should implement the module finalisation protocol In-Reply-To: <1298856551.7.0.829193493202.issue11349@psf.upfronthosting.co.za> Message-ID: <1298973083.7.0.500005600733.issue11349@psf.upfronthosting.co.za> Antoine Pitrou added the comment: Not sure why #812369 is bogged down. The patch simply needs updating for 3.x. ---------- nosy: +pitrou _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 10:54:33 2011 From: report at bugs.python.org (Ram Rachum) Date: Tue, 01 Mar 2011 09:54:33 +0000 Subject: [issue1559549] ImportError needs attributes for module and file name Message-ID: <1298973273.77.0.93304734319.issue1559549@psf.upfronthosting.co.za> Changes by Ram Rachum : ---------- nosy: +cool-RR _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 11:23:50 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Tue, 01 Mar 2011 10:23:50 +0000 Subject: [issue8927] Handle version incompatibilities in dependencies In-Reply-To: <1275853060.23.0.0333552205181.issue8927@psf.upfronthosting.co.za> Message-ID: <1298975030.21.0.587343022831.issue8927@psf.upfronthosting.co.za> ?ric Araujo added the comment: Re: title, I don?t know how to phrase it best. What exactly is the behavior you request? I put ?handle? as in ?do the right thing?, that is, ?don?t install the newest version but the one that satisfies all predicates?. I softened ?conflicts? to ?incompatibilities?, does it work for you? In any case, the important thing is that your report describes the problem well. Re: 404, it has moved to http://distutils2.notmyidea.org/library/distutils2.depgraph.html ---------- nosy: +alexis title: Handle version conflicts in dependencies -> Handle version incompatibilities in dependencies _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 12:03:09 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Tue, 01 Mar 2011 11:03:09 +0000 Subject: [issue9436] test_sysconfig failure In-Reply-To: <1280591591.84.0.476083865565.issue9436@psf.upfronthosting.co.za> Message-ID: <1298977389.63.0.0182503173213.issue9436@psf.upfronthosting.co.za> Changes by ?ric Araujo : ---------- nosy: +eric.araujo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 12:08:13 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Tue, 01 Mar 2011 11:08:13 +0000 Subject: [issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python In-Reply-To: <1265490255.73.0.743157337936.issue7867@psf.upfronthosting.co.za> Message-ID: <1298977693.0.0.00406247395061.issue7867@psf.upfronthosting.co.za> Changes by ?ric Araujo : ---------- nosy: +eric.araujo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 12:10:27 2011 From: report at bugs.python.org (=?utf-8?q?Filip_Gruszczy=C5=84ski?=) Date: Tue, 01 Mar 2011 11:10:27 +0000 Subject: [issue8933] Invalid detection of metadata version In-Reply-To: <1275927761.19.0.897367518837.issue8933@psf.upfronthosting.co.za> Message-ID: <1298977827.78.0.909971802794.issue8933@psf.upfronthosting.co.za> Filip Gruszczy?ski added the comment: I'll get down to it. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Mar 1 12:27:57 2011 From: report at bugs.python.org (Charles-Francois Natali) Date: Tue, 01 Mar 2011 11:27:57 +0000 Subject: [issue10900] bz2 module fails to uncompress large files In-Reply-To: <1294938865.74.0.735458664613.issue10900@psf.upfronthosting.co.za> Message-ID: <1298978877.31.0.201492140333.issue10900@psf.upfronthosting.co.za> Charles-Francois Natali added the comment: @Eric.Wolf Could you try with this: # Read in anohter chunk of the file # NOTE: It's possible that an XML tag will be greater than buffsize # This will break in that situation - newb = self.fp.read(self.bufpos) + newb = self.fp.read(self.buffsize) Also, could you provide the output of strace -emmap2,sbrk,brk python