Re: Python C module questions

2005-09-01 Thread Thomas Heller
[EMAIL PROTECTED] writes: [...] > /* convert sequences to tuples if necessary */ > ra1 = PySequence_Fast(ra1, "ra1 must be iterable"); > if (ra1 == NULL) { > return NULL; > } > > dec1 = PySequence_Fast(dec1, "dec1 must be iterable"); > if (dec1 == NULL) { >

Re: Python C module questions

2005-09-01 Thread Robert Kern
jbrewer wrote: [I wrote:] >>You probably shouldn't post such large pieces of code to the list. > > OK. BTW, please attribute your quotes. [Still me:] >>You mean a docstring on the module object itself? > > Actually, I meant docstrings to the module and the functions, objects, > methods, whatev

Re: Python C module questions

2005-09-01 Thread jbrewer
>You probably shouldn't post such large pieces of code to the list. OK. >You mean a docstring on the module object itself? Actually, I meant docstrings to the module and the functions, objects, methods, whatever else in the module. My code was derived from the Python Cookbook, which left that p

Re: Python C module questions

2005-09-01 Thread Thomas Heller
Robert Kern <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> Hi, >> >> I'm rather new to Python, and I've just written my first Python C >> module. I was wondering if some more experience Pythonista would look >> over what I've written and given me some pointers (or find some bugs). >>

Re: Python C module questions

2005-09-01 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Hi, > > I'm rather new to Python, and I've just written my first Python C > module. I was wondering if some more experience Pythonista would look > over what I've written and given me some pointers (or find some bugs). > I had a few questions while writing this as well.