Re: C API -- Two questions

2007-07-27 Thread beginner
On Jul 27, 1:23 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Fri, 27 Jul 2007 00:34:22 +, beginner wrote: > > 2) How can I make the arguments less picky without writing a lot of > > type conversion code? My function really needs a tuple as its > > argument. For example, f( (1,2,

Re: C API -- Two questions

2007-07-26 Thread Marc 'BlackJack' Rintsch
On Fri, 27 Jul 2007 00:34:22 +, beginner wrote: > 2) How can I make the arguments less picky without writing a lot of > type conversion code? My function really needs a tuple as its > argument. For example, f( (1,2,3) ) would work. However, in order to > make it easy to use, I am thinking that

C API -- Two questions

2007-07-26 Thread beginner
Hi Everyone, I am writing a C extension and encountered two problems. 1) How can I include a description of the arguments? I can include a description string. No problem. But whenever I say help(my_func) it shows the arguments are "... ". However, if a function is defined in python, I will defini