[issue2547] Py30a4 RELNOTES only cover 30a1 and 30a2

2008-04-03 Thread Mark Summerfield
New submission from Mark Summerfield <[EMAIL PROTECTED]>: The 30a4 RELNOTES file doesn't cover 30a3 or 30a4. -- assignee: georg.brandl components: Documentation messages: 64918 nosy: georg.brandl, mark severity: normal status: open title: Py30a4 RELNOTES only cover 30a1 and 30a2 type: fe

[issue2385] run_setup can fail if the setup script uses __file__

2008-04-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. <[EMAIL PROTECTED]> added the comment: Here's a patch that restores the current directory after running the script. The distutils-sig should probably determine if that's the right thing to do. Includes test. Added file: http://bugs.python.org/file9936/run_script-restores-cwd

[issue2385] run_setup can fail if the setup script uses __file__

2008-04-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. <[EMAIL PROTECTED]> added the comment: I don't think these are the right thing to do. 1. Your run_setup() changes add a os.chdir(), but then uses the path to the script as passed in; this assumes that the provided path is absolute, which is not a good assumption. That i

[issue2546] Python-2.5.2: crash in visit_decref () at Modules/gcmodule.c:270

2008-04-03 Thread George Verbitsky
New submission from George Verbitsky <[EMAIL PROTECTED]>: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208408368 (LWP 2816)] 0x080edccd in visit_decref (op=0xbf9289ff, data=0x0) at Modules/gcmodule.c:270 270 if (PyObject_IS_GC(op)) { (gdb) bt #0 0x080ed

[issue2539] Windows Registry issue with 2.5.2 AMD64 msi

2008-04-03 Thread Jason
Jason <[EMAIL PROTECTED]> added the comment: I did a per-machine installation (Install for all users). I don't have the registry information at the moment, but I'll do some more uninstalling and reinstalling and get that information to you. Martin v. Löwis wrote: > Martin v. Löwis <[EMAIL PRO

[issue2138] Add a factorial function

2008-04-03 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: The fact that other languages have factorial does not in itself impress me. What is the actual use case other than illustrating computational induction (whether by iteration or recursion) and for calculating binomial coefficients? I don't re

[issue2545] sphinx.ext.autodoc fails to expand tabs in docstrings

2008-04-03 Thread John Millikin
Changes by John Millikin <[EMAIL PROTECTED]>: -- type: -> behavior __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubsc

[issue2545] sphinx.ext.autodoc fails to expand tabs in docstrings

2008-04-03 Thread John Millikin
New submission from John Millikin <[EMAIL PROTECTED]>: Sphinx seems to need tabs expanded in reST, but the autodoc extension doesn't do so. The following patch is very small, and fixes the issue on my system. Oddly, I can reproduce this on a Linux system with doctools and docutils trunk, but not

[issue2475] Popen.poll always returns None

2008-04-03 Thread Josh Cogliati
Josh Cogliati <[EMAIL PROTECTED]> added the comment: Hm. Well, after filing the bug, I created a thread for each subprocess, and had that thread do an wait on the process, and that worked fine. So, I guess at minimum it sounds like the documentation for poll could be improved to mention that it

[issue2516] Instance methods are misreporting the number of arguments

2008-04-03 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: It's definitely a bug, but I think the reason it has been around so long is that no-one has offerred a clean solution. I was hoping for something along the lines of functions raising an ArgumentError (a new subclass of TypeError) that

[issue2116] weakref copy module interaction

2008-04-03 Thread Rick Harris
Rick Harris <[EMAIL PROTECTED]> added the comment: Sorry about forgetting the -c arg! The patch is intended for python/trunk/Lib/copy.py. It looks like Raymond Hettinger has made a similar-ish change recently to make Ellipsis copyable. __ Tracker <[EMAIL PROTECTE

[issue1733757] RuntimeWarning: tp_compare didn't return -1 or -2

2008-04-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The deadlock was resolved by r62136. I think I was lucky this time. I was close to disable sys.settrace before interpreter shutdown. But is would disallow debugging inside the finalization procedures. -- resolution: -> fixed st

[issue1582742] Python is dumping core after the test test_ctypes

2008-04-03 Thread Thomas Heller
Thomas Heller <[EMAIL PROTECTED]> added the comment: See issue #2544, this problem will be solved in Python 2.6. In Python 2.5, ctypes does not work on HPUX. -- assignee: -> theller resolution: -> rejected status: open -> closed _ Tracker <[EMAIL P

[issue2544] link with "gcc -shared" on HP systems

2008-04-03 Thread Thomas Heller
New submission from Thomas Heller <[EMAIL PROTECTED]>: As discussed in issue #1582742, this patch uses 'gcc -shared' as linker on HP systems when compiling with gcc. It fixes a problem in the ctypes test-suite, that _ctypes_test.so cannot be dynloaded because of missing symbols. To be committed

[issue2455] stat.ST_CTIME and stat.ST_ATIME problem

2008-04-03 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Not here, ST_CTIME is 9 and ST_ATIME is 7, both are the correct indices at the tuple returned by os.stat. Could you recheck that and then and include some output (if it is really incorrect) ? -- nosy: +gpolo

[issue2543] Make ctypes compatible with Python 2.3, 2.4, and 2.5, as per PEP291

2008-04-03 Thread Thomas Heller
New submission from Thomas Heller <[EMAIL PROTECTED]>: To be committed after the current release is out. -- assignee: theller components: ctypes files: ctypes-compat-py23.diff keywords: patch, patch messages: 64904 nosy: theller severity: normal status: open title: Make ctypes compatible

[issue2516] Instance methods are misreporting the number of arguments

2008-04-03 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Guido, what's your opinion on this? Is this a bug, and should it be fixed? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> __ _

[issue2516] Instance methods are misreporting the number of arguments

2008-04-03 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: I am uploading another work in progress patch because the problem proved to be more difficult than I thought in the beginning. The new patch addresses two issues. 1. a.f(..) -> A.f(a, ..) transformation is performed is several places i

[issue2475] Popen.poll always returns None

2008-04-03 Thread roudkerk
roudkerk <[EMAIL PROTECTED]> added the comment: The problem is that os.wait() does not play nicely with subprocess.py. Popen.poll() and Popen.wait() use os.waitpid(pid, ...) which will raise OSError if pid has already been reported by os.wait(). Popen.poll() swallows OSError and by default retur

[issue2541] Unicode escape sequences not parsed in raw strings.

2008-04-03 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Fixed in r62128. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue2542] PyErr_ExceptionMatches must not fail

2008-04-03 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: The tests pass and prints the ignores. But I still see an issue: import sys def g(): try: return g() except: return sys.exc_info() >>> g() (, 'maximum recursion depth exceeded while calling a Python object', ) >>> import

[issue2541] Unicode escape sequences not parsed in raw strings.

2008-04-03 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Thanks for noticing, Amaury, and your patch works for me. -- priority: -> critical __ Tracker <[EMAIL PROTECTED]> __ _

[issue2541] Unicode escape sequences not parsed in raw strings.

2008-04-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: No, it's about python 3.0. I confirm the problem, and propose a patch: --- Python/ast.c.original 2008-04-03 15:12:15.548389400 +0200 +++ Python/ast.c2008-04-03 15:12:28.359475800 +0200 @@ -3232,7 +3232,7 @@ re

[issue2541] Unicode escape sequences not parsed in raw strings.

2008-04-03 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: You use the "ur" string mode. >>> print ur"\u0020" " " -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> _

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-04-03 Thread djc
Changes by djc <[EMAIL PROTECTED]>: -- nosy: +djc _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue2542] PyErr_ExceptionMatches must not fail

2008-04-03 Thread Thomas Heller
New submission from Thomas Heller <[EMAIL PROTECTED]>: PyErr_ExceptionMatches must not fail, according to the docs. So an error code from PyObject_IsSubclass() cannot be returned. The attached patch calls PyErr_WriteUnraisable in this case, and returns an arbitrary value (0 was chosen in the pa

[issue2534] Speed up isinstance and issubclass

2008-04-03 Thread Thomas Heller
Thomas Heller <[EMAIL PROTECTED]> added the comment: Problem found. See issue #2542, which contains a patch that fixes the failure in test_exceptions; this test now additionally prints Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in ignored Exception

[issue2540] If HAVE_LONG_LONG is not defined, longval will not be initialized (_sqlite)

2008-04-03 Thread Gerhard Häring
Gerhard Häring <[EMAIL PROTECTED]> added the comment: My problem is that I can't really test (better than #undefining HAVE_LONG_LONG) this, because I have no platform to test on that doesn't have long longs. I'm not even sure SQLite *really* works when there is no 64-bit type. I'll ask on the SQ

[issue2540] If HAVE_LONG_LONG is not defined, longval will not be initialized (_sqlite)

2008-04-03 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Gerhard, what do you think? -- assignee: -> ghaering nosy: +ghaering, loewis __ Tracker <[EMAIL PROTECTED]> __ _

[issue2539] Windows Registry issue with 2.5.2 AMD64 msi

2008-04-03 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Do you perform a per-user or per-machine installation? When you look at the Python registry keys, which ones get written? -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]>