[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: More curious and more curious... I assume that cmath.log(100.0) and cmath.log(2.0) return the right things? (Both answers should have zero imaginary part.) Might this be some optimization bug? Can you turn off all optimizations and see what

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: However, the resulting build produces to wrong result: Darn. That's probably because the linker needs the extra flag as well. Here's a revised patch for you to try. (You might need to do an svn up before it applies cleanly...) Added file:

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Changes by Mark Dickinson [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10754/issue3167.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167 ___

[issue900744] catch invalid chunk length in httplib read routine

2008-06-28 Thread Philip Dorrell
Philip Dorrell [EMAIL PROTECTED] added the comment: I have raised a bug 125 for boto ( http://code.google.com/p/boto/issues/detail?id=125 ) in relation to this problem, because if httplib.py is not fixed in Python 2.5, then any code calling httplib.py has to work around it by handling a

[issue3225] backport python 3.0 language functionality to python 2.5 by adding 8 opcodes to ceval.c

2008-06-28 Thread kai zhu
) 15 LOAD_CONST 4 (None) 18 RETURN_VALUE exec(codeobject); print a=%s, b=%s, c=%s%(a,b,c) a=1, b=2, c=[3, 4] u can go c http://pypi.python.org/pypi?name=py3to2version=20080628:action=display for more info anyway, i think it would b a great boost for python 3.0 (which i

[issue3225] backport python 3.0 language functionality to python 2.5 by adding 8 opcodes to ceval.c

2008-06-28 Thread kai zhu
Changes by kai zhu [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3225 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3225] backport python 3.0 language functionality to python 2.5 by adding 8 opcodes to ceval.c

2008-06-28 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Sorry, but adding new feature into the 2.5.3 release (or any later 2.5 release) is unacceptable; the feature list of 2.5 was frozen in 2006 (when the first beta release of 2.5 was made). Thus, I'm rejecting the patch. -- nosy: +loewis

[issue3174] 3.0b1 doesn't seem to install on macs

2008-06-28 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - benjamin.peterson priority: - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3174 ___

[issue3224] Small typo in 2.6 what's new

2008-06-28 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks. Fixed in r64572. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3224

[issue1503502] Pdb doesn't call flush on its stdout file descriptor

2008-06-28 Thread James Dominy
James Dominy [EMAIL PROTECTED] added the comment: I've been working on a patch that allows pdb when run as a script to split it's output such that the program being debugged uses a specified tty for stdin/stdout, and leave the pdb.py IO on the original stdin/stdout. I think perhaps these efforts

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I think I narrowed the problem to a race condition in *subclasses* of threading.local: In threadmodule.c::local_getattro, there is a chance that self-dict is changed before PyObject_GenericGetAttr is called. -- nosy:

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Keep in mind also, these Python builds are compiled with the SUN compilers, i.e. the ./configure command line includes --without-gcc. If we do change the CC- and LINKFLAGS, those changes should only apply in that particular case. Using

[issue3226] can't install on OSX 10.4

2008-06-28 Thread Benjamin Peterson
New submission from Benjamin Peterson [EMAIL PROTECTED]: Mac/Makefile.in uses the arch command which doesn't have the ability to run a given architecture in 10.4 like it does in 10.5. Hence, the install fails. -- assignee: ronaldoussoren messages: 68879 nosy: benjamin.peterson,

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: The 32-but results are the same when built with -xO5. Python 2.6b1 (r26b1:64398, Jun 28 2008, 10:43:53) [C] on sunos5 Type help, copyright, credits or license for more information. import cmath cmath.log(100.0) (4.6051701859880918+0j)

[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: For 32-bit, see the latest posts at http://bugs.python.org/issue3167. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3168 ___

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Keep in mind also, these Python builds are compiled with the SUN compilers, i.e. the ./configure command line includes --without-gcc. If we do change the CC- and LINKFLAGS, those changes should only apply in that particular case.

[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: What about cmath.log(100.0) and cmath.log(2.0) on 64-bit? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3168 ___

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: The SUN compiler versions cc -V cc: Sun C 5.8 2005/10/13 usage: cc [ options] files. Use 'cc -flags' for details CC -V CC: Sun C++ 5.8 2005/10/13 Both define the following symbols: #define __SUNPRO_C 0x580 #define __SunOS_5_10

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Okay, here's a third version of the patch. Same as before, except that it makes sure that LDFLAGS are included in LDSHARED. Jean, does this patch fix the problem with math.log on 32-bit? If so, I'll check it in. Added file:

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Changes by Mark Dickinson [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10757/issue3167.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167 ___

[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Forgot to mention, both 64-bit builds above includes -xlibmieee in the BASECFLAGS and LDFLAGS ./configure symbols (not LDSHARED!). The complete .configure command line was (with OPT adjusted accordingly): env CCSHARED=-KPIC LDSHARED=cc

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Sorry, my previous post was wrong. The LDSHARED symbol did NOT include - xlibmieee. Only the BASECFLAGS and the LDFLAGS. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167

[issue3222] inf*inf gives inf, but inf**2 gives overflow error

2008-06-28 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Closing as 'won't fix'. -- resolution: - wont fix status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3222 ___

[issue3227] os.environ.clear has no effect on child processes

2008-06-28 Thread Joe P. Cool
New submission from Joe P. Cool [EMAIL PROTECTED]: If I call os.environ.clear in a python program child processes still see the cleared entries. But when I iterate over the keys like so names = os.environ.keys() for k in names: del os.environ[k] then the entries are also deleted for the

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: I applied your patch to freshly updated configure and configure.in files and ran ./configure --without-gcc on Solaris. The resulting Makefile has empty BASECFLAGS and LDFLAGS. Here is the snippet: # Compiler options OPT=

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Sorry---my bad. I missed out the $ac_sys_release bit. Patch updated again. Jean, could you please give it one more try? Added file: http://bugs.python.org/file10760/issue3167.patch ___ Python tracker

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Changes by Mark Dickinson [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10759/issue3167.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167 ___

[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: This is pretty bizarre, take a look at the following, 64-bit Pyhon 2.6b1 -xO5. Python 2.6b1 (r26b1:64398, Jun 28 2008, 12:50:06) [C] on sunos5 Type help, copyright, credits or license for more information. import math math.log(100.0, 2.0)

[issue2650] re.escape should not escape underscore

2008-06-28 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: The escaped regexp is not utf-8 (why should it be?) I suppose it is annoying if you want to print the escaped regexp for debugging purposes. Anyway, I suppose someone should really decide if improving re.escape is worth it, and if not, close

[issue3228] mailbox.mbox creates files with execute bit set

2008-06-28 Thread Piotr Lewandowski
New submission from Piotr Lewandowski [EMAIL PROTECTED]: #v+ $ umask 0077 $ stat /tmp/foobar stat: cannot stat `/tmp/foobar': No such file or directory $ python -c from mailbox import mbox; m=mbox('/tmp/foobar', create=True); m.add(''); m.close() $ stat -c '%A' /tmp/foobar -rwx-- #v- Bug

[issue3092] Wrong unicode size detection in pybench

2008-06-28 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: You're right: probably not. Would be great to have the test on the Py2.x version as well - to see the difference in performance. I'm not following you, what test are you talking about? The patch is only about reporting of the Python build

[issue3081] Py_(X)SETREF macros

2008-06-28 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: This new patch avoids using temporary variables named new, it also adopts the do { ... } while (0) idiom for definition of the macros. Added file: http://bugs.python.org/file10761/py_setref.patch ___ Python

[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Trying to isolate and duplicate the problem with c_quot isn't quite working. See the attached c_quot.c file and the results at the end. Added file: http://bugs.python.org/file10762/c_quot.c ___ Python

[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Could you try the attached patch, and see what output you get from cmath.log(100., 2.)? (On 64-bit, of course.) -- keywords: +patch Added file: http://bugs.python.org/file10763/issue3168.patch ___

[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Trying to isolate and duplicate the problem with c_quot isn't quite working. See the attached c_quot.c file and the results at the end. I'd expect that you'd need both the cmath_log and the c_quot functions, probably in separate files

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Yep, that one works. As before, using ./configure --without-gcc ... BASECFLAGS= -xlibmieee CFLAGS= $(BASECFLAGS) $(OPT) $(EXTRA_CFLAGS) # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to # be able

[issue3081] Py_(X)SETREF macros

2008-06-28 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: -1 on the new macros. The mnemonic doesn't work for me and the example code fragments are to my eyes less readable than before. These add to the learning curve for reading and writing C extensions and provide nearly zero benefits.

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-28 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Uh, actually, it works if you specify re.UNICODE. If you don't, the getlower() function in _sre.c falls back to the plain ASCII algorithm. pat = re.compile('Á', re.IGNORECASE | re.UNICODE) pat.match('á') _sre.SRE_Match object at 0xb7c66c28

[issue3081] Py_(X)SETREF macros

2008-06-28 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le samedi 28 juin 2008 à 20:12 +, Raymond Hettinger a écrit : Raymond Hettinger [EMAIL PROTECTED] added the comment: -1 on the new macros. The mnemonic doesn't work for me and the example code fragments are to my eyes less readable

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Changes by Mark Dickinson [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10760/issue3167.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167 ___

[issue3227] os.environ.clear has no effect on child processes

2008-06-28 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: This has been fixed in the upcoming Python 2.6. -- nosy: +benjamin.peterson resolution: - out of date status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3227

[issue2650] re.escape should not escape underscore

2008-06-28 Thread Morten Lied Johansen
Morten Lied Johansen [EMAIL PROTECTED] added the comment: In my particular case, we were passing the regex on to a database which has regex support syntactically equal to Python, so it seemed natural to use re.escape to make sure we weren't matching against the pattern we really wanted. The

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Martin, Do you have a moment to do a sanity check on the attached patch? The aim of the patch is to add the -xlibmieee flag when compiling and linking on Solaris using Sun's compiler rather than gcc. Jean Brouwers has confirmed that the

[issue3228] mailbox.mbox creates files with execute bit set

2008-06-28 Thread Jakub Wilk
Changes by Jakub Wilk [EMAIL PROTECTED]: -- nosy: +jwilk ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3228 ___ ___ Python-bugs-list mailing list

[issue3212] ssl module - should test for a wrong cert

2008-06-28 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: I've added this into my patch. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3212 ___ ___ Python-bugs-list

[issue3162] ssl.SSLSocket implements methods that are overriden by socket.socket.__init__ and methods with incorrect names.

2008-06-28 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: Thanks for pointing this out. I've got a patch for the overrides and the misnamings already. We don't have implementations for recvfrom_into, or recv_into. If you'd care to create a patch for that, it would help. -- assignee: -

[issue3230] dictobject.c: inappropriate use of PySet_GET_SIZE?

2008-06-28 Thread Martina Oefelein
New submission from Martina Oefelein [EMAIL PROTECTED]: The first use of PySet_GET_SIZE in dict_fromkeys (file dictobject.c) is applied to a PyDictObject. These seem to work by chance, as the PyDictObject and PySetObject have very similar structure so that it does not matter if you cast a

[issue3230] dictobject.c: inappropriate use of PySet_GET_SIZE?

2008-06-28 Thread Martina Oefelein
Changes by Martina Oefelein [EMAIL PROTECTED]: -- versions: +Python 2.6, Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3230 ___ ___

[issue2973] _ssl compiler warnings

2008-06-28 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: Any progress here? I haven't yet found a formulation which suppresses the warning on all platforms. I'm guessing there will have to be some kind of cpp test #if SOMEFEATURE #define D2I_PARAMETER_2_TYPE unsigned char * #else #define

[issue3230] dictobject.c: inappropriate use of PySet_GET_SIZE?

2008-06-28 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3230 ___ ___

[issue3230] dictobject.c: inappropriate use of PySet_GET_SIZE?

2008-06-28 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Will get this fixed-up. -- priority: - high ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3230 ___

[issue2973] _ssl compiler warnings

2008-06-28 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Yes, although I have no idea what that feature may be... (sigh) Oh well, it's a wish. -- priority: normal - low ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2973

[issue3226] can't install on OSX 10.4

2008-06-28 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- versions: -Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3226 ___ ___ Python-bugs-list

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Dunno about Sun's compiler, but I get test errors on Solaris 10 using gcc 4.2: == FAIL: test_specific_values (test.test_cmath.CMathTests)

[issue3230] dictobject.c: inappropriate use of PySet_GET_SIZE?

2008-06-28 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Fixed. See r64577 Thanks for the report. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3230

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-28 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: Sounds like re.UNICODE should be on by default when the pattern is a str instance. Also (per mailing list discussion) we should probably only allow matching bytes when the pattern is bytes, and matching str when the pattern is str. Finally,

[issue3162] ssl.SSLSocket implements methods that are overriden by socket.socket.__init__ and methods with incorrect names.

2008-06-28 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: I've committed the patch which I have for 2.6. Still need renamings for 3.0, and implementations of recvfrom_into and recv_into. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3162

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-28 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le samedi 28 juin 2008 à 22:20 +, Guido van Rossum a écrit : Finally, is there a use case of re.LOCALE any more? I'm thinking not. It's used for locale-specific case matching in the non-unicode case. But it looks to me like a bad practice

[issue3229] Language reference, class definitions: missing text in Programmer's note

2008-06-28 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks fixed in r64581. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3229

[issue3231] re.compile fails with some bytes patterns

2008-06-28 Thread Antoine Pitrou
New submission from Antoine Pitrou [EMAIL PROTECTED]: Some patterns can be compiled in str form but not in bytes form. This was overlooked because the test suite wasn't correctly adapted for py3k: re.compile('[\\1]') _sre.SRE_Pattern object at 0xb7be1410 re.compile('\\09') _sre.SRE_Pattern

[issue3230] dictobject.c: inappropriate use of PySet_GET_SIZE?

2008-06-28 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I still see another instance of PySet_GET_SIZE on line 1274. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3230

[issue3231] re.compile fails with some bytes patterns

2008-06-28 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Here is a patch fixing both the bug and the test suite. -- keywords: +patch Added file: http://bugs.python.org/file10765/rebytes.patch ___ Python tracker [EMAIL PROTECTED]

[issue3230] dictobject.c: inappropriate use of PySet_GET_SIZE?

2008-06-28 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: That one is technically okay because seq really is a set. But I'm okay with you changing it anyway. It would be nice to see Py_SIZE used everywhere in preference to the type specific versions of the same macro.

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: After 4 hours spent with the debugger I think I have an explanation and a correction of one of the problems. Note that this only affects the Manager tests. - The threading.local type overrides getattr and setattr: on every call, it

[issue3212] ssl module - should test for a wrong cert

2008-06-28 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: Added this in 2.6, still needs it for 3.x. -- versions: +Python 3.0 -Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3212 ___

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-28 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Here is a preliminary patch which doesn't remove re.LOCALE, but adds TypeError's for mistyped matchings, a ValueError when specifying re.UNICODE with a bytes pattern, and implies re.UNICODE for unicode patterns. The test suite runs fine after a

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10767/reunicode.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2834 ___

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10768/reunicode.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2834 ___