https://bugzilla.novell.com/show_bug.cgi?id=470073 User lrupp@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470073#c13 Lars Vogdt <lrupp@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lrupp@novell.com --- Comment #13 from Lars Vogdt <lrupp@novell.com> 2009-03-31 06:08:21 MDT --- Jan, please have a look at http://bugs.python.org/issue4720 I suggest the following patch for python-numpy in STABLE: Index: numpy/f2py/rules.py =================================================================== --- numpy/f2py/rules.py.orig +++ numpy/f2py/rules.py @@ -246,5 +246,5 @@ #endif \tif (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\\ -\t\t\"#argformat#|#keyformat##xaformat#:#pyname#\",\\ +\t\t\"#argformat##keyformat##xaformat#:#pyname#\",\\ \t\tcapi_kwlist#args_capi##keys_capi##keys_xa#))\n\t\treturn NULL; #frompyobj# @@ -1356,4 +1356,14 @@ ['\\begin{description}']+rd[k][1:]+\ ['\\end{description}'] + + # Workaround for Python 2.6, 2.6.1 bug: http://bugs.python.org/issue4720 + if rd['keyformat'] or rd['xaformat']: + argformat = rd['argformat'] + if isinstance(argformat, list): + argformat.append('|') + else: + assert isinstance(argformat, str),repr((argformat, type(argformat))) + rd['argformat'] += '|' + ar=applyrules(routine_rules,rd) if ismoduleroutine(rout): -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.