Re: Python C API: how to mark a type as subclass of another type

2021-11-02 Thread Dieter Maurer
Marco Sulla wrote at 2021-11-2 13:43 +0100: >I already added the address of the type to tp_base, but it does not work. It worked for me in `dm.incrementalsearch`. Maybe, you need a special value for `tp_flags`. Look at the examples. -- https://mail.python.org/mailman/listinfo/python-list

Python/django app design

2021-11-02 Thread dallasdisabi...@gmail.com
I am seeking to create a django application. The user would upload a text file that includes medical records and other unstructured data. I want to create a word document report based upon the information in the files. A key feature is to look for specific predefined text. So with regard to

Re: Python C API: how to mark a type as subclass of another type

2021-11-02 Thread Marco Sulla
*ahem* evidently I didn't check the right package. it works like a charme :D On Tue, 2 Nov 2021 at 13:43, Marco Sulla wrote: > > I already added the address of the type to tp_base, but it does not work. > > On Mon, 1 Nov 2021 at 17:18, Dieter Maurer wrote: > > > > Marco Sulla wrote at 2021-1

lxml parsing with validation and target?

2021-11-02 Thread Robin Becker
I'm having a problem using lxml.etree to make a treebuilding parser that validates; I have test code where invalid xml is detected and an error raised when the line below target=ET.TreeBuilder(), is commented out. The validation error looks as expected > python tlxml.py invalid.rml re.compile(

Re: Python C API: how to mark a type as subclass of another type

2021-11-02 Thread Marco Sulla
I already added the address of the type to tp_base, but it does not work. On Mon, 1 Nov 2021 at 17:18, Dieter Maurer wrote: > > Marco Sulla wrote at 2021-10-31 23:59 +0100: > >I have two types declared as > > > >PyTypeObject PyX_Type = { > >PyVarObject_HEAD_INIT(&PyType_Type, 0) > > > >etc. >