[Tutor] pointers

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Wed Jan 11 20:09:05 CET 2006



On Wed, 11 Jan 2006, Burge Kurt wrote:

> I f I want to translate C code to Python and have a function like
>
> void get_args(int argc, char* argv[], Argument* args)
> {


Hi Burge,

Also wanted to note that the Standard Library already contains an
argument-parsing library, so you may want to take advantage of it.  The
library is called 'optparse':

    http://python.org/doc/lib/module-optparse.html

It's something to keep in mind, just in case during your porting effort
you have the freedom to reuse the Standard Library.

Good luck!



More information about the Tutor mailing list