[New-bugs-announce] [issue24880] ctypeslib patch for regular expression for symbols to include

Jan Wagner report at bugs.python.org
Mon Aug 17 09:20:06 CEST 2015


New submission from Jan Wagner:

There is an issue in ctypeslib that affects xml2py.py option "-r". The usage informs that "-r EXPRESSION regular expression for symbols to include". However, when the expression is evaluated, only exact name matches are actually selected. For example, -r "set" would match only a function called set. 

The underlying issue is in codegenerator.py. Here is a small patch that changes the behaviour of codegenerator.py so that it (and xml2py.py) are more consistent with the usage instructions. With the patch, -r "set" will match all functions containing set, e.g., setData, setAxis, and so on.

----------
components: ctypes
files: codegenerator.patch
keywords: patch
messages: 248721
nosy: jwagner313
priority: normal
severity: normal
status: open
title: ctypeslib patch for regular expression for symbols to include
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file40196/codegenerator.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24880>
_______________________________________


More information about the New-bugs-announce mailing list