|
How to efficiently construct an extension instance from Pyrex?: msg#00035python.pyrex
I'm making an extension type with Pyrex and having a good time! My __init__ method offers a lot of flexibility with several argument variations for the Python user. My problem is that I also need to construct objects from within my Pyrex methods. I'd like these constructions with VERY simple arguments to be efficient. Can I have a constructor that I use from Pyrex and a different one I use from Python? I've experimented a bit with PyInstance_NewRaw but with no success. It seems to me that calling PyInstance_NewRaw(self.__class__,0) ought to create a new instance of the same class as the current object but it fails with "bad argument to internal function call". Other suggestions for efficiently creating extension objects from within Pyrex? Thanks gb |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | How do I subtype python internal type that is not part of a module?: 00035, Lenard Lindstrom |
|---|---|
| Next by Date: | Re: How to efficiently construct an extension instance from Pyrex?: 00035, Greg Ewing |
| Previous by Thread: | How do I subtype python internal type that is not part of a module?i: 00035, Lenard Lindstrom |
| Next by Thread: | Re: How to efficiently construct an extension instance from Pyrex?: 00035, Greg Ewing |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |