[issue6957] Extension modules fail to build on OS X 10.6 using python.org 2.x/3.x

2009-09-26 Thread Ned Deily
Ned Deily added the comment: > (that is, assuming the remaining builds and tests in progress complete normally - I'll update the status when they finish) No regressions noted: - DEPTARGET=10.3, 2-way i386/ppc, built on 10.5: regrtest on 10.4 ppc, 10.5 ppc, 10.6 i386 - DEPTARGET=10.3, 2-w

[issue6071] no longer possible to hash arrays

2009-09-26 Thread Jan Hosang
Jan Hosang added the comment: > > The patch breaks five unit tests from other modules, I'll look into > > it. > > What are those tests? test_codecs, test_ioctl, test_multiprocessing, test_socket and test_struct. -- ___ Python tracker

[issue6071] no longer possible to hash arrays

2009-09-26 Thread Jan Hosang
Jan Hosang added the comment: You asked "what" not "which" :) test test_codecs failed -- Traceback (most recent call last): File "/Users/jan/src/python-svn/Lib/test/test_codecs.py", line 531, in test_array codecs.readbuffer_encode(array.array("c", "spam")), TypeError: must be string or r

[issue6071] no longer possible to hash arrays

2009-09-26 Thread Jan Hosang
Jan Hosang added the comment: I stumbled upon the following function: static Py_ssize_t convertbuffer(PyObject *arg, void **p, char **errmsg) in Python/getargs.c The first thing the function does is checking if the object implements the old buffer api, but also fails if pb->bf_releasebuffer !

[issue6071] no longer possible to hash arrays

2009-09-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The patch breaks five unit tests from other modules, I'll look into it. What are those tests? -- ___ Python tracker ___ _

[issue6957] Extension modules fail to build on OS X 10.6 using python.org 2.x/3.x

2009-09-26 Thread Ned Deily
Ned Deily added the comment: Explicitly defining CC during the installer build does seem to fix the extension build problem, at least for well-behaved extensions. I successfully tested building simplejson (using both easy_install and direct setup.py installs) and MySQLdb, both on 10.6 using

[issue1175004] Export more libreadline API functions

2009-09-26 Thread Simon Arlott
Simon Arlott added the comment: Access to rl_reset_line_state (and possibly others in the Redisplay section) are also required, otherwise it's not possible to recover from KeyboardInterrupt during raw_input() if readline isn't in the expected editing mode. Example: 1. call raw_input() and use

[issue7000] optional second argument of string.capwords not documented

2009-09-26 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r75070 (trunk), r75071 (release26-maint), r75074 (py3k), r75075 (release31-maint), thanks! -- resolution: accepted -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue7001] turtle.py bug-fixes, backported from 3.1 [issue5923]

2009-09-26 Thread Gregor Lingl
Gregor Lingl added the comment: These patches need to be applied to 2.6 in order that they appear in 2.6.3. (/python/branches/release26-maint, I think). As far as I see this is urgent because 2.6.3rc1 is only a few days away. Eventually (or, if you want at the same time) they need to be applied

[issue7004] Py_RETURN_BOOL() convenience macro

2009-09-26 Thread Jon Parise
New submission from Jon Parise : I've sometimes found it useful to define a convenience macro named Py_RETURN_BOOL(x) which is essentially: #define Py_RETURN_BOOL(x) if (x) Py_RETURN_TRUE; else Py_RETURN_FALSE It's useful for implementing functions which return Boolean values based on simple co

[issue7004] Py_RETURN_BOOL() convenience macro

2009-09-26 Thread Jon Parise
Jon Parise added the comment: Also attached is a short set of examples of how this macro could be used in the Python source tree. -- Added file: http://bugs.python.org/file14983/Py_RETURN_BOOL.examples.patch ___ Python tracker

[issue7004] Py_RETURN_BOOL() convenience macro

2009-09-26 Thread Jon Parise
Jon Parise added the comment: Also attached is a small documentation patch. -- Added file: http://bugs.python.org/file14984/Py_RETURN_BOOL.doc.patch ___ Python tracker ___ __

[issue5460] Python 3.0 grammar is ambiguous with the addition of star_expr

2009-09-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r75080. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7005] ConfigParser does not handle options without values

2009-09-26 Thread Mats Kindahl
New submission from Mats Kindahl : When ConfigParser is used to read in a my.cnf file (MySQL Server Configuration File), it fails for options that do not have value. ConfigParser is designed to require a value for each option, but some systems, such as MySQL option file reader, accepts options w