This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ctypeslib patch for regular expression for symbols to include
Type: behavior Stage: resolved
Components: ctypes Versions: Python 2.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: jwagner313, ronaldoussoren, theller
Priority: normal Keywords: patch

Created on 2015-08-17 07:20 by jwagner313, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
codegenerator.patch jwagner313, 2015-08-17 07:20
Messages (3)
msg248721 - (view) Author: Jan Wagner (jwagner313) * Date: 2015-08-17 07:20
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.
msg248723 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2015-08-17 12:07
This appears to be an issue for an external library <https://pypi.python.org/pypi/ctypeslib>, although one hosted at svn.python.org.
msg248943 - (view) Author: Jan Wagner (jwagner313) * Date: 2015-08-21 05:45
Yes, hosted at svn.python.org, but without any means of "externally" filing a bug report or patch for it other than here on bugs.python.org. Maybe theller you could include this patch?   Change status to closed + third party...?
History
Date User Action Args
2022-04-11 14:58:19adminsetgithub: 69068
2020-05-31 15:09:40serhiy.storchakasetstatus: open -> closed
resolution: third party
stage: resolved
2015-08-21 05:45:11jwagner313setmessages: + msg248943
2015-08-17 12:08:50ronaldoussorensetnosy: + theller
2015-08-17 12:07:43ronaldoussorensetnosy: + ronaldoussoren
messages: + msg248723
2015-08-17 07:20:06jwagner313create