|
Re: How do I subtype python internal type that is not part of a module?: msg#00038python.pyrex
Lenard Lindstrom <len-l@xxxxxxxxx>: > I have enhanced my python interpeter to allow subtyping of python > functions and wish to create some extension types directly from > PyFunction_Type. Unfortunately the type is not part of any module. I > have tried the following pyrex code: It's available in the "types" module, so you should be able to say cdef extern from "python.h": ctypedef class types.FunctionType [object PyFunctionObject]: pass Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@xxxxxxxxxxxxxxxxxxxxx +--------------------------------------+ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Pyrex IDE: 00038, Voidspace |
|---|---|
| Next by Date: | Re: Pyrex IDE: 00038, Bob Ippolito |
| Previous by Thread: | How do I subtype python internal type that is not part of a module?i: 00038, Lenard Lindstrom |
| Next by Thread: | Re[2]: How do I subtype python internal type that is not part of a module?: 00038, Lenard Lindstrom |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |