Re: How to calculate the CPU time consumption and memory consuption of any python program in Linux

2005-12-24 Thread Shahriar Shamil Uulu
Thank you, for your directions and advices. shahriar ... gene tani wrote: > MrJean1 wrote: > > For CPU time usage, see the standard time module > > > > > > > > specifically the time.clock() function. For memory usage see > > > >

How to calculate the CPU time consumption and memory consuption of any python program in Linux

2005-12-24 Thread Shahriar Shamil Uulu
Hi All, i want to calculate the cpu time consumption and memory consuption of any program written in python during runtime on Linux Fedora Core - 2, P4, RAM-512 MB. Actually i have written one database program in two ways, 1) Inprocedural way 2) in object oriented way. Now i want to check how effi

Re: How to call function which is in one program ...

2005-12-23 Thread Shahriar Shamil Uulu
Thank you Fredrik Lundh for your help ... it worked ... the problem was in saving of file first.py Fredrik Lundh wrote: > "Shahriar Shamil Uulu" wrote: > > > i got another questions. For example i have two programs in python > > like: first.py, second.py. > >

How to call function which is in one program ...

2005-12-20 Thread Shahriar Shamil Uulu
Dear All, i got another questions. For example i have two programs in python like: first.py, second.py. In first.py i have a function test() like: # first.py ... def test(name): print name so other functions = #second.py Question is how i can include first.py i

Re: How to create linked list automatically

2005-12-19 Thread Shahriar Shamil Uulu
way Dave Hansen wrote: > On Mon, 19 Dec 2005 20:51:39 + in comp.lang.python, Simon Brunning > <[EMAIL PROTECTED]> wrote: > > >I haven't the time (or inclination) to sort out all your problems > >here, but one thing jumps out at me: > > > >On 12/19/05,

How to create linked list automatically

2005-12-19 Thread Shahriar Shamil Uulu
Hi All, i have this program, = class Node: def __init__(self,name=None,next=None): self.name=name self.next=next def __str__(self): return str(self.name) w=[] for i in range(10): node=Node(i)