[Tutor] pointers

2006-01-11 Thread Burge Kurt
Hi,

I f I want to translate C code to Python and have a function like 

void get_args(int argc, char* argv[], Argument* args)
{

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] pointers

2006-01-11 Thread Burge Kurt
Sorry for the previous message I did it by mistake..the function was like below:

void get_args(int argc, char* argv[], Argument* args){ //check the amount of the arguments if(argc%2 == 0)
{ printf(Error, incorrect argument numbers : %d\n,argc);  print_help(); exit(1); } 
.
.
}

My first question about the pointers here; how can I convert them to Python? 

And second and may be a little stupid; do I need to define argc how can I get arguments in python ?

Thanks in advance,

Burge
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] div_t

2006-01-11 Thread Burge Kurt
Hi,

What is the usage of div_t in python?

I have some unsigned integer variables and want to use ;

div_tdiv_T;
div_t div_N;
div_t div_B;
.
.
..

Best for all,

Burge
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] calloc

2006-01-11 Thread Burge Kurt
Hi again (:

How can I use calloc in python ? Before computing and processing my data I want to know how many bytes are available?

Thanks in advance and best wishes,

Burge
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Editors

2005-12-14 Thread Burge Kurt
Hi;

I am a newbie and want to find a suitable editor for myself.. I will
not need a UI implementation just thinking to make file transportation
over IP.

If you will guide; I would be thankful :)

Burge
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Editors

2005-12-14 Thread Burge Kurt
Btw I am using Suse Linux 9.0 ..

Today I have tried to install drPython but could not manage ; because
I could not install wxPython that was due to gtk problem (i was seeing
pkg-config but it could not) ... Is there something easy for me ??
which does not require wxPython (consequently glib gtk atk pango
pfg-config ...etc) and will not take my hours to buildinstall :)

Burge

On 12/14/05, Burge Kurt [EMAIL PROTECTED] wrote:
 Hi;

 I am a newbie and want to find a suitable editor for myself.. I will
 not need a UI implementation just thinking to make file transportation
 over IP.

 If you will guide; I would be thankful :)

 Burge

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Editors

2005-12-14 Thread Burge Kurt
Thaks to all..

I have started with Scite and may be change later; let me see first
what can I do with python?

Burge



On 12/14/05, Kent Johnson [EMAIL PROTECTED] wrote:
 Burge Kurt wrote:
  Btw I am using Suse Linux 9.0 ..
 
  Today I have tried to install drPython but could not manage ; because
  I could not install wxPython that was due to gtk problem (i was seeing
  pkg-config but it could not) ... Is there something easy for me ??
  which does not require wxPython (consequently glib gtk atk pango
  pfg-config ...etc) and will not take my hours to buildinstall :)

 If you have an editor you are already comfortable with then just use that,
 at least to get
 started. If you have Tk on your computer you could try IDLE which comes with
 Python.
 Otherwise look here for a long list of possibilities:
 http://wiki.python.org/moin/PythonEditors

 Kent

 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor