From report at bugs.python.org Sat Dec 1 00:00:06 2007 From: report at bugs.python.org (George Notaras) Date: Fri, 30 Nov 2007 23:00:06 -0000 Subject: [issue1531] tarfile.open(fileobj=f) and bad metadata of the first file within the archive Message-ID: <1196463606.39.0.826959093922.issue1531@psf.upfronthosting.co.za> New submission from George Notaras: Assume the following situation: - a healthy and uncompressed tar file: a.tar - the metadata of the 1st and second files within the archive start at positions 0 and 756 (realistic example values) I partially damage 200 bytes of metadata (byte range 0-500) of the first archived file: f = open("a.tar", "rb+") f.seek(100) f.write("0"*200) Now, I seek to the start of the 2nd archived file's metadata: f.seek(756) And I try to open the tar archive using tarfile.open() passing the previous fileobject to it. import tarfile f_tar = tarfile.open(fileobj=f) Traceback (most recent call last): File "", line 1, in File "tarfile.py", line 1143, in open raise ReadError("file could not be opened successfully") tarfile.ReadError: file could not be opened successfully Wouldn't the expected behaviour be to successfully open the tar archive at offset 756? It seems that tarfile.open(fileobj=f) seeks to position 0 of the fileobject f, fails to read the 1st archived file's metadata and throws an exception. ---------- components: Extension Modules messages: 58026 nosy: GeorgeNotaras severity: normal status: open title: tarfile.open(fileobj=f) and bad metadata of the first file within the archive type: behavior versions: Python 2.5 __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 00:14:48 2007 From: report at bugs.python.org (Christian Heimes) Date: Fri, 30 Nov 2007 23:14:48 -0000 Subject: [issue1504] Add 2to3 fixer for (un)bound methods Message-ID: <1196464488.78.0.9722883352.issue1504@psf.upfronthosting.co.za> Christian Heimes added the comment: The deprecation warning in 'new' is a -3 warning. I've added a new method warning.warnpy3k for the job. You are right about the rest. Can you start a discussion on the list? The last time I tried to kick off a poll it ended up a lots of bad jokes. :( __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 00:17:23 2007 From: report at bugs.python.org (Christian Heimes) Date: Fri, 30 Nov 2007 23:17:23 -0000 Subject: [issue1532] Refleak run of test_tcl fails Message-ID: <1196464643.1.0.5780121191.issue1532@psf.upfronthosting.co.za> New submission from Christian Heimes: $ ./python Lib/test/regrtest.py -R:: test_tcl test_tcl beginning 9 repetitions 123456789 test test_tcl failed -- Traceback (most recent call last): File "Lib/test/test_tcl.py", line 125, in testLoadTk tcl.loadtk() File "Lib/lib-tk/Tkinter.py", line 1641, in loadtk self.tk.loadtk() _tkinter.TclError: Calling Tk_Init again after a previous call failed might deadlock 1 test failed: test_tcl ---------- components: Tests keywords: py3k messages: 58028 nosy: gvanrossum, tiran priority: low severity: normal status: open title: Refleak run of test_tcl fails type: crash versions: Python 3.0 __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 00:18:30 2007 From: report at bugs.python.org (Christian Heimes) Date: Fri, 30 Nov 2007 23:18:30 -0000 Subject: [issue1414] Fix for refleak tests Message-ID: <1196464710.6.0.60071782351.issue1414@psf.upfronthosting.co.za> Christian Heimes added the comment: The bug report for test_tcl is at http://bugs.python.org/issue1532 ---------- resolution: -> accepted status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 00:20:37 2007 From: report at bugs.python.org (Christian Heimes) Date: Fri, 30 Nov 2007 23:20:37 -0000 Subject: [issue1514] missing constants in socket module Message-ID: <1196464837.71.0.116088902168.issue1514@psf.upfronthosting.co.za> Christian Heimes added the comment: On my system (Ubuntu 7.10, i386, Kernel 2.6.20) the _socket modules of Python 2.5 and trunk have the TCP_ constants. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 00:28:39 2007 From: report at bugs.python.org (Guido van Rossum) Date: Fri, 30 Nov 2007 23:28:39 -0000 Subject: [issue1504] Add 2to3 fixer for (un)bound methods In-Reply-To: <1196464488.78.0.9722883352.issue1504@psf.upfronthosting.co.za> Message-ID: Guido van Rossum added the comment: > You are right about the rest. Can you start a discussion on the list? Well the only question is where to put these symbols, right? I guess I still like putting them in sys best, for the ones that don't fit in collections. > The last time I tried to kick off a poll it ended up a lots of bad jokes. :( Naming contests *always* end in bad jokes. :-) Some of the jokes were kind of cute. I got a laughing fit over the naming rights suggestion. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 00:29:57 2007 From: report at bugs.python.org (Marc-Andre Lemburg) Date: Fri, 30 Nov 2007 23:29:57 -0000 Subject: [issue1514] missing constants in socket module Message-ID: <1196465397.59.0.794666575183.issue1514@psf.upfronthosting.co.za> Marc-Andre Lemburg added the comment: Interesting. It appears as if r57142 caused this change. Before: # if !(defined(__BEOS__) || defined(__CYGWIN__) || (defined(PYOS_OS2) && defined(PYCC_VACPP))) After: # if defined(__CYGWIN__) || (defined(PYOS_OS2) && defined(PYCC_VACPP)) That change obviously changed semantics :-) __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 00:35:35 2007 From: report at bugs.python.org (Christian Heimes) Date: Fri, 30 Nov 2007 23:35:35 -0000 Subject: [issue1514] missing constants in socket module In-Reply-To: <1196465397.59.0.794666575183.issue1514@psf.upfronthosting.co.za> Message-ID: <47509E44.9040906@cheimes.de> Christian Heimes added the comment: Marc-Andre Lemburg wrote: > Marc-Andre Lemburg added the comment: > > Interesting. It appears as if r57142 caused this change. Good work, Marc-Andre! I've restored the old semantic in r57142. Christian __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 01:28:10 2007 From: report at bugs.python.org (Robert Bradshaw) Date: Sat, 01 Dec 2007 00:28:10 -0000 Subject: [issue1533] Bug in range() function for large values Message-ID: <1196468890.07.0.55666875231.issue1533@psf.upfronthosting.co.za> New submission from Robert Bradshaw: Range accepts arguments coerce-able into ints via __int__, but rejects arguments coerce-able into longs but to large to fit into an int. The problem is in handle_range_longs in bltinmodule.c:1527-1541. If they type is not an int or long, it should try to make it so before failing (for consistency with smaller values at least). Attached is a file that reproduces this bug. ---------- components: Interpreter Core, Library (Lib) files: bad_range.py messages: 58034 nosy: robertwb severity: normal status: open title: Bug in range() function for large values type: crash versions: Python 2.5 Added file: http://bugs.python.org/file8839/bad_range.py __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: bad_range.py Type: application/octet-stream Size: 236 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071201/8e3e9c22/attachment.obj From report at bugs.python.org Sat Dec 1 01:28:26 2007 From: report at bugs.python.org (Skip Montanaro) Date: Sat, 01 Dec 2007 00:28:26 -0000 Subject: [issue1514] missing constants in socket module In-Reply-To: <1196465397.59.0.794666575183.issue1514@psf.upfronthosting.co.za> Message-ID: <18256.43686.80720.83725@montanaro.dyndns.org> Skip Montanaro added the comment: mal> Interesting. It appears as if r57142 caused this change. How do I get a diff of the change in r57142? In particular, is it something I did? I was working on deleting BeOS support (and support for other minority platforms) awhile ago. I don't recall whether I finally finished that or if this was something someone else did. Skip __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 02:08:36 2007 From: report at bugs.python.org (Skip Montanaro) Date: Sat, 01 Dec 2007 01:08:36 -0000 Subject: [issue1514] missing constants in socket module In-Reply-To: <18256.43686.80720.83725@montanaro.dyndns.org> Message-ID: <18256.46095.394972.166175@montanaro.dyndns.org> Skip Montanaro added the comment: mal> Interesting. It appears as if r57142 caused this change. Skip> How do I get a diff of the change in r57142? Okay, I got that diff. The change was from my BeOS cleaning. While adding back in that ifdef certain restores the desired behavior, I think it's the wrong test to perform. Something less platform-specific should be used, though I'm not sure what the correct test should be. Skip __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 02:22:16 2007 From: report at bugs.python.org (Christian Heimes) Date: Sat, 01 Dec 2007 01:22:16 -0000 Subject: [issue1534] sys.maxfloat patch Message-ID: <1196472136.65.0.997837511396.issue1534@psf.upfronthosting.co.za> New submission from Christian Heimes: Currently Python has no information about the maximum and minimum value of a float. The patch adds a dict with all important information to sys: >>> pprint.pprint(sys.maxfloat) {'dig': 15, 'epsilon': 2.2204460492503131e-16, 'mant_dig': 53, 'max': 1.7976931348623157e+308, 'max_10_exp': 308, 'max_exp': 1024, 'min': 2.2250738585072014e-308, 'min_10_exp': -307, 'min_exp': -1021, 'radix': 2, 'rounds': 1} The patch compiles on Linux and Windows. ---------- components: Interpreter Core files: trunk_maxfloat.patch keywords: patch, py3k messages: 58037 nosy: tiran priority: normal severity: normal status: open title: sys.maxfloat patch versions: Python 2.6, Python 3.0 Added file: http://bugs.python.org/file8840/trunk_maxfloat.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: trunk_maxfloat.patch Type: text/x-diff Size: 1650 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071201/331b7dd6/attachment.patch From report at bugs.python.org Sat Dec 1 02:25:17 2007 From: report at bugs.python.org (Guido van Rossum) Date: Sat, 01 Dec 2007 01:25:17 -0000 Subject: [issue1534] sys.maxfloat patch Message-ID: <1196472317.33.0.438193267512.issue1534@psf.upfronthosting.co.za> Guido van Rossum added the comment: I'd suggest giving it a different name, maybe float_info. sys.maxfloat suggests the value is a float, like sys.maxint and sys.maxunicode. ---------- nosy: +gvanrossum __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 02:37:18 2007 From: report at bugs.python.org (jos) Date: Sat, 01 Dec 2007 01:37:18 -0000 Subject: [issue1533] Bug in range() function for large values Message-ID: <1196473038.8.0.375307527311.issue1533@psf.upfronthosting.co.za> jos added the comment: Is this a bug? print range(MyInt(2**64), MyInt(2**64+10)) produced TypeError: range() integer start argument expected, got instance. print range(int(MyInt(2**64)), int(MyInt(2**64+10))) should work. ---------- nosy: +josm __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 02:42:03 2007 From: report at bugs.python.org (Robert Bradshaw) Date: Sat, 01 Dec 2007 01:42:03 -0000 Subject: [issue1533] Bug in range() function for large values Message-ID: <1196473323.05.0.265829271745.issue1533@psf.upfronthosting.co.za> Robert Bradshaw added the comment: Yes, that is a workaround, but range(MyInt(n), MyInt(n+10)) should work for any valid value of n, not just some of them. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 11:16:08 2007 From: report at bugs.python.org (=?utf-8?q?Lars_Gust=C3=A4bel?=) Date: Sat, 01 Dec 2007 10:16:08 -0000 Subject: [issue1531] tarfile.open(fileobj=f) and bad metadata of the first file within the archive Message-ID: <1196504168.15.0.886440264064.issue1531@psf.upfronthosting.co.za> Changes by Lars Gust?bel: ---------- assignee: -> lars.gustaebel nosy: +lars.gustaebel __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 12:24:11 2007 From: report at bugs.python.org (Christian Heimes) Date: Sat, 01 Dec 2007 11:24:11 -0000 Subject: [issue1534] sys.maxfloat patch Message-ID: <1196508251.41.0.706150800965.issue1534@psf.upfronthosting.co.za> Christian Heimes added the comment: Applied in r59254. I've moved the code to floatobject.c/h and added PyFloat_GetMax() and PyFloat_GetMin(), too. The intobject.c file has a similar function. ---------- resolution: -> fixed status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 13:16:34 2007 From: report at bugs.python.org (jos) Date: Sat, 01 Dec 2007 12:16:34 -0000 Subject: [issue1205] urllib fail to read URL contents, urllib2 crash Python Message-ID: <1196511394.73.0.683628963585.issue1205@psf.upfronthosting.co.za> jos added the comment: included torriem's fix. IMHO, there is no clear solution for this because this is due to HTTP server's "bug" and a bug is the one that you can't predict accurately... Added file: http://bugs.python.org/file8841/httplib.py.diff __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: httplib.py.diff Type: application/octet-stream Size: 928 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071201/40fd64af/attachment.obj From report at bugs.python.org Sat Dec 1 13:19:34 2007 From: report at bugs.python.org (jos) Date: Sat, 01 Dec 2007 12:19:34 -0000 Subject: [issue1706039] Added clearerr() to clear EOF state Message-ID: <1196511574.45.0.00854854875809.issue1706039@psf.upfronthosting.co.za> jos added the comment: Any chance to get this fix commmited in? ---------- type: -> behavior _____________________________________ Tracker _____________________________________ From report at bugs.python.org Sat Dec 1 14:25:53 2007 From: report at bugs.python.org (Raymond Hettinger) Date: Sat, 01 Dec 2007 13:25:53 -0000 Subject: [issue1533] Bug in range() function for large values Message-ID: <1196515553.72.0.244857813339.issue1533@psf.upfronthosting.co.za> Changes by Raymond Hettinger: ---------- assignee: -> rhettinger nosy: +rhettinger __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 14:27:38 2007 From: report at bugs.python.org (Christian Heimes) Date: Sat, 01 Dec 2007 13:27:38 -0000 Subject: [issue1438] Calling base class methods is slow due to __instancecheck__ override in abc.py Message-ID: <1196515658.61.0.654315925648.issue1438@psf.upfronthosting.co.za> Christian Heimes added the comment: Unbound methods are gone and so is the isinstance check in method_call(). ---------- resolution: -> fixed status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 14:48:08 2007 From: report at bugs.python.org (Christian Heimes) Date: Sat, 01 Dec 2007 13:48:08 -0000 Subject: [issue1535] Rename __builtin__ to builtins Message-ID: <1196516888.14.0.921073595512.issue1535@psf.upfronthosting.co.za> Christian Heimes added the comment: I had to copy the __builtin__.rst prior to patch. svn cp Doc/library/__builtin__.rst Doc/library/builtins.rst svn patch -p0 < builtins.diff svn del --force Doc/library/__builtin__.rst ---------- keywords: +patch, py3k nosy: +tiran priority: -> high __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 14:57:36 2007 From: report at bugs.python.org (Christian Heimes) Date: Sat, 01 Dec 2007 13:57:36 -0000 Subject: [issue1535] Rename __builtin__ to builtins Message-ID: <1196517456.55.0.703400342357.issue1535@psf.upfronthosting.co.za> Christian Heimes added the comment: Here is a fixer for the new name. Added file: http://bugs.python.org/file8843/2to3_builtins.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: 2to3_builtins.patch Type: text/x-diff Size: 2404 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071201/ebfa6854/attachment.patch From report at bugs.python.org Sat Dec 1 15:07:42 2007 From: report at bugs.python.org (Christian Heimes) Date: Sat, 01 Dec 2007 14:07:42 -0000 Subject: [issue1498] Rename __builtins__ to __root_namespace__? Message-ID: <1196518062.19.0.646603121314.issue1498@psf.upfronthosting.co.za> Christian Heimes added the comment: See http://bugs.python.org/issue1535 for future discussion. ---------- resolution: -> duplicate status: open -> closed superseder: -> Rename __builtin__ to builtins __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 15:08:39 2007 From: report at bugs.python.org (Georg Brandl) Date: Sat, 01 Dec 2007 14:08:39 -0000 Subject: [issue1535] Rename __builtin__ to builtins Message-ID: <1196518119.47.0.893962353716.issue1535@psf.upfronthosting.co.za> Changes by Georg Brandl: Removed file: http://bugs.python.org/file8842/builtins.diff __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 16:21:29 2007 From: report at bugs.python.org (Ronald Oussoren) Date: Sat, 01 Dec 2007 15:21:29 -0000 Subject: [issue1358] Compile error on OS X 10.5 Message-ID: <1196522489.34.0.317063399839.issue1358@psf.upfronthosting.co.za> Ronald Oussoren added the comment: This issue is fixed in the trunk and python2.5 branch. To work around this issue with the 2.5.1 source tree you have to set MACOSX_DEPLOYMENT_TARGET when configuring python: ../configure MACOSX_DEPLOYMENT_TARGET=10.3 (the value 10.3 is what configure picks by default, building with 10.5 as the target works as well). The problem is that configure picked a deployment target for use during compilation of python itself, but didn't use that during the configure phase. That causes configure to pick up the wrong set of feature macros. ---------- nosy: +ronaldoussoren resolution: -> fixed status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 16:55:43 2007 From: report at bugs.python.org (Mark Dickinson) Date: Sat, 01 Dec 2007 15:55:43 -0000 Subject: [issue1534] sys.maxfloat patch Message-ID: <1196524543.78.0.560626708185.issue1534@psf.upfronthosting.co.za> Mark Dickinson added the comment: A (probably stupid) question: what's supposed to happen on platforms that don't define things like DBL_MAX_10_EXP, which isn't part of ANSI C89? Or are there no such platforms? ---------- nosy: +marketdickinson __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 17:02:31 2007 From: report at bugs.python.org (Carl Karsten) Date: Sat, 01 Dec 2007 16:02:31 -0000 Subject: [issue1284316] Win32: Security problem with default installation directory Message-ID: <1196524951.92.0.889127917617.issue1284316@psf.upfronthosting.co.za> Carl Karsten added the comment: Another reason to fix: perception. installing to the root looks like a hack. Installing to the proper place* looks professional. As for it being hard to type, either add it to PATH or put a .bat file in the path. I think vista even supports some sort of symlink, so that might be best. As for easy_install.exe and others breaking when they hit a space, They should be fixed too. avoiding fixing them means people who try to force the installer to do the right thing end up with a headache, which is evil. * proper place isn't always "C:\Program Files" - the installer builder should have an option to determine what it should be. The environment var %ProgramFiles% holds the correct path. There is an API call too. ---------- nosy: +carlfk _____________________________________ Tracker _____________________________________ From report at bugs.python.org Sat Dec 1 17:03:26 2007 From: report at bugs.python.org (Christian Heimes) Date: Sat, 01 Dec 2007 16:03:26 -0000 Subject: [issue1534] sys.maxfloat patch Message-ID: <1196525006.9.0.493225895755.issue1534@psf.upfronthosting.co.za> Christian Heimes added the comment: I've checked all major platforms before committing the patch. They all have a float.h with the information available. Do you know of a platform where this information isn't available? I could add a lot of #ifdef but I don't feel like bloating the code unless it is necessary. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 17:17:47 2007 From: report at bugs.python.org (Mark Dickinson) Date: Sat, 01 Dec 2007 16:17:47 -0000 Subject: [issue1534] sys.maxfloat patch Message-ID: <1196525867.14.0.0264227282105.issue1534@psf.upfronthosting.co.za> Mark Dickinson added the comment: No, I don't know of any platforms that don't define these constants. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 17:37:12 2007 From: report at bugs.python.org (Mark Dickinson) Date: Sat, 01 Dec 2007 16:37:12 -0000 Subject: [issue1534] sys.maxfloat patch Message-ID: <1196527032.84.0.0662123880182.issue1534@psf.upfronthosting.co.za> Mark Dickinson added the comment: And it looks as though DBL_MAX_10_EXP *is* part of ANSI C anyway... I shouldn't have assumed that just because it's not in Kernighan and Ritchie (2nd edition) it doesn't exist... Apologies. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 18:15:38 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 17:15:38 -0000 Subject: [issue1338] pickling bytes? Message-ID: <1196529338.15.0.169949284835.issue1338@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: Please assign this to me. I am planning to fix this, along a few other bugs, with my new revision of the pickle protocol. ---------- nosy: +alexandre.vassalotti __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 18:35:21 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 17:35:21 -0000 Subject: [issue892902] problem with pickling newstyle class instances Message-ID: <1196530521.26.0.123823918032.issue892902@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: Please assign this bug to me. Note that neither cPickle or pickle is able to load the stream generated by cPickle correctly: >>> g = group(None) >>> subitem(g) >>> g[0].parent is g True >>> gp = cPickle.loads(cPickle.dumps(g)) >>> gp[0].parent is gp False I don't think that will be easy to fix, but I will try to see what I can do. ---------- components: +Library (Lib) -Interpreter Core nosy: +alexandre.vassalotti type: -> behavior ____________________________________ Tracker ____________________________________ From report at bugs.python.org Sat Dec 1 18:44:29 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 17:44:29 -0000 Subject: [issue939395] cPickle.Pickler: in list mode, no way to set protocol Message-ID: <1196531069.77.0.435320525413.issue939395@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: Please mark this bug as Won't Fix. As Tim said, the list-based interface of cPickle is unsupported and pending removal. Please use the pickle.dumps and pickle.loads functions if you want string interface to pickle. ---------- nosy: +alexandre.vassalotti ____________________________________ Tracker ____________________________________ From report at bugs.python.org Sat Dec 1 18:56:22 2007 From: report at bugs.python.org (Georg Brandl) Date: Sat, 01 Dec 2007 17:56:22 -0000 Subject: [issue1338] pickling bytes? Message-ID: <1196531782.47.0.58913447831.issue1338@psf.upfronthosting.co.za> Georg Brandl added the comment: I added the Developer role to your roundup account, so you can now assign bugs to yourself. :) ---------- assignee: -> alexandre.vassalotti __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 18:58:43 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 17:58:43 -0000 Subject: [issue1761028] pickle - cannot unpickle circular deps with custom __hash__ Message-ID: <1196531923.18.0.230332136423.issue1761028@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: Please assign this bug to me. This certainly doesn't look easy to fix. I will look into it, but I can promise that I can fix it. ---------- nosy: +alexandre.vassalotti type: -> behavior versions: +Python 2.6, Python 3.0 _____________________________________ Tracker _____________________________________ From report at bugs.python.org Sat Dec 1 18:59:41 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 17:59:41 -0000 Subject: [issue1338] pickling bytes? Message-ID: <1196531981.86.0.747674316306.issue1338@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: Thank you, Georg! __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 19:00:25 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 18:00:25 -0000 Subject: [issue892902] problem with pickling newstyle class instances Message-ID: <1196532025.37.0.101148134507.issue892902@psf.upfronthosting.co.za> Changes by Alexandre Vassalotti: ---------- assignee: -> alexandre.vassalotti ____________________________________ Tracker ____________________________________ From report at bugs.python.org Sat Dec 1 19:02:11 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 18:02:11 -0000 Subject: [issue1761028] pickle - cannot unpickle circular deps with custom __hash__ Message-ID: <1196532131.01.0.066187225572.issue1761028@psf.upfronthosting.co.za> Changes by Alexandre Vassalotti: ---------- assignee: -> alexandre.vassalotti _____________________________________ Tracker _____________________________________ From report at bugs.python.org Sat Dec 1 19:06:09 2007 From: report at bugs.python.org (Christian Heimes) Date: Sat, 01 Dec 2007 18:06:09 -0000 Subject: [issue1534] sys.maxfloat patch Message-ID: <1196532369.19.0.640022584136.issue1534@psf.upfronthosting.co.za> Christian Heimes added the comment: Thanks for checking it out for me! Do you have a reliable online source for the ANSI C89 standard? I'm usually using the GNU C Library docs but the site doesn't list what's available in C89. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 19:15:32 2007 From: report at bugs.python.org (Georg Brandl) Date: Sat, 01 Dec 2007 18:15:32 -0000 Subject: [issue939395] cPickle.Pickler: in list mode, no way to set protocol Message-ID: <1196532932.59.0.127056038897.issue939395@psf.upfronthosting.co.za> Changes by Georg Brandl: ---------- resolution: -> wont fix status: open -> closed ____________________________________ Tracker ____________________________________ From report at bugs.python.org Sat Dec 1 20:04:21 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 19:04:21 -0000 Subject: [issue1536] pickle's documentation is severely outdated Message-ID: <1196535861.35.0.87845321139.issue1536@psf.upfronthosting.co.za> New submission from Alexandre Vassalotti: The current documentation for the pickle module (and related modules) is outdated and should be updated. For example, the section "Pickling and unpickling extension types" [1] is not only confusing, but outright wrong. For Python 2.6, the documentation of cPickle should be updated to reflect the differences between the cPickle and pickle.py modules. It would be also be appropriate to note that cPickle is pending removal and should not be used anymore. [1]: http://docs.python.org/dev/library/pickle.html#pickling-and-unpickling-extension-types ---------- assignee: alexandre.vassalotti components: Documentation messages: 58063 nosy: alexandre.vassalotti priority: normal severity: normal status: open title: pickle's documentation is severely outdated versions: Python 2.6, Python 3.0 __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 20:07:23 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 19:07:23 -0000 Subject: [issue956303] Update pickle docs to describe format of persistent IDs Message-ID: <1196536043.73.0.919314411304.issue956303@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: This should be fixed along issue1536. ---------- assignee: -> alexandre.vassalotti dependencies: +pickle's documentation is severely outdated nosy: +alexandre.vassalotti ____________________________________ Tracker ____________________________________ From report at bugs.python.org Sat Dec 1 20:20:25 2007 From: report at bugs.python.org (Christian Heimes) Date: Sat, 01 Dec 2007 19:20:25 -0000 Subject: [issue1469] SSL tests leak memory Message-ID: <1196536825.29.0.899071614942.issue1469@psf.upfronthosting.co.za> Christian Heimes added the comment: Are you sure that the SSL tests are still leaking memory? The tests aren't leaking references on Windows nor on Linux. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 20:22:14 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 19:22:14 -0000 Subject: [issue655802] cPickle not always same as pickle Message-ID: <1196536934.83.0.763535456728.issue655802@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: This should be fixed along with issue1536. I am assigning this to me, instead of Fred Drake. (Is that okay with you, Fred?) ---------- assignee: fdrake -> alexandre.vassalotti dependencies: +pickle's documentation is severely outdated nosy: +alexandre.vassalotti versions: +Python 2.5, Python 2.6 ____________________________________ Tracker ____________________________________ From report at bugs.python.org Sat Dec 1 20:33:02 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 19:33:02 -0000 Subject: [issue1536] pickle's documentation is severely outdated Message-ID: <1196537582.46.0.179930038671.issue1536@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: [I just realized that dependencies in the tracker should go the other way around.] ---------- dependencies: +Update pickle docs to describe format of persistent IDs, cPickle not always same as pickle __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 20:33:29 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 19:33:29 -0000 Subject: [issue655802] cPickle not always same as pickle Message-ID: <1196537609.47.0.728962690761.issue655802@psf.upfronthosting.co.za> Changes by Alexandre Vassalotti: ---------- dependencies: -pickle's documentation is severely outdated ____________________________________ Tracker ____________________________________ From report at bugs.python.org Sat Dec 1 20:33:45 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sat, 01 Dec 2007 19:33:45 -0000 Subject: [issue956303] Update pickle docs to describe format of persistent IDs Message-ID: <1196537625.21.0.321341723357.issue956303@psf.upfronthosting.co.za> Changes by Alexandre Vassalotti: ---------- dependencies: -pickle's documentation is severely outdated ____________________________________ Tracker ____________________________________ From report at bugs.python.org Sat Dec 1 22:01:03 2007 From: report at bugs.python.org (Chris AtLee) Date: Sat, 01 Dec 2007 21:01:03 -0000 Subject: [issue1673409] datetime module missing some important methods Message-ID: <1196542863.26.0.718807083715.issue1673409@psf.upfronthosting.co.za> Chris AtLee added the comment: timedelta.todays() could be useful in general I suppose. I think timedelta.toweeks() could be omitted since it's simple division by an easy to recognize constant...also the timedelta docs say that it stores data in terms of microseconds, seconds, and days. OTOH tohours(), tominutes(), etc. (all the units that the constructor uses) could be useful in some cases. My feeling is that adding a method for each time unit bloats the API too much. Personally I've only ever wanted to know the number of seconds a timedelta represents. It seems like seconds are a good base unit to support since it allows easier interoperability with other python types and external data. _____________________________________ Tracker _____________________________________ From report at bugs.python.org Sat Dec 1 22:15:56 2007 From: report at bugs.python.org (=?utf-8?q?Lars_Gust=C3=A4bel?=) Date: Sat, 01 Dec 2007 21:15:56 -0000 Subject: [issue1531] tarfile.open(fileobj=f) and bad metadata of the first file within the archive Message-ID: <1196543756.84.0.0814350108142.issue1531@psf.upfronthosting.co.za> Lars Gust?bel added the comment: I fixed this in the trunk (r59260) and release25-maint branch (r59261). Thanks for the report. If you cannot wait for the next release, I recommend you use mode "r|" as a workaround. BTW, 756 is absolutely no realistic example value for the position of the second member. A header block must start on a 512-byte boundary. ---------- resolution: -> fixed status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 1 22:59:34 2007 From: report at bugs.python.org (Bill Janssen) Date: Sat, 01 Dec 2007 21:59:34 -0000 Subject: [issue1469] SSL tests leak memory In-Reply-To: <1196536825.29.0.899071614942.issue1469@psf.upfronthosting.co.za> Message-ID: <4b3e516a0712011359l7e4ac15te81cd863d2f163bb@mail.gmail.com> Bill Janssen added the comment: I'm seeing the leaks on my Leopard machine. I haven't had a chance to look into it yet. On Dec 1, 2007 11:20 AM, Christian Heimes wrote: > > Christian Heimes added the comment: > > Are you sure that the SSL tests are still leaking memory? The tests > aren't leaking references on Windows nor on Linux. > > __________________________________ > Tracker > > __________________________________ > Added file: http://bugs.python.org/file8845/unnamed __________________________________ Tracker __________________________________ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: unnamed Url: http://mail.python.org/pipermail/python-bugs-list/attachments/20071201/bf13341b/attachment.txt From report at bugs.python.org Sun Dec 2 01:12:36 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sun, 02 Dec 2007 00:12:36 -0000 Subject: [issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints Message-ID: <1196554356.89.0.500218990154.issue1283@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: Here a patch that adds support for any iterable (or sequence) of integers to bytearray.extend(). ---------- assignee: -> alexandre.vassalotti keywords: +patch nosy: +alexandre.vassalotti resolution: accepted -> Added file: http://bugs.python.org/file8847/byte_extend.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: byte_extend.patch Type: text/x-patch Size: 3508 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071202/b88ea749/attachment-0001.bin From report at bugs.python.org Sun Dec 2 01:41:53 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sun, 02 Dec 2007 00:41:53 -0000 Subject: [issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints Message-ID: <1196556113.0.0.21801856357.issue1283@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: Made 2 minor enhancements to the patch: + Added the proper type-cast to PyMem_Realloc call. + Changed (len >> 1) to (len >> 1) + 1, just to be sure that the buffer doesn't overflow if __length_hint__ return 0 or 1 erroneously. Added file: http://bugs.python.org/file8848/byte_extend-2.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: byte_extend-2.patch Type: text/x-patch Size: 3520 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071202/672d3712/attachment.bin From report at bugs.python.org Sun Dec 2 02:10:25 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sun, 02 Dec 2007 01:10:25 -0000 Subject: [issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints Message-ID: <1196557825.15.0.326155333473.issue1283@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: There is a reference leak in my previous patches. So, I updated (again) the patch. There is still another possible leak if the PyMem_Realloc return NULL (i.e., the system is out of memory), but I don't think it worth fixing. Added file: http://bugs.python.org/file8849/byte_extend-3.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: byte_extend-3.patch Type: text/x-patch Size: 3591 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071202/8b9207c1/attachment.bin From report at bugs.python.org Sun Dec 2 02:17:16 2007 From: report at bugs.python.org (Mark Dickinson) Date: Sun, 02 Dec 2007 01:17:16 -0000 Subject: [issue1534] sys.maxfloat patch Message-ID: <1196558236.74.0.124161648607.issue1534@psf.upfronthosting.co.za> Mark Dickinson added the comment: The site that persuaded me about DBL_MAX_10_EXP was http://www.schweikhardt.net/identifiers.html Googling 'C89 draft' also turns up some potentially useful stuff. __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 02:39:45 2007 From: report at bugs.python.org (George Notaras) Date: Sun, 02 Dec 2007 01:39:45 -0000 Subject: [issue1531] tarfile.open(fileobj=f) and bad metadata of the first file within the archive Message-ID: <1196559585.74.0.260864020918.issue1531@psf.upfronthosting.co.za> George Notaras added the comment: Thanks for the quick fix and the workaround. You are right about position 756. I hadn't spent enough time studying the ''ustar'' format. __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 05:38:11 2007 From: report at bugs.python.org (Guido van Rossum) Date: Sun, 02 Dec 2007 04:38:11 -0000 Subject: [issue1535] Rename __builtin__ to builtins Message-ID: <1196570291.52.0.895625997485.issue1535@psf.upfronthosting.co.za> Guido van Rossum added the comment: OK Georg, take 'er away! ---------- assignee: gvanrossum -> georg.brandl resolution: -> accepted __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 05:40:24 2007 From: report at bugs.python.org (Guido van Rossum) Date: Sun, 02 Dec 2007 04:40:24 -0000 Subject: [issue1535] Rename __builtin__ to builtins Message-ID: <1196570424.6.0.298503617939.issue1535@psf.upfronthosting.co.za> Guido van Rossum added the comment: PS. A note on backporting this to 2.6: I think it's sufficient if "builtins" exists in sys.modules as an alias of "__builtin__" in 2.6. Crys: go ahead and check in the fixer as well. __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 08:08:02 2007 From: report at bugs.python.org (Chad Austin) Date: Sun, 02 Dec 2007 07:08:02 -0000 Subject: [issue1537] Change GeneratorExit's base class from Exception to BaseException Message-ID: <1196579282.47.0.735370716899.issue1537@psf.upfronthosting.co.za> New submission from Chad Austin: Per discussion at http://mail.python.org/pipermail/python-dev/2007- December/075498.html, this patch changes GeneratorExit's base class from Exception to BaseException. I updated the tests and documentation, but I may have missed any other discussion of GeneratorExit in the documentation. Happy to update the patch if there is any feedback. ---------- components: Interpreter Core files: GeneratorExit-BaseException.patch messages: 58079 nosy: aegis severity: normal status: open title: Change GeneratorExit's base class from Exception to BaseException type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file8850/GeneratorExit-BaseException.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: GeneratorExit-BaseException.patch Type: application/octet-stream Size: 2032 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071202/e9301afa/attachment-0001.obj From report at bugs.python.org Sun Dec 2 08:49:12 2007 From: report at bugs.python.org (Nick Coghlan) Date: Sun, 02 Dec 2007 07:49:12 -0000 Subject: [issue1487] PEP 366 implementation Message-ID: <1196581752.05.0.645094828296.issue1487@psf.upfronthosting.co.za> Nick Coghlan added the comment: I forgot to update the special _run_module_as_main variant when I modified run_module. I'll modify the patch to fix that and to test '-m' explicitly in test_cmd_line_script. __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 08:51:03 2007 From: report at bugs.python.org (Skip Montanaro) Date: Sun, 02 Dec 2007 07:51:03 -0000 Subject: [issue1538] Avoid string copy when split char doesn't match Message-ID: <1196581862.98.0.506596232577.issue1538@psf.upfronthosting.co.za> New submission from Skip Montanaro: The topic of avoiding string copies in certain string methods came up in the ChiPy list: http://mail.python.org/pipermail/chicago/2007-December/002975.html. The attached patch modifies the split and rsplit implementations to avoid making a copy of self when the split fails to find anything to split on: >>> s = "abc def" >>> x = s.split(';') >>> x[0] is s True >>> y = s.rsplit('-') >>> y[0] is s True >>> t = "abcdef" >>> x = t.split() >>> x[0] is t True >>> y = t.rsplit() >>> y[0] is t True All tests pass. Given that this is just a small optimization I don't believe any changes to the docs or the existing tests are necessary. ---------- components: Interpreter Core files: string-split.patch keywords: patch messages: 58081 nosy: skip.montanaro priority: normal severity: normal status: open title: Avoid string copy when split char doesn't match type: rfe versions: Python 2.6 Added file: http://bugs.python.org/file8851/string-split.patch __________________________________ Tracker __________________________________ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: string-split.patch Url: http://mail.python.org/pipermail/python-bugs-list/attachments/20071202/169ceebb/attachment.txt From report at bugs.python.org Sun Dec 2 11:02:48 2007 From: report at bugs.python.org (Georg Brandl) Date: Sun, 02 Dec 2007 10:02:48 -0000 Subject: [issue1535] Rename __builtin__ to builtins Message-ID: <1196589768.6.0.56383219571.issue1535@psf.upfronthosting.co.za> Georg Brandl added the comment: Committed r59268. ---------- status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 13:06:59 2007 From: report at bugs.python.org (Christian Heimes) Date: Sun, 02 Dec 2007 12:06:59 -0000 Subject: [issue1537] Change GeneratorExit's base class from Exception to BaseException Message-ID: <1196597219.41.0.56854667951.issue1537@psf.upfronthosting.co.za> Christian Heimes added the comment: Can you also add a comment to ./Doc/reference/expressions.rst and update Misc/NEWS please? The rest of the patch is looking good. ---------- assignee: -> tiran keywords: +patch nosy: +tiran priority: -> normal __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 13:49:14 2007 From: report at bugs.python.org (Tim Golden) Date: Sun, 02 Dec 2007 12:49:14 -0000 Subject: [issue1520] 'without make' documentation build anomaly Message-ID: <1196599754.43.0.117172253173.issue1520@psf.upfronthosting.co.za> Tim Golden added the comment: Looks like it's the backslash as Windows path separator confusing the sphinx.util.relative_uri function. I'll try to put a patch together, although I'm not sure if relative_uri should use os.sep or whether the paths should be canonicalised before getting there. I'll try with os.sep to start with. ---------- nosy: +tim.golden __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 14:10:14 2007 From: report at bugs.python.org (Antoine Pitrou) Date: Sun, 02 Dec 2007 13:10:14 -0000 Subject: [issue1537] Change GeneratorExit's base class from Exception to BaseException Message-ID: <1196601014.29.0.94517687709.issue1537@psf.upfronthosting.co.za> Antoine Pitrou added the comment: I'm not sure this change is necessary. Why don't you catch StandardError instead of Exception? StandardError catches all Exception subtypes except GeneratorExit, StopIteration and the various Warnings. ---------- nosy: +pitrou __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 14:28:53 2007 From: report at bugs.python.org (Christian Heimes) Date: Sun, 02 Dec 2007 13:28:53 -0000 Subject: [issue1537] Change GeneratorExit's base class from Exception to BaseException Message-ID: <1196602133.1.0.730017076821.issue1537@psf.upfronthosting.co.za> Christian Heimes added the comment: You make a good point. Can you take it to the mailing list, please? __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 14:57:15 2007 From: report at bugs.python.org (Nick Coghlan) Date: Sun, 02 Dec 2007 13:57:15 -0000 Subject: [issue1487] PEP 366 implementation Message-ID: <1196603835.58.0.44838031005.issue1487@psf.upfronthosting.co.za> Changes by Nick Coghlan: Removed file: http://bugs.python.org/file8794/pep_366_v1.diff __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 15:01:48 2007 From: report at bugs.python.org (Nick Coghlan) Date: Sun, 02 Dec 2007 14:01:48 -0000 Subject: [issue1487] PEP 366 implementation Message-ID: <1196604108.61.0.966388731293.issue1487@psf.upfronthosting.co.za> Nick Coghlan added the comment: Posted v2 of the patch, which fixes the problem Guido noted, and improved the tests to make sure __package__ is being set correctly. There's also now an explicit test for using -m on a module inside a package (which proved harder to write than I expected - it isn't easy to fiddle with sys.path when the subprocess is running python with the -E flag!). Added file: http://bugs.python.org/file8852/pep_366_v2.diff __________________________________ Tracker __________________________________ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: pep_366_v2.diff Url: http://mail.python.org/pipermail/python-bugs-list/attachments/20071202/8fcd47ce/attachment-0001.txt From report at bugs.python.org Sun Dec 2 15:37:25 2007 From: report at bugs.python.org (Christian Heimes) Date: Sun, 02 Dec 2007 14:37:25 -0000 Subject: [issue1539] test_collections: failing refleak test Message-ID: <1196606245.22.0.861738153225.issue1539@psf.upfronthosting.co.za> New submission from Christian Heimes: The refleak tests of test_collections are broken. I fear that my changes to regrtest.py have cause the problem but I don't understand why it's broken. Can you have a look please? ---------- assignee: gvanrossum components: Tests keywords: py3k messages: 58088 nosy: gvanrossum, tiran priority: normal severity: normal status: open title: test_collections: failing refleak test versions: Python 3.0 __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 15:41:56 2007 From: report at bugs.python.org (Christian Heimes) Date: Sun, 02 Dec 2007 14:41:56 -0000 Subject: [issue1540] Refleak tests: test_doctest and test_gc are failing Message-ID: <1196606516.14.0.848950318684.issue1540@psf.upfronthosting.co.za> New submission from Christian Heimes: I've seen the problem on Windows only. test_doctest fails and the problem also causes test_gc to fail when it is run after test_doctest. W/o a prior run of test_doctest test_gc doesn't fail. File "c:\dev\python\py3k\lib\test\test_doctest.py", line 1570, in test.test_doct est.test_debug Failed example: try: doctest.debug_src(s) finally: sys.stdin = real_stdin Expected: > (1)() (Pdb) next 12 --Return-- > (1)()->None (Pdb) print(x) 12 (Pdb) continue Got: > c:\dev\python\py3k\lib\io.py(281)__del__() -> try: (Pdb) next > c:\dev\python\py3k\lib\io.py(282)__del__() -> self.close() (Pdb) print(x) *** NameError: NameError("name 'x' is not defined",) (Pdb) continue 12 ********************************************************************** 1 items had failures: 1 of 4 in test.test_doctest.test_debug ***Test Failed*** 1 failures. test test_doctest failed -- 1 of 418 doctests failed test_gc test test_gc failed -- Traceback (most recent call last): File "c:\dev\python\py3k\lib\test\test_gc.py", line 193, in test_saveall self.assertEqual(gc.garbage, []) AssertionError: [] != [] 2 tests failed: test_doctest test_gc ---------- components: Tests, Windows keywords: py3k messages: 58089 nosy: tiran priority: normal severity: normal status: open title: Refleak tests: test_doctest and test_gc are failing versions: Python 3.0 __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 18:14:59 2007 From: report at bugs.python.org (Tim Golden) Date: Sun, 02 Dec 2007 17:14:59 -0000 Subject: [issue1520] 'without make' documentation build anomaly Message-ID: <1196615699.75.0.311958629632.issue1520@psf.upfronthosting.co.za> Tim Golden added the comment: I'm a little flummoxed. Patching relative_uri in the sphinx/util/__init__.py to re.split on ("/" + os.sep) sorts out the static generation. But it seems to introduce a couple of problems with the web-server version of the docs. One is that links end up without a category: http://localhost:3000/windows/ instead of http://localhost:3000/using/windows/. The other is that, even if you put the URLs in by hand, they don't work whereas /using%5cwindows *does* work. Which suggests that the windows-y path is being stored somewhere in the pickle files. So now we're stretched two ways: the HTML needs /-delimited names to work; the pickled files need \-delimited. I'm still looking at it, but if anyone has more knowledge that I have (couldn't exactly have less) then please feel free to chip in. __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 18:18:57 2007 From: report at bugs.python.org (Joseph Armbruster) Date: Sun, 02 Dec 2007 17:18:57 -0000 Subject: [issue1520] 'without make' documentation build anomaly Message-ID: <1196615937.42.0.966737793972.issue1520@psf.upfronthosting.co.za> Joseph Armbruster added the comment: Tim, Post up a patch of what you have up to now and I will look at it today. __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 18:24:25 2007 From: report at bugs.python.org (Tim Golden) Date: Sun, 02 Dec 2007 17:24:25 -0000 Subject: [issue1520] 'without make' documentation build anomaly Message-ID: <1196616265.2.0.837483498926.issue1520@psf.upfronthosting.co.za> Tim Golden added the comment: Patch against sphinx r59269. Split on "/" and local os.sep. Causes problems with sphinx-web under native Win32. Added file: http://bugs.python.org/file8853/sphinx-r59269.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: sphinx-r59269.patch Type: application/octet-stream Size: 1414 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071202/65b28f3b/attachment.obj From report at bugs.python.org Sun Dec 2 18:54:16 2007 From: report at bugs.python.org (billiejoex) Date: Sun, 02 Dec 2007 17:54:16 -0000 Subject: [issue1541] Bad OOB data management when using asyncore with select.poll() Message-ID: <1196618056.9.0.300104478176.issue1541@psf.upfronthosting.co.za> New submission from billiejoex: asyncore's module readwrite() function, used when invoking asyncore.loop(use_poll=1), erroneously calls handle_read_event() when receiving OOB (Out Of Band) data. handle_expt_event() should be called instead. The patch in attachment does that. In addition I strongly think that POLLERR, POLLHUP and POLLNVAL events handling is incorrect too. As far as I read from here: http://www.squarebox.co.uk/cgi-squarebox/manServer/usr/share/man/man0p/poll.h.0p ...they refers to the following events: POLLERR An error has occurred (revents only). POLLHUP Device has been disconnected ( revents only). POLLNVAL Invalid fd member (revents only). They are actually associated to handle_expt_event() and this is incorrect since it should be called only when receiving OOB data. if flags & (select.POLLERR | select.POLLHUP | select.POLLNVAL): obj.handle_expt_event() I'm not sure what should be called instead, if handle_read_event or handle_read or handle_error. I tried to take a look at how Twisted manages the thing but it seems that OOB is not even supported. Maybe someone with more experience in using select.poll could clarify that. ---------- components: Library (Lib) files: asyncore.diff messages: 58093 nosy: billiejoex severity: normal status: open title: Bad OOB data management when using asyncore with select.poll() type: behavior versions: Python 2.5 Added file: http://bugs.python.org/file8854/asyncore.diff __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: asyncore.diff Type: application/octet-stream Size: 417 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071202/da1ae2ba/attachment.obj From report at bugs.python.org Sun Dec 2 19:59:47 2007 From: report at bugs.python.org (Christian Heimes) Date: Sun, 02 Dec 2007 18:59:47 -0000 Subject: [issue1542] Ship 32 and 64bit libs with MSI installer Message-ID: <1196621987.22.0.834586722022.issue1542@psf.upfronthosting.co.za> New submission from Christian Heimes: Hello Martin! How do you like the idea to ship the 32bit and 64bit libs with the MSI installer? The 64bit libs could be stored in libs64 while the 32bit libs stay in libs. I'm working on a task for the GHOP to add cross compiling support to msvc9compiler. The extra libs are needed to compile 64bit libs on Win32 or the other way around. Christian ---------- assignee: loewis components: Installation, Windows messages: 58094 nosy: loewis, tiran priority: low severity: normal status: open title: Ship 32 and 64bit libs with MSI installer versions: Python 2.6, Python 3.0 __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 20:39:52 2007 From: report at bugs.python.org (Isaul Vargas) Date: Sun, 02 Dec 2007 19:39:52 -0000 Subject: [issue1543] MSI installer needs to be updated to install x86 and x64 versions of Python on Vista 64 bit Message-ID: <1196624392.88.0.572306871995.issue1543@psf.upfronthosting.co.za> New submission from Isaul Vargas: Problem: I'd like to run Python 32 bit (for compatibility with extensions) and Python 64 bit on Vista (for speed and 64 bit apps) on one machine. However Vista has an 'improved' installer for MSI apps, where if I install Python 64 bit first, I can't install Python 32 bit afterwards, because Vista's Window Installer says 'Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel' The converse of this is true, if you install Python 64 bit first, you cannot install Python 32 bit afterwards. The MSI packaging needs to be updated. ---------- components: Installation, Windows messages: 58095 nosy: Dude-X severity: normal status: open title: MSI installer needs to be updated to install x86 and x64 versions of Python on Vista 64 bit versions: Python 2.5, Python 2.6, Python 3.0 __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 20:44:36 2007 From: report at bugs.python.org (Georg Brandl) Date: Sun, 02 Dec 2007 19:44:36 -0000 Subject: [issue1543] MSI installer needs to be updated to install x86 and x64 versions of Python on Vista 64 bit Message-ID: <1196624676.91.0.751037782484.issue1543@psf.upfronthosting.co.za> Changes by Georg Brandl: ---------- assignee: -> loewis nosy: +loewis __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 21:02:55 2007 From: report at bugs.python.org (Chad Austin) Date: Sun, 02 Dec 2007 20:02:55 -0000 Subject: [issue1537] Change GeneratorExit's base class from Exception to BaseException Message-ID: <1196625774.98.0.715467858637.issue1537@psf.upfronthosting.co.za> Chad Austin added the comment: The mailing list discussion continues... in the meantime, I will update the patch with your suggestions. Can you describe to me what should change in Doc/reference/ expressions.rst? It makes sense to remove the section in the example that says you should never catch GeneratorExit. Should I mention anything about why? __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 21:07:35 2007 From: report at bugs.python.org (Chad Austin) Date: Sun, 02 Dec 2007 20:07:35 -0000 Subject: [issue1537] Change GeneratorExit's base class from Exception to BaseException Message-ID: <1196626055.62.0.51515697595.issue1537@psf.upfronthosting.co.za> Chad Austin added the comment: New patch... Added file: http://bugs.python.org/file8855/GeneratorExit-BaseException-2.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: GeneratorExit-BaseException-2.patch Type: application/octet-stream Size: 3070 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071202/35e3ffdb/attachment.obj From report at bugs.python.org Sun Dec 2 21:09:44 2007 From: report at bugs.python.org (Guido van Rossum) Date: Sun, 02 Dec 2007 20:09:44 -0000 Subject: [issue1487] PEP 366 implementation In-Reply-To: <1196604108.61.0.966388731293.issue1487@psf.upfronthosting.co.za> Message-ID: Guido van Rossum added the comment: Great, now check it in! On Dec 2, 2007 6:01 AM, Nick Coghlan wrote: > > Nick Coghlan added the comment: > > Posted v2 of the patch, which fixes the problem Guido noted, and > improved the tests to make sure __package__ is being set correctly. > There's also now an explicit test for using -m on a module inside a > package (which proved harder to write than I expected - it isn't easy to > fiddle with sys.path when the subprocess is running python with the -E > flag!). > > Added file: http://bugs.python.org/file8852/pep_366_v2.diff > > > __________________________________ > Tracker > > __________________________________ __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 21:41:27 2007 From: report at bugs.python.org (=?utf-8?q?Martin_v._L=C3=B6wis?=) Date: Sun, 02 Dec 2007 20:41:27 -0000 Subject: [issue1542] Ship 32 and 64bit libs with MSI installer Message-ID: <1196628087.32.0.0167697859938.issue1542@psf.upfronthosting.co.za> Martin v. L?wis added the comment: I don't mind adding the libs, although I think inclusion of the libs should be reconsidered, anyway. Why do we ship all of them, when you only ever need pythonxy.lib? If you are creating separate directories, please don't indicate the "64-bit" ones as "libs64" or some such. They are processor-specific, and neither "32-bit" nor "64-bit" is the name of a microprocessor. Instead, the processor families are called "IA-32" (also x86, and Intel), "IA-64" (also Itanium), "AMD64" (also x86-64, x64, EM64T, and Intel64). __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 21:46:25 2007 From: report at bugs.python.org (=?utf-8?q?Martin_v._L=C3=B6wis?=) Date: Sun, 02 Dec 2007 20:46:25 -0000 Subject: [issue1543] MSI installer needs to be updated to install x86 and x64 versions of Python on Vista 64 bit Message-ID: <1196628385.78.0.172533750102.issue1543@psf.upfronthosting.co.za> Martin v. L?wis added the comment: It's not so clear that this is a bug. If you install both versions simultaneously, they might stomp on each other's registry settings, at least for the extensions. So this is rather a feature request. Notice that the behaviour is not new to Vista. Ever since the early days of MSI, two simultaneous installations of the same product were not supported, and ever since Python started using MSI, it uses one product ID per feature release. In any case, this was fixed in r59112. ---------- resolution: -> fixed status: open -> closed type: -> rfe __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 22:15:05 2007 From: report at bugs.python.org (Tim Golden) Date: Sun, 02 Dec 2007 21:15:05 -0000 Subject: [issue1520] 'without make' documentation build anomaly Message-ID: <1196630105.88.0.679874762145.issue1520@psf.upfronthosting.co.za> Tim Golden added the comment: OK, hacking away a bit further, I think I've found a solution, but I'll need to tidy it up a bit. In essence, the problem is that the "filename" is trying to be two things: the pointer for the local filesystem, and the uri for the web server. On *nix, this will pretty much work. On Windows -- and elsewhere, it won't. My approach is to treat the filename a little like unicode: decode to "web-format" on the way in; encode to "local-format" on the way out. In practice, this resolves to a bunch of .replace(path.sep, "/") calls in one place and .replace("/", path.sep) in the comparatively rare cases we actually need to read the local filesystem. I realise that, on Windows, I could get a bit hacky and just assume that "/" will work throughout. But that obviously fails now for things like VMS and in the future for the hypothetical filesystem which uses "." as its separator etc. I'm still working it through. The web and html versions are certainly working but I need to check out htmlhelp which has its own special needs. __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 22:40:23 2007 From: report at bugs.python.org (Georg Brandl) Date: Sun, 02 Dec 2007 21:40:23 -0000 Subject: [issue1520] 'without make' documentation build anomaly Message-ID: <1196631623.76.0.257544524869.issue1520@psf.upfronthosting.co.za> Georg Brandl added the comment: Really great that you're doing this! Many thanks! (Yes, I must admit that I was sloppy there...) __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 22:45:41 2007 From: report at bugs.python.org (Georg Brandl) Date: Sun, 02 Dec 2007 21:45:41 -0000 Subject: [issue1719933] No docs for PyEval_EvalCode and related functions Message-ID: <1196631941.43.0.6558782515.issue1719933@psf.upfronthosting.co.za> Georg Brandl added the comment: Fixed as of r59262. ---------- nosy: +georg.brandl resolution: -> fixed status: open -> closed _____________________________________ Tracker _____________________________________ From report at bugs.python.org Sun Dec 2 22:59:10 2007 From: report at bugs.python.org (Georg Brandl) Date: Sun, 02 Dec 2007 21:59:10 -0000 Subject: [issue1245] Document PySys_* API functions Message-ID: <1196632750.82.0.571148951934.issue1245@psf.upfronthosting.co.za> Georg Brandl added the comment: Fixed as of r59281, thanks to GHOP student Charlie Shepherd. ---------- resolution: -> fixed status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 2 23:47:39 2007 From: report at bugs.python.org (Joseph Armbruster) Date: Sun, 02 Dec 2007 22:47:39 -0000 Subject: [issue1520] 'without make' documentation build anomaly Message-ID: <1196635659.79.0.514077663958.issue1520@psf.upfronthosting.co.za> Joseph Armbruster added the comment: Tim, Appears you are on your way to a fix. If you need it tested on an alternate windows machine, post up and i'll run through it. __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 00:17:26 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Sun, 02 Dec 2007 23:17:26 -0000 Subject: [issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints Message-ID: <1196637446.59.0.837920588079.issue1283@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: Here yet another revision of the patch. This one makes bytearray.extend() try to determine the length of its argument a bit more aggressively -- i.e., also uses PyObject_Length(). Added file: http://bugs.python.org/file8856/byte_extend-4.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: byte_extend-4.patch Type: text/x-patch Size: 3705 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071202/2e804646/attachment-0001.bin From report at bugs.python.org Mon Dec 3 03:53:44 2007 From: report at bugs.python.org (Gregory P. Smith) Date: Mon, 03 Dec 2007 02:53:44 -0000 Subject: [issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints Message-ID: <1196650424.76.0.754376939503.issue1283@psf.upfronthosting.co.za> Gregory P. Smith added the comment: "There is still another possible leak if the PyMem_Realloc return NULL (i.e., the system is out of memory), but I don't think it worth fixing." Do it. It looks easy: a Py_DECREF(it) before the return PyErr_NoMemory(). __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 04:18:38 2007 From: report at bugs.python.org (Alexandre Vassalotti) Date: Mon, 03 Dec 2007 03:18:38 -0000 Subject: [issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints Message-ID: <1196651918.45.0.602938785169.issue1283@psf.upfronthosting.co.za> Alexandre Vassalotti added the comment: Done. Is there any other issue with the patch? Added file: http://bugs.python.org/file8857/byte_extend-5.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: byte_extend-5.patch Type: text/x-patch Size: 3754 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071203/6fc2e7f6/attachment.bin From report at bugs.python.org Mon Dec 3 04:50:18 2007 From: report at bugs.python.org (Gregory P. Smith) Date: Mon, 03 Dec 2007 03:50:18 -0000 Subject: [issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints In-Reply-To: <1196651918.45.0.602938785169.issue1283@psf.upfronthosting.co.za> Message-ID: <52dc1c820712021950t59646ab3l87b04473b51fb946@mail.gmail.com> Gregory P. Smith added the comment: reading 5.patch over... Any particular reason for using buf_size = 32 when the length isn't known up front? add a comment saying why (or that its just a magic guess). anyways it sounds like a fine starting value. picking anything "better" would require profiling. perhaps use a list comprehension instead of map() in the unit test? either works, its a style thing. (int(x) for x in orig*50) [int(x) for x in orig*50] also the uses of 5 and -5 in that test could be written using len(orig) instead of 5. add another assertRaises that tests to make sure a list with -1 in it raises a ValueError. While I dislike that this code makes a temporary copy of the data first, doing otherwise is more complicated so the simplicity of this one wins. Leave that optimization for later. Your code looks good. -gps On 12/2/07, Alexandre Vassalotti wrote: > > Alexandre Vassalotti added the comment: > > Done. Is there any other issue with the patch? > > Added file: http://bugs.python.org/file8857/byte_extend-5.patch > > __________________________________ > Tracker > > __________________________________ > __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 06:11:27 2007 From: report at bugs.python.org (Daniela) Date: Mon, 03 Dec 2007 05:11:27 -0000 Subject: [issue1544] IDLE installation problems and no message errors Message-ID: <1196658687.21.0.152111885524.issue1544@psf.upfronthosting.co.za> New submission from Daniela: Installed Python 2.5.1 on windows. Menu is set as it was supposed to,all the options appear, the command line works perfectly, the IDLE doesn't - I click on it in the menu and it seems it will start run and then... nothing. No window pops up, not even a flash, no message errors, nothing... I've reinstalled many times, tried to recover installation, no lucky. Do any body had the same problem? ---------- components: Installation messages: 58111 nosy: danicyber severity: urgent status: open title: IDLE installation problems and no message errors versions: Python 2.5 __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 08:08:50 2007 From: report at bugs.python.org (=?utf-8?q?ianar=C3=A9?=) Date: Mon, 03 Dec 2007 07:08:50 -0000 Subject: [issue1545] shutil fails when copying to NTFS in Linux Message-ID: <1196665730.42.0.657784597912.issue1545@psf.upfronthosting.co.za> New submission from ianar?: When using shutil.copy2 or copytree where the source is on a filesystem that has octal permissions (ie ext3) and the destination is on an NTFS partition mounted rw, the operation fails with OSError: [Errno 1] Operation not permitted I am attaching a version of shutil.py where this has been worked around by calling copystat like so: try: copystat(src, dst) except OSError, (n, str): # can't change stats on NTFS partition even if # OS supports it if n == 1: pass else: raise Error, str ---------- components: Library (Lib) files: shutil1.py messages: 58112 nosy: ianare severity: normal status: open title: shutil fails when copying to NTFS in Linux versions: Python 2.5 Added file: http://bugs.python.org/file8859/shutil1.py __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: shutil1.py Type: text/x-python Size: 6311 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071203/0bdfd0be/attachment.py From report at bugs.python.org Mon Dec 3 11:24:56 2007 From: report at bugs.python.org (Adal Chiriliuc) Date: Mon, 03 Dec 2007 10:24:56 -0000 Subject: [issue1546] Win32 Platform SDK conflict Message-ID: <1196677496.38.0.592975445348.issue1546@psf.upfronthosting.co.za> New submission from Adal Chiriliuc: The WRITE_RESTRICTED macro defined in structmember.h (value 4) conflicts with the WRITE_RESTRICTED macro defined in winnt.h (value 8) in the newer Win32 Platform SDK (such as the one included in Visual Studio 2008). It generates a warning and could potentially be dangerous as the two values are different. ---------- components: Interpreter Core messages: 58113 nosy: adal severity: normal status: open title: Win32 Platform SDK conflict type: compile error versions: Python 2.6 __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 11:29:08 2007 From: report at bugs.python.org (Adal Chiriliuc) Date: Mon, 03 Dec 2007 10:29:08 -0000 Subject: [issue1546] Win32 Platform SDK conflict Message-ID: <1196677748.86.0.744328442506.issue1546@psf.upfronthosting.co.za> Adal Chiriliuc added the comment: Sorry, I just saw that this was fixed on head :( __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 12:43:40 2007 From: report at bugs.python.org (Tim Golden) Date: Mon, 03 Dec 2007 11:43:40 -0000 Subject: [issue1520] 'without make' documentation build anomaly Message-ID: <1196682220.79.0.752266982646.issue1520@psf.upfronthosting.co.za> Tim Golden added the comment: The attached patch against r59286 tries to tease apart the uses of filename by adding "webify_filepath" and "unwebify_filepath" functions to sphinx.utils which are then used throughout the app to convert from filesystem-separated to web-separated paths and back. A WEB_SEP constant has been defined principally to make its purpose clear in case a constant "/" was thought to have been a hangover from the code's *nix origins. The result has been tested by building manually, ie by invoking python tools\sphinx-build.py with appropriate params under Win32 native only. The html, web and htmlhelp versions all style up and function correctly. It would obviously benefit from testing under Cygwin and *nix. I'm particularly keen to see it it works on a filesystem which doesn't allow "/" as a separator. Added file: http://bugs.python.org/file8860/sphinx-r59286.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: sphinx-r59286.patch Type: text/x-diff Size: 10898 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071203/46e5874a/attachment.patch From report at bugs.python.org Mon Dec 3 13:30:26 2007 From: report at bugs.python.org (Christian Heimes) Date: Mon, 03 Dec 2007 12:30:26 -0000 Subject: [issue1546] Win32 Platform SDK conflict Message-ID: <1196685026.81.0.957141897753.issue1546@psf.upfronthosting.co.za> Christian Heimes added the comment: Thanks for the report. I prefer several false alarms over one bug slipping throught! :) You are right with your concern. The two values *are* different. I've changed the name to PY_WRITE_RESTRICTED. The other names should also be prefixed with PY_ to avoid future name clashes. By the way you might be interested in the head. I've created a new PCbuild9 for VS 2008 Express to Professional Edition with support for AMD x64 and PGO. ---------- nosy: +tiran resolution: -> out of date status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 13:35:08 2007 From: report at bugs.python.org (Christian Heimes) Date: Mon, 03 Dec 2007 12:35:08 -0000 Subject: [issue1545] shutil fails when copying to NTFS in Linux Message-ID: <1196685308.08.0.656388598012.issue1545@psf.upfronthosting.co.za> Christian Heimes added the comment: Better patch: import errno try: copystat(src, dst) except OSError, err: # can't change stats on NTFS partition even if # OS supports it if err.errno != errno.EPERM: raise ---------- keywords: +patch nosy: +tiran priority: -> normal versions: +Python 2.6, Python 3.0 __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 13:52:24 2007 From: report at bugs.python.org (Tim Golden) Date: Mon, 03 Dec 2007 12:52:24 -0000 Subject: [issue1547] Minor typos in whatsnew26 Message-ID: <1196686343.74.0.825141682463.issue1547@psf.upfronthosting.co.za> New submission from Tim Golden: One typo refers to "from __future__ import generators" in the context of the with statement. Later what appears to be an incomplete sentence giving an example of the __dir__ method. The patch attached is against r59286 of doc/whatsnew/2.6.rst ---------- components: Documentation files: whatsnew-r59286.patch messages: 58118 nosy: tim.golden severity: normal status: open title: Minor typos in whatsnew26 versions: Python 2.6, Python 3.0 Added file: http://bugs.python.org/file8861/whatsnew-r59286.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: whatsnew-r59286.patch Type: text/x-diff Size: 989 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071203/334e4101/attachment.patch From report at bugs.python.org Mon Dec 3 13:54:30 2007 From: report at bugs.python.org (Tim Golden) Date: Mon, 03 Dec 2007 12:54:30 -0000 Subject: [issue1548] Tiny typo in doc\using\cmdline.rst Message-ID: <1196686469.84.0.00146996546166.issue1548@psf.upfronthosting.co.za> New submission from Tim Golden: The tiniest of punctuation typos in using/cmdline.rst. Patch is against 59286 of doc/using/cmdline.rst ---------- components: Documentation files: doc-using-cmdline-r59286.patch messages: 58119 nosy: tim.golden severity: normal status: open title: Tiny typo in doc\using\cmdline.rst versions: Python 2.6 Added file: http://bugs.python.org/file8862/doc-using-cmdline-r59286.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: doc-using-cmdline-r59286.patch Type: text/x-diff Size: 377 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071203/5d27d071/attachment-0001.patch From report at bugs.python.org Mon Dec 3 13:55:03 2007 From: report at bugs.python.org (Tim Golden) Date: Mon, 03 Dec 2007 12:55:03 -0000 Subject: [issue1547] Minor typos in whatsnew26 Message-ID: <1196686503.76.0.814437793849.issue1547@psf.upfronthosting.co.za> Changes by Tim Golden: ---------- severity: normal -> minor __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 13:55:15 2007 From: report at bugs.python.org (Tim Golden) Date: Mon, 03 Dec 2007 12:55:15 -0000 Subject: [issue1548] Tiny typo in doc\using\cmdline.rst Message-ID: <1196686515.1.0.933496751279.issue1548@psf.upfronthosting.co.za> Changes by Tim Golden: ---------- severity: normal -> minor __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 13:58:01 2007 From: report at bugs.python.org (Nick Coghlan) Date: Mon, 03 Dec 2007 12:58:01 -0000 Subject: [issue1487] PEP 366 implementation Message-ID: <1196686681.59.0.829031615678.issue1487@psf.upfronthosting.co.za> Nick Coghlan added the comment: Checked in as rev 59288. ---------- status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 14:03:08 2007 From: report at bugs.python.org (Nick Coghlan) Date: Mon, 03 Dec 2007 13:03:08 -0000 Subject: [issue1510172] Absolute/relative import not working? Message-ID: <1196686988.78.0.373611096291.issue1510172@psf.upfronthosting.co.za> Nick Coghlan added the comment: PEP 366 has been implemented for 2.6, which fixes this bug. The fix turned out to be quite invasive (hence the PEP), so it won't be backported to 2.5. ---------- resolution: -> fixed status: open -> closed type: -> behavior _____________________________________ Tracker _____________________________________ From report at bugs.python.org Mon Dec 3 14:15:18 2007 From: report at bugs.python.org (Nick Coghlan) Date: Mon, 03 Dec 2007 13:15:18 -0000 Subject: [issue1546585] String methods don't support explicit None arguments Message-ID: <1196687718.37.0.279129012729.issue1546585@psf.upfronthosting.co.za> Nick Coghlan added the comment: This has been implemented for 2.6 ---------- priority: high -> normal resolution: later -> fixed status: open -> closed type: -> rfe versions: +Python 2.6 -Python 2.5 _____________________________________ Tracker _____________________________________ From report at bugs.python.org Mon Dec 3 14:27:40 2007 From: report at bugs.python.org (Christian Heimes) Date: Mon, 03 Dec 2007 13:27:40 -0000 Subject: [issue1547] Minor typos in whatsnew26 Message-ID: <1196688460.59.0.225104879106.issue1547@psf.upfronthosting.co.za> Changes by Christian Heimes: ---------- assignee: -> georg.brandl keywords: +patch nosy: +georg.brandl priority: -> low __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 14:27:49 2007 From: report at bugs.python.org (Christian Heimes) Date: Mon, 03 Dec 2007 13:27:49 -0000 Subject: [issue1548] Tiny typo in doc\using\cmdline.rst Message-ID: <1196688469.77.0.070769023166.issue1548@psf.upfronthosting.co.za> Changes by Christian Heimes: ---------- assignee: -> georg.brandl keywords: +patch nosy: +georg.brandl priority: -> low __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 14:34:37 2007 From: report at bugs.python.org (Facundo Batista) Date: Mon, 03 Dec 2007 13:34:37 -0000 Subject: [issue1545] shutil fails when copying to NTFS in Linux Message-ID: <1196688877.04.0.549385618379.issue1545@psf.upfronthosting.co.za> Facundo Batista added the comment: But is ok to hide the problem? I mean, there *is* an error: the operation is not permitted (even if it's not Python fault), so why to not have the exception? ---------- nosy: +facundobatista __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 14:51:31 2007 From: report at bugs.python.org (Thomas Herve) Date: Mon, 03 Dec 2007 13:51:31 -0000 Subject: [issue1549] Regression with __hash__ definition and rich comparison operators Message-ID: <1196689891.72.0.237226656542.issue1549@psf.upfronthosting.co.za> New submission from Thomas Herve: A new behavior was introduced in r59106 in python trunk, which look suspicious to me. Basically, every time a class defines a comparison operator, it's __hash__ method is defined to None. The simple following example shows it: >>> class A(object): ... def __init__(self, b): ... self.b = b ... def __cmp__(self, other): ... if not isinstance(other, A): ... return -1 ... return cmp(self.b, other.b) ... >>> hash(A(2)) Traceback (most recent call last): File "", line 1, in TypeError: 'NoneType' object is not callable The problematic change is here: http://svn.python.org/view/python/trunk/Objects/typeobject.c?rev=59106&r1=58032&r2=59106 And mainly the overrides_hash call in inherit_slots. FWIW, I've encounter the problem because zope.interface is now usable on trunk. ---------- components: Interpreter Core messages: 58124 nosy: therve severity: major status: open title: Regression with __hash__ definition and rich comparison operators type: crash versions: Python 2.6 __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 14:52:35 2007 From: report at bugs.python.org (Thomas Herve) Date: Mon, 03 Dec 2007 13:52:35 -0000 Subject: [issue1549] Regression with __hash__ definition and rich comparison operators Message-ID: <1196689955.42.0.259642066691.issue1549@psf.upfronthosting.co.za> Thomas Herve added the comment: Of course, I meant unusable. ---------- nosy: +exarkun __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 15:15:45 2007 From: report at bugs.python.org (Thomas Herve) Date: Mon, 03 Dec 2007 14:15:45 -0000 Subject: [issue1549] Regression with __hash__ definition and rich comparison operators Message-ID: <1196691345.15.0.0114661130651.issue1549@psf.upfronthosting.co.za> Thomas Herve added the comment: Also, to be more clear, that happens when you define any of the functions in the name_op array (__lt__, __le___, __gt__, __ge__, ...). It's not just a problem about the object being non hashable. __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 15:35:51 2007 From: report at bugs.python.org (Christian Heimes) Date: Mon, 03 Dec 2007 14:35:51 -0000 Subject: [issue1455] VS2008, quick hack for distutils.msvccompiler Message-ID: <1196692551.16.0.359319046642.issue1455@psf.upfronthosting.co.za> Christian Heimes added the comment: I've applied the patch to the trunk in r59290 together with a fix for the cygwin compiler. distutils now support VS 2005 and VS 2008 (both tested) and cygwin (only tested for msvcr80). ---------- resolution: accepted -> fixed status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 15:40:53 2007 From: report at bugs.python.org (Christian Heimes) Date: Mon, 03 Dec 2007 14:40:53 -0000 Subject: [issue1549] Regression with __hash__ definition and rich comparison operators Message-ID: <1196692853.6.0.616179575011.issue1549@psf.upfronthosting.co.za> Changes by Christian Heimes: ---------- assignee: -> gvanrossum nosy: +gvanrossum priority: -> high __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 16:33:36 2007 From: report at bugs.python.org (Raghuram Devarakonda) Date: Mon, 03 Dec 2007 15:33:36 -0000 Subject: [issue1545] shutil fails when copying to NTFS in Linux Message-ID: <1196696016.84.0.218217833402.issue1545@psf.upfronthosting.co.za> Raghuram Devarakonda added the comment: I agree with Facundo that it is not good to hide the error. It should be up to the caller to ignore the error. ---------- nosy: +draghuram __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 16:49:36 2007 From: report at bugs.python.org (Amaury Forgeot d'Arc) Date: Mon, 03 Dec 2007 15:49:36 -0000 Subject: [issue1545] shutil fails when copying to NTFS in Linux Message-ID: <1196696976.72.0.876202683334.issue1545@psf.upfronthosting.co.za> Amaury Forgeot d'Arc added the comment: This reminds me of an option in os.walk: """ By default errors from the os.listdir() call are ignored. If optional argument onerror is specified, it should be a function; it will be called with one argument, an OSError instance. It can report the error to continue with the walk, or raise the exception to abort the walk. Note that the filename is available as the filename attribute of the exception object. """ We could do something similar, except that by default, errors are not ignored. ---------- nosy: +amaury.forgeotdarc __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 3 17:31:36 2007 From: report at bugs.python.org (Joseph Armbruster) Date: Mon, 03 Dec 2007 16:31:36 -0000 Subject: [issue1520] 'without make' documentation build anomaly Message-ID: <1196699496.71.0.379267697567.issue1520@psf.upfronthosting.co.za> Joseph Armbruster added the comment: The good news: At a glance, the following look good: - building target html in cmd - building target htmlhelp then generating chm - building target html in cygwin - building target htmlhelp then generating chm The bad news [should a different bug be created for this?] See cmdline.rst: .. cmdoption:: -c .. cmdoption:: -m .. describe:: \n
\n

\nLe contenu de cette page (Thomas-Robert Bugeaud) est un minuscule extrait de l\'encyclopi\xc3\xa9die gratuite en ligne WIKIPEDIA\nle webmaster de ce site n\'est pas l\'auteur de cet article (Thomas-Robert Bugeaud). Vous pouvez retrouver l\'original de cet article (Thomas-Robert Bugeaud) à cette adresse et la liste des auteurs ici\nVous pouvez modifier ou compl\xc3\xa9ter cet article mais \xc3\xa9galement discuter de son contenu (Thomas-Robert Bugeaud) sur le site de WIKIPEDIA France - Contenu (Thomas-Robert B' >>> c = b.read(1024 * 1024 * 2) >>> c[63000:64000] 'acct = "UA-321207-2";\nurchinTracker();\n\n

\n

\nLe contenu de cette page (Thomas-Robert Bugeaud) est un minuscule extrait de l\'encyclopi\xc3\xa9die gratuite en ligne WIKIPEDIA\nle webmaster de ce site n\'est pas l\'auteur de cet article (Thomas-Robert Bugeaud). Vous pouvez retrouver l\'original de cet article (Thomas-Robert Bugeaud) à cette adresse et la liste des auteurs ici\nVous pouvez modifier ou compl\xc3\xa9ter cet article mais \xc3\xa9galement discuter de son contenu (Thomas-Robert Bugeaud) sur le site de WIKIPEDIA France - Contenu (Thomas-' >>> ---------- nosy: +orsenthil __________________________________ Tracker __________________________________ From report at bugs.python.org Wed Dec 26 17:49:23 2007 From: report at bugs.python.org (Senthil) Date: Wed, 26 Dec 2007 16:49:23 -0000 Subject: [issue1205] urllib fail to read URL contents, urllib2 crash Python In-Reply-To: <20071226165735.GA4111@gmail.com> Message-ID: <20071226170025.GB4111@gmail.com> Senthil added the comment: > > Senthil added the comment: > > Irrespective of the patch, this issue is reproducable with the code in the > trunk for Python 2.6. Should we close this then? > __________________________________ Sorry, I meant to say "NOT Reproducable". __________________________________ Tracker __________________________________ From report at bugs.python.org Wed Dec 26 18:24:55 2007 From: report at bugs.python.org (Senthil) Date: Wed, 26 Dec 2007 17:24:55 -0000 Subject: [issue1698] urlparse and usernames containing @ In-Reply-To: <1198687104.0.0.161207960419.issue1698@psf.upfronthosting.co.za> Message-ID: <20071226173554.GC4111@gmail.com> Senthil added the comment: > Olivier Croquette added the comment: > > > The problem right now is that urlparse parses silently an URL which is > not compliant, but does the wrong thing with it (since usernames can > contain @, and hostname can not, it's a more logical thing to parse from > the right using rsplit instead of split). > > I see two possibilities to address that: > > 1. return a parse error if the URL contains two raw @ > This way users and app developers will notice the problem rapidly > > 2. still accept this malformed URLs, but do what the user expects > > Both solutions seem to me better than the current behaviour, so I would > say a change is necessary anyways. I am inclined towards the option 2, wherein even if the non-conformant URL is given, which has "@" in the user name, the urlparse should be able atleast recognize the hostname correctly. In this case, using rsplit instead of split does the trick. Attached is the patch against the trunk, which adds this. I notice duplicity project also retorting to the same. Unless anyone has an objection, we should commit this change. Added file: http://bugs.python.org/file9030/urlparse_issue1698.patch __________________________________ Tracker __________________________________ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: urlparse_issue1698.patch Url: http://mail.python.org/pipermail/python-bugs-list/attachments/20071226/98f107b2/attachment.txt From report at bugs.python.org Wed Dec 26 18:29:46 2007 From: report at bugs.python.org (Senthil) Date: Wed, 26 Dec 2007 17:29:46 -0000 Subject: [issue1698] urlparse and usernames containing @ In-Reply-To: <1198687500.46.0.44079184842.issue1698@psf.upfronthosting.co.za> Message-ID: <20071226174046.GD4111@gmail.com> Senthil added the comment: > > Olivier Croquette added the comment: > > And about the decoding, sorry, it's clear from your snippets that > urlparse doesn't do it: > >>> print q.username > user%40xyz > > Maybe it should do it, I am not sure. What do you think? It would save > work for the module user. No, urlparse does not have any method for encoding/decoding. It has been left to urllib2 in urlencode, urldecode, quote, unquote etc. Strangely though, user should use urllib2 for that purpose. And yeah, there is been an effort to merge the urlparse and urllib2 functionality and I am slowly upto it. :) Before more requests come this way, I guess I have to show some progress. __________________________________ Tracker __________________________________ From report at bugs.python.org Wed Dec 26 18:40:53 2007 From: report at bugs.python.org (hjmjohnson) Date: Wed, 26 Dec 2007 17:40:53 -0000 Subject: [issue1701] svn checkout does not work Message-ID: <1198690853.59.0.588527632506.issue1701@psf.upfronthosting.co.za> New submission from hjmjohnson: =========== ping svn.python.org PING svn.python.org (82.94.237.220): 56 data bytes 64 bytes from 82.94.237.220: icmp_seq=0 ttl=49 time=107.208 ms ======== svn co http://svn.python.org/projects/python/trunk python-svn svn: PROPFIND request failed on '/projects/python/trunk' svn: PROPFIND of '/projects/python/trunk': could not connect to server (http://svn.python.org) ========== It appears that the apache access to the svn repository is down. ---------- components: Build messages: 59003 nosy: hjmjohnson severity: critical status: open title: svn checkout does not work type: behavior versions: Python 2.5 __________________________________ Tracker __________________________________ From report at bugs.python.org Wed Dec 26 20:53:04 2007 From: report at bugs.python.org (=?utf-8?q?Martin_v._L=C3=B6wis?=) Date: Wed, 26 Dec 2007 19:53:04 -0000 Subject: [issue1701] svn checkout does not work Message-ID: <1198698784.8.0.584098535941.issue1701@psf.upfronthosting.co.za> Martin v. L?wis added the comment: Fixed. ---------- nosy: +loewis resolution: -> fixed status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Wed Dec 26 21:36:56 2007 From: report at bugs.python.org (Kurt B. Kaiser) Date: Wed, 26 Dec 2007 20:36:56 -0000 Subject: [issue1350] IDLE - CallTips enhancement - show full doc-string in new window Message-ID: <1198701416.24.0.981462433549.issue1350@psf.upfronthosting.co.za> Kurt B. Kaiser added the comment: I deleted the extra files. You aren't making this easy! I was expecting a relatively small update to the original patch. Did you backport my 3.0 revision of CallTips.py or did you come up with your own version which uses inspect.py? Right now, the patch includes two unrelated developments, which (following our normal procedures) wouldn't be combined as you have done. __________________________________ Tracker __________________________________ From report at bugs.python.org Wed Dec 26 23:59:10 2007 From: report at bugs.python.org (Paul Smedley) Date: Wed, 26 Dec 2007 22:59:10 -0000 Subject: [issue1745108] 2.5.1 curses panel segfault in new_panel on aix 5.3 Message-ID: <1198709950.71.0.526742981216.issue1745108@psf.upfronthosting.co.za> Paul Smedley added the comment: I see similar problems here on OS/2 with Python 2.5.1 and Ncurses 5.6. Problem is causes as win->win is uninitialised when passed to new_panel. Initialising win->win to a value makes the new_panel call work. Not sure why this works on other platforms but fails on OS/2 and AIX. ---------- nosy: +psmedley _____________________________________ Tracker _____________________________________ From report at bugs.python.org Thu Dec 27 05:28:40 2007 From: report at bugs.python.org (Devin Jeanpierre) Date: Thu, 27 Dec 2007 04:28:40 -0000 Subject: [issue1702] Word "alias" used in confusing way to compare open() and file() Message-ID: <1198729720.38.0.104417938854.issue1702@psf.upfronthosting.co.za> New submission from Devin Jeanpierre: I was slightly misled by the wording of part of the docs (http://docs.python.org/lib/bltin-file-objects.html): "file() is new in Python 2.2. The older built-in open() is an alias for file()." I actually thought it meant that open was an alias of file, so that 'open is file'. However, >>> open is file False I feel that "alias" is the wrong word to use here, though I don't know a suitable replacement. ---------- components: Documentation messages: 59007 nosy: Devin Jeanpierre severity: minor status: open title: Word "alias" used in confusing way to compare open() and file() type: rfe __________________________________ Tracker __________________________________ From report at bugs.python.org Thu Dec 27 05:31:55 2007 From: report at bugs.python.org (Richard Cohen) Date: Thu, 27 Dec 2007 04:31:55 -0000 Subject: [issue1702] Word "alias" used in confusing way to compare open() and file() Message-ID: <1198729915.25.0.911162571586.issue1702@psf.upfronthosting.co.za> Changes by Richard Cohen: ---------- nosy: +vmlinuz __________________________________ Tracker __________________________________ From report at bugs.python.org Thu Dec 27 11:50:14 2007 From: report at bugs.python.org (Armin Rigo) Date: Thu, 27 Dec 2007 10:50:14 -0000 Subject: [issue1754489] Non-portable address length calculation for AF_UNIX sockets Message-ID: <1198752614.28.0.0782190530024.issue1754489@psf.upfronthosting.co.za> Armin Rigo added the comment: The patch looks ok on 2.6, I recommend checking it there. (Due to line number changes in socketmodule.c, the patch gives a warning, but it is still otherwise up-to-date.) ---------- nosy: +arigo _____________________________________ Tracker _____________________________________ From report at bugs.python.org Thu Dec 27 13:54:32 2007 From: report at bugs.python.org (Tal Einat) Date: Thu, 27 Dec 2007 12:54:32 -0000 Subject: [issue1350] IDLE - CallTips enhancement - show full doc-string in new window Message-ID: <1198760072.59.0.544654721392.issue1350@psf.upfronthosting.co.za> Tal Einat added the comment: I had a working version which also used inspect before I saw your 3.0 version, but they both use inspect similarly, very straightforward. I seem to recall only one of the version used inspect to get the doc string, but I don't remember which one... Depending on how you divide things, this patch includes more than just two different developments. But they are interrelated to some extent. And one of the developments is more rigorous testing, which this version passes with flying colors. If you wish, I can try to get another developer or two to test and review this patch, if that will help somehow. Or anything else that will help... __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 01:04:04 2007 From: report at bugs.python.org (Senthil) Date: Fri, 28 Dec 2007 00:04:04 -0000 Subject: [issue1702] Word "alias" used in confusing way to compare open() and file() In-Reply-To: <1198729720.38.0.104417938854.issue1702@psf.upfronthosting.co.za> Message-ID: <20071228001440.GA3519@gmail.com> Senthil added the comment: > I feel that "alias" is the wrong word to use here, though I don't know > a suitable replacement. Should we say, "The older built-in open() serves the same purpose as file." ---------- nosy: +orsenthil __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 01:14:34 2007 From: report at bugs.python.org (Philip Jenvey) Date: Fri, 28 Dec 2007 00:14:34 -0000 Subject: [issue1703] getpass broken in Py3k: must flush() Message-ID: <1198800874.65.0.655232075234.issue1703@psf.upfronthosting.co.za> New submission from Philip Jenvey: getpass (in particular _raw_input, used by unix_getpass and default_getpass) prints out a password prompt to a stream (by default stdout) but doesn't flush that stream. It assumes calling sys.stdin.readline() to read the password causes stdout to be flushed (probably a libc file buffering behavior) This is a problem in Py3k where file buffering is done by Python; getpass needs to manually flush the stream it prints the prompt to. Otherwise the prompt isn't printed until after the password is entered e.g.: Python 3.0a2 (py3k:59601, Dec 27 2007, 14:28:14) [GCC 4.1.3 20071209 (prerelease) (Debian 4.1.2-18)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import getpass >>> getpass.getpass() Password: 'foo' >>> Windows doesn't use _raw_input so it wouldn't see this issue. Attached is a patch to flush the stream. There's no getpass tests so I didn't get around to creating one for this issue. Ideally we'd test getpass via spawning a python subprocess and ensuring its I/O looked correct. This was noticed on Jython as its file object is now based off Py3k's ---------- components: Library (Lib) files: getpass_flush-r59601.diff messages: 59011 nosy: pjenvey severity: normal status: open title: getpass broken in Py3k: must flush() versions: Python 3.0 Added file: http://bugs.python.org/file9031/getpass_flush-r59601.diff __________________________________ Tracker __________________________________ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: getpass_flush-r59601.diff Url: http://mail.python.org/pipermail/python-bugs-list/attachments/20071228/0670dc4c/attachment.txt From report at bugs.python.org Fri Dec 28 04:58:45 2007 From: report at bugs.python.org (Rich Marinaccio) Date: Fri, 28 Dec 2007 03:58:45 -0000 Subject: [issue1704] possible bug in randint Message-ID: <1198814325.03.0.53847270276.issue1704@psf.upfronthosting.co.za> New submission from Rich Marinaccio: I have been using python for Civilization IV map scripting, and I believe I have found a small problem with the randint function. Once in a blue moon, randint(a,b) returns b + 1, rather than a >= N <= b. I have seen this behavior a few times. Here is the code I used to determine this. randIndex = PWRand.randint(0,len(preshuffle)-1)#PWRand calls randint directly with these parameters if randIndex < 0 or randIndex >= len(preshuffle): raise ValueError, " bad index shuffling plot list randIndex=%(r)d listLength=%(l)d, mapSize=%(s)d" % {"r":randIndex,"l":len (preshuffle),"s":hm.mapWidth*hm.mapHeight} #output is ValueError: bad index shuffling plot list randIndex=1453 listLength=1453, mapSize=13824 according to the docs, the max randIndex should be listLength - 1 ---------- components: None messages: 59012 nosy: cephalo severity: normal status: open title: possible bug in randint type: behavior versions: Python 2.5 __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 04:59:12 2007 From: report at bugs.python.org (Kurt B. Kaiser) Date: Fri, 28 Dec 2007 03:59:12 -0000 Subject: [issue1650] IDLE: help() displays output on the wrong shell Message-ID: <1198814351.87.0.399303575813.issue1650@psf.upfronthosting.co.za> Kurt B. Kaiser added the comment: Fixed by overriding pydoc.py:pager to be plainpager. r59603 ---------- resolution: -> fixed status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 05:00:00 2007 From: report at bugs.python.org (Rich Marinaccio) Date: Fri, 28 Dec 2007 04:00:00 -0000 Subject: [issue1704] possible bug in randint Message-ID: <1198814400.28.0.841693724669.issue1704@psf.upfronthosting.co.za> Rich Marinaccio added the comment: I have been using python for Civilization IV map scripting, and I believe I have found a small problem with the randint function. Once in a blue moon, randint(a,b) returns b + 1, rather than a <= N <= b. I have seen this behavior a few times. Here is the code I used to determine this. randIndex = PWRand.randint(0,len(preshuffle)-1)#PWRand calls randint directly with these parameters if randIndex < 0 or randIndex >= len(preshuffle): raise ValueError, " bad index shuffling plot list randIndex=%(r)d listLength=%(l)d, mapSize=%(s)d" % {"r":randIndex,"l":len (preshuffle),"s":hm.mapWidth*hm.mapHeight} #output is ValueError: bad index shuffling plot list randIndex=1453 listLength=1453, mapSize=13824 according to the docs, the max randIndex should be listLength - 1 __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 05:03:21 2007 From: report at bugs.python.org (Kurt B. Kaiser) Date: Fri, 28 Dec 2007 04:03:21 -0000 Subject: [issue1607] Patch for TCL 8.5 support Message-ID: <1198814601.23.0.182744021024.issue1607@psf.upfronthosting.co.za> Kurt B. Kaiser added the comment: This patch doesn't seem like the right way to fix the 8.5 issue...Close it? __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 05:18:51 2007 From: report at bugs.python.org (Kurt B. Kaiser) Date: Fri, 28 Dec 2007 04:18:51 -0000 Subject: [issue1457] IDLE - configDialog - new layout for key config Message-ID: <1198815531.33.0.0967604504935.issue1457@psf.upfronthosting.co.za> Kurt B. Kaiser added the comment: r59604 Thanks for the Patch! ---------- resolution: -> accepted status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 05:45:10 2007 From: report at bugs.python.org (Kurt B. Kaiser) Date: Fri, 28 Dec 2007 04:45:10 -0000 Subject: [issue1563981] IDLE invokes completion even when running code Message-ID: <1198817110.52.0.727073288566.issue1563981@psf.upfronthosting.co.za> Kurt B. Kaiser added the comment: Hard to fix since IDLE doesn't know that the interpreter went into input state. However, control-tab appears to do what you want. ---------- resolution: -> wont fix status: open -> closed _____________________________________ Tracker _____________________________________ From report at bugs.python.org Fri Dec 28 05:47:08 2007 From: report at bugs.python.org (Kurt B. Kaiser) Date: Fri, 28 Dec 2007 04:47:08 -0000 Subject: [issue404444] [IDLE] auto indent/parentheses Message-ID: <1198817228.63.0.0471039134017.issue404444@psf.upfronthosting.co.za> Changes by Kurt B. Kaiser: ---------- nosy: +kbk ____________________________________ Tracker ____________________________________ From report at bugs.python.org Fri Dec 28 05:58:35 2007 From: report at bugs.python.org (Kurt B. Kaiser) Date: Fri, 28 Dec 2007 04:58:35 -0000 Subject: [issue1599] IDLE hangs if os.spwanv command is given Message-ID: <1198817915.6.0.119772685048.issue1599@psf.upfronthosting.co.za> New submission from Kurt B. Kaiser: Worked for me on Arch GNU/Linux using IDLE 2.6a0. What OS and Version are you running? Does it fail for foo.py: def foo(): pass >>> import os >>> os.spawnv(os.P_NOWAIT, 'foo.py', '') 5026 >>> ---------- assignee: -> kbk nosy: +kbk priority: -> normal resolution: -> works for me __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 06:13:31 2007 From: report at bugs.python.org (Kurt B. Kaiser) Date: Fri, 28 Dec 2007 05:13:31 -0000 Subject: [issue1601] IDLE not working correctly on Windows (Py30a2/IDLE30a1) Message-ID: <1198818811.24.0.0341286527978.issue1601@psf.upfronthosting.co.za> Kurt B. Kaiser added the comment: Assigning to tiran since I'm not building Python on XP. Changing to Tkinter, also. Is the file open bug fixed also by the suggested change? ---------- assignee: kbk -> tiran components: +Tkinter -IDLE __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 06:55:47 2007 From: report at bugs.python.org (Pooja) Date: Fri, 28 Dec 2007 05:55:47 -0000 Subject: [issue1599] IDLE hangs if os.spwanv command is given In-Reply-To: <1198817915.6.0.119772685048.issue1599@psf.upfronthosting.co.za> Message-ID: <825531.71053.qm@web61011.mail.yahoo.com> Pooja added the comment: Hi Kurt I have mentioned in my issue 1599 that i was working on IDLE 2.5 and Win 32. Regards Pooja "Kurt B. Kaiser" wrote: New submission from Kurt B. Kaiser: Worked for me on Arch GNU/Linux using IDLE 2.6a0. What OS and Version are you running? Does it fail for foo.py: def foo(): pass 'foo.py', '') 5026 >>> ---------- assignee: -> kbk nosy: +kbk priority: -> normal resolution: -> works for me __________________________________ Tracker __________________________________ --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Added file: http://bugs.python.org/file9032/unnamed __________________________________ Tracker __________________________________ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: unnamed Url: http://mail.python.org/pipermail/python-bugs-list/attachments/20071228/7afe85b2/attachment.txt From report at bugs.python.org Fri Dec 28 11:47:26 2007 From: report at bugs.python.org (Wummel) Date: Fri, 28 Dec 2007 10:47:26 -0000 Subject: [issue1705] trace module does not annotate global statement Message-ID: <1198838846.15.0.754612008579.issue1705@psf.upfronthosting.co.za> New submission from Wummel: Hi, the trace module does not properly count the global statement. So coverage tests of functions that use the global statement always file. To reproduce write a simple function using the global statement and store it in "mytest.py" (which is attached). Then run "python -m trace -c mytest.py". You'll see that the global statement line will not be covered (ie. there is no "1:" at the beginning of the line). I tested with Python 2.5 and 2.4. ---------- components: Extension Modules files: mytest.py messages: 59021 nosy: calvin severity: normal status: open title: trace module does not annotate global statement type: behavior Added file: http://bugs.python.org/file9033/mytest.py __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: mytest.py Type: text/x-python Size: 155 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071228/63b6dea8/attachment.py From report at bugs.python.org Fri Dec 28 14:22:02 2007 From: report at bugs.python.org (Christian Heimes) Date: Fri, 28 Dec 2007 13:22:02 -0000 Subject: [issue1706] Force WINVER 0x0500 (Windows 2000) Message-ID: <1198848122.63.0.86389332394.issue1706@psf.upfronthosting.co.za> New submission from Christian Heimes: Do you think it's a good idea to force Win2k compatibility by defining WINVER 0x0500 in PC/pyconfig.h? It fixed the problem with Tcl/Tk, #1601. http://msdn2.microsoft.com/en-us/library/aa383745.aspx #define WINVER 0x0500 #define _WIN32_WINNT 0x0500 ---------- assignee: loewis components: Windows messages: 59022 nosy: loewis, tiran severity: normal status: open title: Force WINVER 0x0500 (Windows 2000) versions: Python 2.6, Python 3.0 __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 14:35:41 2007 From: report at bugs.python.org (Tal Einat) Date: Fri, 28 Dec 2007 13:35:41 -0000 Subject: [issue1607] Patch for TCL 8.5 support Message-ID: <1198848941.06.0.685027748662.issue1607@psf.upfronthosting.co.za> Tal Einat added the comment: I say close it, but start a discussion on switching to Tcl/Tk8.5 on the appropriate list(s). __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 14:53:29 2007 From: report at bugs.python.org (Christian Heimes) Date: Fri, 28 Dec 2007 13:53:29 -0000 Subject: [issue1607] Patch for TCL 8.5 support Message-ID: <1198850009.89.0.513931543613.issue1607@psf.upfronthosting.co.za> Christian Heimes added the comment: Can you start a discussion on python-dev please? Tcl/Tk support should be added to Python trunk (2.6) and ported to 3.0. Is it possible to keep compatibility with Tcl/Tk 8.4, too? ---------- resolution: -> rejected status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 15:07:23 2007 From: report at bugs.python.org (Aristotelis Mikropoulos) Date: Fri, 28 Dec 2007 14:07:23 -0000 Subject: [issue1778443] robotparser.py fixes Message-ID: <1198850843.3.0.0993655966171.issue1778443@psf.upfronthosting.co.za> Aristotelis Mikropoulos added the comment: Also, I would like to tell you that my new account name is "Indy", and not "indy90" anymore (I changed since this issue tracker moved from SourceForge to here). So, thanks again and I hope this patch will be helpful. _____________________________________ Tracker _____________________________________ From report at bugs.python.org Fri Dec 28 16:36:33 2007 From: report at bugs.python.org (Rich Marinaccio) Date: Fri, 28 Dec 2007 15:36:33 -0000 Subject: [issue1704] possible bug in randint Message-ID: <1198856193.24.0.569891310389.issue1704@psf.upfronthosting.co.za> Rich Marinaccio added the comment: I've done some more testing and I can't get this to repeat with randint alone. It must be an issue with combination of the len() function used as a parameter to randint. The above code is in a loop that further down will del preshuffle[randIndex]. Could this be a threading issue where len(preshuffle) takes time to update when the list is shortened? __________________________________ Tracker __________________________________ From report at bugs.python.org Fri Dec 28 19:28:15 2007 From: report at bugs.python.org (Kurt B. Kaiser) Date: Fri, 28 Dec 2007 18:28:15 -0000 Subject: [issue1061803] Source code encoding in IDLE console Message-ID: <1198866495.81.0.603680146791.issue1061803@psf.upfronthosting.co.za> Kurt B. Kaiser added the comment: Can this be closed? Is it still an issue in 3.0? ---------- nosy: +kbk _____________________________________ Tracker _____________________________________ From report at bugs.python.org Sat Dec 29 02:14:54 2007 From: report at bugs.python.org (=?utf-8?q?Martin_v._L=C3=B6wis?=) Date: Sat, 29 Dec 2007 01:14:54 -0000 Subject: [issue1706] Force WINVER 0x0500 (Windows 2000) Message-ID: <1198890894.46.0.429154519746.issue1706@psf.upfronthosting.co.za> Martin v. L?wis added the comment: It's definitely not good to define it unconditionally in PC/pyconfig.h, as that would affect any extensions compiled for Python. I'm -0 on defining it conditionally for the compilation of Python itself. I dislike having to constrain Python to Windows 2000; IMO, windows version dependencies should be resolved at runtime. However, that option is probably still available with WINVER set. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 29 04:58:11 2007 From: report at bugs.python.org (Raymond Hettinger) Date: Sat, 29 Dec 2007 03:58:11 -0000 Subject: [issue1704] possible bug in randint Message-ID: <1198900691.68.0.357680383555.issue1704@psf.upfronthosting.co.za> Raymond Hettinger added the comment: Threading is the likely source of your problems. If you concur, please close this as invalid. ---------- nosy: +rhettinger __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 29 05:10:25 2007 From: report at bugs.python.org (Andre Roberge) Date: Sat, 29 Dec 2007 04:10:25 -0000 Subject: [issue1707] probable bug in code.py with Python 3.0a2 Message-ID: <1198901425.7.0.747577606442.issue1707@psf.upfronthosting.co.za> New submission from Andre Roberge: There appears to be a bug in code.py in Python 3.0a2/a1. I believe that the body of InteractiveConsole().raw_input() should be changed from sys.stdout.write(prompt) sys.stdout.flush() return sys.stdin.readline() to return input(prompt) Here's a sample session. Python 3.0a1 (py3k, Nov 27 2007, 07:40:26) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import code >>> console = code.InteractiveConsole() >>> console.interact() Python 3.0a1 (py3k, Nov 27 2007, 07:40:26) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> for i in range(3): ... print(i) 0 1 2 >>> # Notice how I could only enter one line inside the loop. >>> # Let's try again, with a different definition of raw_input() >>> import code >>> console = code.InteractiveConsole() >>> console.raw_input = input >>> console.interact() Python 3.0a1 (py3k, Nov 27 2007, 07:40:26) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> for i in range(3): ... print(i) ... 0 1 2 >>> # Notice how I had to enter an empty line to end the loop - as it should be. The same problem affects function definitions - it is impossible to define a function body with more than one line when running code.interact() ---------- components: Library (Lib) messages: 59030 nosy: aroberge severity: normal status: open title: probable bug in code.py with Python 3.0a2 versions: Python 3.0 __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 29 05:14:09 2007 From: report at bugs.python.org (PyScripter) Date: Sat, 29 Dec 2007 04:14:09 -0000 Subject: [issue1685] linecache .updatecache fails on utf8 encoded files Message-ID: <1198901649.45.0.213510982443.issue1685@psf.upfronthosting.co.za> PyScripter added the comment: To reproduce the error: a) Save the following file in utf-8 format as c:\temp\module1.py # -*- coding: utf-8 -*- print("?") b) Run the following script: import pdb d = pdb.Pdb() filename = r"c:\Temp\module1.py" print(d.set_break(filename,1)) Expected result None Actual Result Line c:\temp\module1.py:1 does not exist __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 29 05:36:00 2007 From: report at bugs.python.org (PyScripter) Date: Sat, 29 Dec 2007 04:36:00 -0000 Subject: [issue1685] linecache .updatecache fails on utf8 encoded files Message-ID: <1198902960.92.0.814821375271.issue1685@psf.upfronthosting.co.za> PyScripter added the comment: Patch file attached Added file: http://bugs.python.org/file9034/linecache.py.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: linecache.py.patch Type: application/octet-stream Size: 516 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071229/5d68306d/attachment.obj From report at bugs.python.org Sat Dec 29 15:21:13 2007 From: report at bugs.python.org (Christian Heimes) Date: Sat, 29 Dec 2007 14:21:13 -0000 Subject: [issue1706] Force WINVER 0x0500 (Windows 2000) Message-ID: <1198938073.01.0.453916550286.issue1706@psf.upfronthosting.co.za> Christian Heimes added the comment: The macros don't restrain us to Win2k but they prevent us from using APIs which are not compatible with Windows 2000. It's a compile time option to conditionally exclude new features from the header files. #ifndef NTDDI_VERSION #define NTDDI_VERSION NTDDI_WIN2KSP4 #endif #ifndef WINVER #define WINVER 0x0500 #endif #ifndef _WIN32_WINNT #define _WIN32_WINNT WINVER #endif __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 29 17:16:03 2007 From: report at bugs.python.org (Rich Marinaccio) Date: Sat, 29 Dec 2007 16:16:03 -0000 Subject: [issue1704] possible bug in randint Message-ID: <1198944963.92.0.885546975153.issue1704@psf.upfronthosting.co.za> Rich Marinaccio added the comment: To be clear, I am not using multi-threading in my particular module. I can't explain this behavior with my code alone. The issue is complicated by the fact that my module is called by Civ IV, and I have no idea what the game is doing behind the scenes. I also don't know exactly what happens when 'del myList[index]' is called. You would think that len(preshuffle) would have the same value for the randint call that it does for the print statement. I have an idea for another test I would like to try. This is my first issue that I've reported in Python. Would it help for me to attach the whole file? __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 29 17:56:41 2007 From: report at bugs.python.org (Raymond Hettinger) Date: Sat, 29 Dec 2007 16:56:41 -0000 Subject: [issue1704] possible bug in randint Message-ID: <1198947401.25.0.822528126211.issue1704@psf.upfronthosting.co.za> Raymond Hettinger added the comment: Attaching the whole file isn't a step in the right direction. The preferred approach is to isolate the problem as tightly as possible. This report is dubious because, I can't get the following to fail: from random import seed, randint seed('mystart') while 1: assert 0 <= randint(0, 1452) <= 1452 There is also no failure with: preshuffle = [None] * 1453 while 1: assert 0 <= randint(0, len(preshuffle)-1) <= 1452 Make sure that PWRand.randint() really does call randint() and not randrange() and that it doesn't adjust the range of inputs. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 29 18:40:46 2007 From: report at bugs.python.org (Rich Marinaccio) Date: Sat, 29 Dec 2007 17:40:46 -0000 Subject: [issue1704] possible bug in randint Message-ID: <1198950046.7.0.163279301658.issue1704@psf.upfronthosting.co.za> Rich Marinaccio added the comment: What was happening before was I was getting an index out of range error every so often, so then I put in the ValueError catch to see what was going on. I was surprised to see that randIndex was the same as len (preshuffle). I have some further catches in place now that might tell me more. It must have to do with deleting items from the list in the loop and not getting the right length from len immediately after, but then again I use this algorithm in several places in my module with no trouble, though with smaller lists. Go ahead and close this, and when I have more information I can open it some other time. This bug I'm seeing is extremely intermittant. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 29 18:56:49 2007 From: report at bugs.python.org (=?utf-8?q?Martin_v._L=C3=B6wis?=) Date: Sat, 29 Dec 2007 17:56:49 -0000 Subject: [issue1706] Force WINVER 0x0500 (Windows 2000) Message-ID: <1198951009.49.0.707097644201.issue1706@psf.upfronthosting.co.za> Martin v. L?wis added the comment: "The macros don't restrain us to Win2k but they prevent us from using APIs which are not compatible with Windows 2000." --- That's what I meant by "constrain"/restrain: we can't use API that was added in XP directly. For functions, that is a good thing, because the binary wouldn't work on W2k. For enumeration values and structure definition, it's a bad thing, as we would need to duplicate them if we wanted to call the functions dyanmically that take such values. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 29 19:50:09 2007 From: report at bugs.python.org (=?utf-8?q?Martin_v._L=C3=B6wis?=) Date: Sat, 29 Dec 2007 18:50:09 -0000 Subject: [issue1699] unconditional definiton of _BSD_SOURCE breaks builds with g++-4.3 Message-ID: <1198954209.75.0.181835805268.issue1699@psf.upfronthosting.co.za> Martin v. L?wis added the comment: I opted for conditionalizing it to OpenBSD; it was wrong on Linux, anyway, as _BSD_SOURCE has a different meaning there. Fixed in r59610 and r59611. ---------- resolution: -> fixed status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 29 20:53:16 2007 From: report at bugs.python.org (Vlastimil Brom) Date: Sat, 29 Dec 2007 19:53:16 -0000 Subject: [issue1688] Incorrectly displayed non ascii characters in prompt using "input()" - Python 3.0a2 Message-ID: <1198957996.69.0.738845169176.issue1688@psf.upfronthosting.co.za> Vlastimil Brom added the comment: First sorry about a delayed response, but moreover, I fear, preparing a patch would be far beyond my programming competence; sorry about that. __________________________________ Tracker __________________________________ From report at bugs.python.org Sat Dec 29 21:36:40 2007 From: report at bugs.python.org (Senthil) Date: Sat, 29 Dec 2007 20:36:40 -0000 Subject: [issue1432] Strange behavior of urlparse.urljoin Message-ID: <1198960600.77.0.592385746641.issue1432@psf.upfronthosting.co.za> Senthil added the comment: If we observe carefully in the urlparse.py and test_urlparse.py, over the releases from Python 2.3 to Python 2.6, the changes required for supporting RFC2396 has been implemented. (RFC2396 replaced 1808 in URL Specification.) But the header of urlparse.py still says it is according to RFC1808 only. *This needs to be changed.* In the test_urlparse.py we find test cases for RFC2396 compliance as well. In this specific bug report, we are upon a case where the later Specification is not compatible with older one. As per RFC1808 Base: Relative URL resolution: ?y = ;x = As per RFC2396 Base: http://a/b/c/d;p?q Relative URLS: ?y = http://a/b/c/?y ;x = http://a/b/c/;x Do you see the difference? urlparse.py has been made RFC2396 compliance, so that above incompatible test has been removed as well. Now, even RFC2396 is obsolete and has been superseded by RFC3986 which advertises thus: Base: http://a/b/c/d;p?q Relative URL: "?y" = "http://a/b/c/d;p?y" ";x" = "http://a/b/c/;x" this is crazy, the first ?y goes for older RFC1808 result and second ;x is in the later RFC2396. For the just this issue my take would be: 1) Make the current urlparse.py compliant with RFC2396. Remove the claim that it is compliant with 1808 only. Which is a documentation fix (patch attached) Overall and the best solution will be RFC3986 compliance, which is a separate effort. Added file: http://bugs.python.org/file9035/urlparse.patch __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: urlparse.patch Type: text/x-diff Size: 1375 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071229/792f2bdd/attachment.patch From report at bugs.python.org Sun Dec 30 11:42:00 2007 From: report at bugs.python.org (Raymond Hettinger) Date: Sun, 30 Dec 2007 10:42:00 -0000 Subject: [issue1704] possible bug in randint Message-ID: <1199011320.05.0.620576321587.issue1704@psf.upfronthosting.co.za> Changes by Raymond Hettinger: ---------- resolution: -> invalid status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 15:18:38 2007 From: report at bugs.python.org (umaxx) Date: Sun, 30 Dec 2007 14:18:38 -0000 Subject: [issue1708] improvements for linecache Message-ID: <1199024318.28.0.602984080184.issue1708@psf.upfronthosting.co.za> New submission from umaxx: here comes a simple patch for linecache core module, which does the following: - remove double comment - instead of adding all lines with readlines() to the cache, just add seek points for every line - return lines from cached seek-points instead directly from dict-cache advantages of this patch: - reading lines from very big files (>1GB) is no problem anymore - linecache can handle a large number of large files now - updatecache() is faster now because "for line in fp:" is faster than readlines() disadvantages: - reading a single line from cache will be a little bit slower, then before because of extra open() call to the file summary: - this diff presents a different caching approach which is able to handle a lot of large files too __future__-work: - the code is ugly and unstructured, someone needs to beautify it - an extra function: get_list_of_lines_from_list_of_linenumbers() would be nice to have - test-cases for cache-consistence would be nice to have ---------- components: Library (Lib) files: linecache.py.diff messages: 59041 nosy: umaxx severity: minor status: open title: improvements for linecache type: behavior versions: Python 3.0 Added file: http://bugs.python.org/file9036/linecache.py.diff __________________________________ Tracker __________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: linecache.py.diff Type: application/octet-stream Size: 1888 bytes Desc: not available Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071230/461362b8/attachment.obj From report at bugs.python.org Sun Dec 30 15:31:23 2007 From: report at bugs.python.org (umaxx) Date: Sun, 30 Dec 2007 14:31:23 -0000 Subject: [issue1709] logging: log actual function name Message-ID: <1199025083.33.0.488402629269.issue1709@psf.upfronthosting.co.za> New submission from umaxx: logging does not have a (formatter) option for logging the actual function name Logger class detects function name with findCaller() - *but* does not pass it to the makeRecord()-call in _log() - why? would be nice to see this feature implemented, no patch for now :( ---------- components: Library (Lib) messages: 59042 nosy: umaxx severity: minor status: open title: logging: log actual function name type: behavior versions: Python 3.0 __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 17:23:04 2007 From: report at bugs.python.org (Giampaolo Rodola') Date: Sun, 30 Dec 2007 16:23:04 -0000 Subject: [issue1710] Pypi's "score" column is not explained Message-ID: <1199031784.56.0.599845472549.issue1710@psf.upfronthosting.co.za> New submission from Giampaolo Rodola': The meaning of the "score" column shown when a search is done on the pypi database is not clear. Example: http://pypi.python.org/pypi?%3Aaction=search&term=http&submit=search To understand its meaning I had to find this document: http://pycheesecake.org/#algorithm-for-computing-the-cheesecake-index IMHO, it would be better putting a note somewhere in the pypi... something which explains what the "score" value stands for. ---------- messages: 59043 nosy: giampaolo.rodola severity: normal status: open title: Pypi's "score" column is not explained __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 17:27:21 2007 From: report at bugs.python.org (=?utf-8?q?Martin_v._L=C3=B6wis?=) Date: Sun, 30 Dec 2007 16:27:21 -0000 Subject: [issue1702] Word "alias" used in confusing way to compare open() and file() Message-ID: <1199032041.47.0.565068796306.issue1702@psf.upfronthosting.co.za> Martin v. L?wis added the comment: Notice that file *was* open up to Python 2.4; this was changed with #1479181 - so "open" is newer than file, in a sense. Assigning to Neal, who committed the original change. ---------- assignee: -> nnorwitz nosy: +loewis, nnorwitz __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 17:32:48 2007 From: report at bugs.python.org (=?utf-8?q?Martin_v._L=C3=B6wis?=) Date: Sun, 30 Dec 2007 16:32:48 -0000 Subject: [issue1710] Pypi's "score" column is not explained Message-ID: <1199032368.0.0.713704809563.issue1710@psf.upfronthosting.co.za> Martin v. L?wis added the comment: Please report this issue to http://sourceforge.net/projects/pypi This tracker is for Python itself only. ---------- nosy: +loewis resolution: -> invalid status: open -> closed __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 18:52:39 2007 From: report at bugs.python.org (Christian Heimes) Date: Sun, 30 Dec 2007 17:52:39 -0000 Subject: [issue1702] Word "alias" used in confusing way to compare open() and file() Message-ID: <1199037159.47.0.0105794974517.issue1702@psf.upfronthosting.co.za> Christian Heimes added the comment: open() is preferred over file(), too. In Python 2.5 open() returns a file instance but in 3.0 file is removed. ---------- nosy: +tiran __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 22:30:45 2007 From: report at bugs.python.org (Maarten Thibaut) Date: Sun, 30 Dec 2007 21:30:45 -0000 Subject: [issue1711] socket functions that should return unsigned int return signed int Message-ID: <1199050245.75.0.972014457431.issue1711@psf.upfronthosting.co.za> New submission from Maarten Thibaut: Socket library functions such as ntohs() return uint16_t, but inside Python these return values show up as negative numbers. One possible fix is to convert these return values using pack: struct.unpack('H', struct.pack('h', ntohs(number)))[0] & 0xffff ---------- components: Library (Lib) messages: 59047 nosy: mthibaut severity: normal status: open title: socket functions that should return unsigned int return signed int __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 22:35:14 2007 From: report at bugs.python.org (Ori Avtalion) Date: Sun, 30 Dec 2007 21:35:14 -0000 Subject: [issue1712] Small errors in new-style classes doc Message-ID: <1199050514.05.0.343214107383.issue1712@psf.upfronthosting.co.za> New submission from Ori Avtalion: These refer to the "New-style and classic classes" section in Doc/reference/datamodel.rst. 1) The URL should be instead of . 2) The last line: "new-style classic old-style"; seems out of place. Maybe it was once used for indexing, but is pointless now. ---------- components: Documentation messages: 59048 nosy: salty-horse severity: minor status: open title: Small errors in new-style classes doc versions: Python 2.5 __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 22:45:53 2007 From: report at bugs.python.org (Christian Heimes) Date: Sun, 30 Dec 2007 21:45:53 -0000 Subject: [issue1711] socket functions that should return unsigned int return signed int Message-ID: <1199051153.04.0.998400558526.issue1711@psf.upfronthosting.co.za> Christian Heimes added the comment: Which number shows up as a negative number on your system? ---------- nosy: +tiran __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 22:46:29 2007 From: report at bugs.python.org (Christian Heimes) Date: Sun, 30 Dec 2007 21:46:29 -0000 Subject: [issue1712] Small errors in new-style classes doc Message-ID: <1199051189.67.0.160835380016.issue1712@psf.upfronthosting.co.za> Changes by Christian Heimes: ---------- assignee: -> georg.brandl nosy: +georg.brandl __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 22:51:45 2007 From: report at bugs.python.org (Maarten Thibaut) Date: Sun, 30 Dec 2007 21:51:45 -0000 Subject: [issue1711] socket functions that should return unsigned int return signed int Message-ID: <1199051505.3.0.570194564284.issue1711@psf.upfronthosting.co.za> Maarten Thibaut added the comment: Numbers returned from ntohs() turn up as negative. But ntohs() is typed as uint16_t, so they shouldn't be. This is on solaris. __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 22:53:33 2007 From: report at bugs.python.org (Christian Heimes) Date: Sun, 30 Dec 2007 21:53:33 -0000 Subject: [issue1711] socket functions that should return unsigned int return signed int Message-ID: <1199051613.88.0.515634432199.issue1711@psf.upfronthosting.co.za> Christian Heimes added the comment: Please provide an example number __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 23:01:11 2007 From: report at bugs.python.org (Maarten Thibaut) Date: Sun, 30 Dec 2007 22:01:11 -0000 Subject: [issue1711] socket functions that should return unsigned int return signed int Message-ID: <1199052071.92.0.687306915506.issue1711@psf.upfronthosting.co.za> Maarten Thibaut added the comment: Try this on Linux and Solaris: ----------------------- from socket import ntohs, htons print ntohs(htons(55000)) ----------------------- On Linux: 55000 On Solaris: -10536 __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 23:19:08 2007 From: report at bugs.python.org (Amaury Forgeot d'Arc) Date: Sun, 30 Dec 2007 22:19:08 -0000 Subject: [issue1580] Use shorter float repr when possible Message-ID: <1199053148.38.0.121861920582.issue1580@psf.upfronthosting.co.za> Amaury Forgeot d'Arc added the comment: > If someone has a more recent version of MS's compiler, > I'd be interested to know what this does: Visual Studio 2008 Express Edition gives the same results: ['1024', '1024', '1024', '1024', '1024', '1024', '1024.000000000001'] (Tested release and debug builds, with trunk version and py3k branch) ---------- nosy: +amaury.forgeotdarc __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 23:24:01 2007 From: report at bugs.python.org (Amaury Forgeot d'Arc) Date: Sun, 30 Dec 2007 22:24:01 -0000 Subject: [issue1688] Incorrectly displayed non ascii characters in prompt using "input()" - Python 3.0a2 Message-ID: <1199053441.22.0.397054934659.issue1688@psf.upfronthosting.co.za> Changes by Amaury Forgeot d'Arc: ---------- nosy: +amaury.forgeotdarc __________________________________ Tracker __________________________________ From report at bugs.python.org Sun Dec 30 23:26:50 2007 From: report at bugs.python.org (Tim Peters) Date: Sun, 30 Dec 2007 22:26:50 -0000 Subject: [issue1580] Use shorter float repr when possible Message-ID: <1199053610.54.0.186363882075.issue1580@psf.upfronthosting.co.za> Tim Peters added the comment: Thanks, Amaury! That settles an issue raised earlier: MS's string<->double routines still don't do correct rounding, and "aren't even close" (the specific incorrect rounding showed here isn't a hard almost-exactly-half-way case). __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 00:11:27 2007 From: report at bugs.python.org (Giampaolo Rodola') Date: Sun, 30 Dec 2007 23:11:27 -0000 Subject: [issue1711] socket functions that should return unsigned int return signed int Message-ID: <1199056287.92.0.0828101965088.issue1711@psf.upfronthosting.co.za> Changes by Giampaolo Rodola': ---------- nosy: +giampaolo.rodola __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 00:18:27 2007 From: report at bugs.python.org (Amaury Forgeot d'Arc) Date: Sun, 30 Dec 2007 23:18:27 -0000 Subject: [issue1705] trace module does not annotate global statement Message-ID: <1199056707.8.0.482535341871.issue1705@psf.upfronthosting.co.za> Amaury Forgeot d'Arc added the comment: But 'global' is a directive to the compiler, and won't generate any bytecode itself. There is no code at this line. ---------- nosy: +amaury.forgeotdarc __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 03:24:03 2007 From: report at bugs.python.org (Carl Drougge) Date: Mon, 31 Dec 2007 02:24:03 -0000 Subject: [issue1713] posixpath.ismount() claims symlink to .. is mountpoint. Message-ID: <1199067842.94.0.942613449084.issue1713@psf.upfronthosting.co.za> Changes by Carl Drougge: ---------- components: Library (Lib) nosy: drougge severity: minor status: open title: posixpath.ismount() claims symlink to .. is mountpoint. type: behavior versions: Python 2.4, Python 2.5 __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 03:35:38 2007 From: report at bugs.python.org (Carl Drougge) Date: Mon, 31 Dec 2007 02:35:38 -0000 Subject: [issue1713] posixpath.ismount() claims symlink to a mountpoint is a mountpoint. Message-ID: <1199068538.17.0.165236464711.issue1713@psf.upfronthosting.co.za> New submission from Carl Drougge: Sorry, this happened to me in /tmp, where it's actually true, except I don't expect symlinks to be considered mountpoints, so I still consider it a bug. Should have tested more though. ---------- title: posixpath.ismount() claims symlink to .. is mountpoint. -> posixpath.ismount() claims symlink to a mountpoint is a mountpoint. __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 03:37:12 2007 From: report at bugs.python.org (Joseph Armbruster) Date: Mon, 31 Dec 2007 02:37:12 -0000 Subject: [issue1690] Crash on cancellation of windows install Message-ID: <1199068632.17.0.76791371685.issue1690@psf.upfronthosting.co.za> Joseph Armbruster added the comment: This issue has already been reported. http://bugs.python.org/issue1458 ---------- nosy: +JosephArmbruster __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 11:22:30 2007 From: report at bugs.python.org (=?utf-8?q?Martin_v._L=C3=B6wis?=) Date: Mon, 31 Dec 2007 10:22:30 -0000 Subject: [issue1455] VS2008, quick hack for distutils.msvccompiler Message-ID: <1199096550.66.0.911951800831.issue1455@psf.upfronthosting.co.za> Martin v. L?wis added the comment: This issue is closed, and didn't really deal with VS 2005 at all, so we should avoid tracking any further changes in it. I personally don't care about the PCbuild8 folder at all. It can be removed, updated, replaced with that script - whatever people like most. You might want to ask Kristjan Jonsson (who created it originally) about its fate. __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 14:11:30 2007 From: report at bugs.python.org (Christian Heimes) Date: Mon, 31 Dec 2007 13:11:30 -0000 Subject: [issue1458] installer crashes on attempted cancellation Message-ID: <1199106690.95.0.931940256575.issue1458@psf.upfronthosting.co.za> Changes by Christian Heimes: ---------- assignee: -> loewis nosy: +loewis priority: -> normal __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 14:11:37 2007 From: report at bugs.python.org (Christian Heimes) Date: Mon, 31 Dec 2007 13:11:37 -0000 Subject: [issue1690] Crash on cancellation of windows install Message-ID: <1199106697.45.0.717522221199.issue1690@psf.upfronthosting.co.za> Changes by Christian Heimes: ---------- resolution: -> duplicate status: open -> closed superseder: -> installer crashes on attempted cancellation __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 14:26:06 2007 From: report at bugs.python.org (Christian Heimes) Date: Mon, 31 Dec 2007 13:26:06 -0000 Subject: [issue1713] posixpath.ismount() claims symlink to a mountpoint is a mountpoint. Message-ID: <1199107566.25.0.420363359364.issue1713@psf.upfronthosting.co.za> Christian Heimes added the comment: A fix for the problem is easy. One has to replace os.stat() with os.lstat(): def ismount(path): """Test whether a path is a mount point""" try: s1 = os.stat(path) s2 = os.stat(join(path, '..')) except os.error: return False # It doesn't exist -- so not a mount point :-) dev1 = s1.st_dev dev2 = s2.st_dev if dev1 != dev2: return True # path/.. on a different device as path ino1 = s1.st_ino ino2 = s2.st_ino if ino1 == ino2: return True # path/.. is the same i-node as path return False ---------- nosy: +tiran priority: -> low versions: +Python 2.6, Python 3.0 __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 16:30:02 2007 From: report at bugs.python.org (Miroslav Suchy) Date: Mon, 31 Dec 2007 15:30:02 -0000 Subject: [issue1714] ConfigParser.py do not allow leading (and trailing) space in values. Message-ID: <1199115002.03.0.289718233868.issue1714@psf.upfronthosting.co.za> New submission from Miroslav Suchy: I have some configuration params with leading space. And program (getmail4) which use ConfigParser.py. ConfigParser strip all leading (and trailing) spaces from values. This is very often the most wanted result. But if I want value with leading space I have no option to put it there. Therefore I suggest to optionaly write string value as key = "value" This patch will solve it (it is against my OS, sorry no chance to checkout svn). --- /usr/lib/python2.4/ConfigParser.py.orig 2007-12-31 16:04:32.000000000 +0100 +++ /usr/lib/python2.4/ConfigParser.py 2007-12-31 16:06:50.000000000 +0100 @@ -472,6 +472,7 @@ if pos != -1 and optval[pos-1].isspace(): optval = optval[:pos] optval = optval.strip() + optval = optval.strip('"') # allow empty values if optval == '""': optval = '' ---------- components: Extension Modules messages: 59060 nosy: msuchy severity: normal status: open title: ConfigParser.py do not allow leading (and trailing) space in values. type: behavior versions: Python 2.4 __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 20:15:17 2007 From: report at bugs.python.org (Mark Dickinson) Date: Mon, 31 Dec 2007 19:15:17 -0000 Subject: [issue1694] floating point number round failures under Linux Message-ID: <1199128517.18.0.407345328139.issue1694@psf.upfronthosting.co.za> Mark Dickinson added the comment: Is there anything in the Python documentation that implies that '%.1f' % 2.25 should be the string '2.3'? I know that the documentation for the builtin round function implies that round(2.25, 1) should be (the closest representable float to) 2.3, but that's a separate issue. As far as I can tell, the float formatting of Python derives its behaviour fairly directly from that of the C library. And the C language specification seems to be pretty much silent on the exact rounding behaviour of the %e, %f and %g conversion specifiers, so it's not clear that either the Linux result or the Windows result is wrong. I'm actually more surprised by the Windows result: I'd expect %f to do round-to-nearest, with halfway results like this one rounded to the string with even last digit. Incidentally, on OS X 10.4.11/Intel, I get the same as on Linux: Python 2.5.1 (r251:54863, Dec 18 2007, 11:48:56) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> print '%.1f' % 2.25 2.2 ---------- nosy: +marketdickinson __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 22:35:40 2007 From: report at bugs.python.org (Tim Peters) Date: Mon, 31 Dec 2007 21:35:40 -0000 Subject: [issue1694] floating point number round failures under Linux Message-ID: <1199136940.09.0.450649160016.issue1694@psf.upfronthosting.co.za> Tim Peters added the comment: Right, Unix-derived C libraries generally do IEEE-754 "round to nearest/even" rounding, while Microsoft's do "add a half and chop" rounding. The Python reference manual says nothing about this, and neither does the C standard (well, C89 doesn't; unsure about C99). Python's round() function is independent of the platform C string<->float conversions, and intentionally does (as documented) "add a half and chop" rounding. ---------- nosy: +tim_one __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 23:19:37 2007 From: report at bugs.python.org (Kurt B. Kaiser) Date: Mon, 31 Dec 2007 22:19:37 -0000 Subject: [issue1692] Syntax Error exception dosen't print string; not informative Message-ID: <1199139577.84.0.015011695714.issue1692@psf.upfronthosting.co.za> Changes by Kurt B. Kaiser: ---------- nosy: +kbk __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 23:30:54 2007 From: report at bugs.python.org (Mark Dickinson) Date: Mon, 31 Dec 2007 22:30:54 -0000 Subject: [issue1694] floating point number round failures under Linux Message-ID: <1199140254.1.0.730542269035.issue1694@psf.upfronthosting.co.za> Mark Dickinson added the comment: It's worth noting that Python's round function doesn't quite work as advertised, either: Python 2.6a0 (trunk:59634M, Dec 31 2007, 17:27:56) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> round(562949953421312.5, 1) 562949953421312.62 __________________________________ Tracker __________________________________ From report at bugs.python.org Mon Dec 31 23:39:36 2007 From: report at bugs.python.org (Mattie) Date: Mon, 31 Dec 2007 22:39:36 -0000 Subject: [issue1507224] sys.path issue if sys.prefix contains a colon Message-ID: <1199140776.06.0.0388455796398.issue1507224@psf.upfronthosting.co.za> Mattie added the comment: This is also proving to be a problem in various places for applications embedding Python 2.5 on Linux. For example, my EventScripts plugin embeds Python into Counter-Strike: Source game servers. It's not uncommon at all for these servers to use a colon in their path names, as rental companies will often assign the directories as myuser/IPADDRESS:PORT/cstrike. For embedding Python we have some tricks that allow us to bypass this sometimes, but it is rather inconvenient. In addition to sys.path, I haven't looked into it deeply, but I believe the codecs search path also seems to get confused when the local directory has a colon somewhere in it. Please consider revitalizing this bug, if possible. Thanks for considering it. ---------- nosy: +Mattie _____________________________________ Tracker _____________________________________ From report at bugs.python.org Mon Dec 31 23:56:53 2007 From: report at bugs.python.org (Tim Peters) Date: Mon, 31 Dec 2007 22:56:53 -0000 Subject: [issue1694] floating point number round failures under Linux Message-ID: <1199141813.19.0.127166448497.issue1694@psf.upfronthosting.co.za> Tim Peters added the comment: Nice example! Yes, the round() implementation is numerically naive, in this particular case ignoring that x+0.5 isn't necessarily representable (it multiplies the input by 10.0, adds 0.5, takes the floor, then divides by 10.0, and in this specific case adding 0.5 loses information to rounding: >>> 5629499534213125 + 0.5 5629499534213126.0 ). __________________________________ Tracker __________________________________