Re: Running another python interpreter

2007-10-18 Thread Sushant
Does gateway.py has the python interpreter in the top (i.e., #!/usr/local/bin/python) -Sushant. On Thursday 18 October 2007 2:13 pm, Simon Pickles wrote: > Well, I tried: > > os.spawnv(os.P_NOWAIT, "gateway.py", ()) > > and got: > > OSError: [Errno 8] Exec

Re: dynamic invoke

2007-10-19 Thread Sushant
:) -Sushant. On Friday 19 October 2007 11:05 am, Diez B. Roggisch wrote: > Sushant wrote: > > Python will not allow string to be used a function pointer. It is type > > unsafe. Best way is to convert string into function pointers manually. > > > > if dynamicMethod == '

Re: dynamic invoke

2007-10-19 Thread Sushant
Python will not allow string to be used a function pointer. It is type unsafe. Best way is to convert string into function pointers manually. if dynamicMethod == 'bar': method = oFoo->bar else: method = oFoo->default method() On Friday 19 October 2007 7:56 am, Diez B. Roggisch wrote: > N

Use of Python in .NET

2006-06-07 Thread sushant . sirsikar
Hi, I am developing a code which has MVC (Model - View - Controler) architecture.My view is in .NET. And my controller is in Python.So can i call Python script from .NET? If yes, Can anybody tell me method or related documentation? Thanks in Advamce -- http://mail.python.org/mailman/list

PYTHONPATH

2006-04-20 Thread sushant . sirsikar
Hi, I am using Linux env.I set the PYTHONPATH using import sys sys.path.append() But we i close python and start again i is not showing my new entry in PYTHONPATH. Can anyone help me to make my path persistant? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Property In Python

2006-04-21 Thread sushant . sirsikar
Hi, I want to know how we can write Properties in Pyhton.Any one knows good doc for this one? Thanks -- http://mail.python.org/mailman/listinfo/python-list

How to debug python code?

2006-03-30 Thread sushant . sirsikar
hi, I am new to Python programming.I am not getting exactly pdb.Can anyone tell me effective way to debug python code? Please give me any example. Looking for responce. Thank You. Sushant -- http://mail.python.org/mailman/listinfo/python-list

Best IDE for Python?

2006-03-30 Thread sushant . sirsikar
hi, I want to know which is the best IDE for python.Please if possible mention the features of the IDE. Thank You. Sushant -- http://mail.python.org/mailman/listinfo/python-list

Get the input from user

2006-04-03 Thread sushant . sirsikar
entry = raw_input("Enter the address") addressbook[name]=entry name = raw_input("Enter Name (Leave blank to Finish)") return name thanks Sushant -- http://mail.python.org/mailman/listinfo/python-list

Re: using range() in for loops

2006-04-04 Thread sushant . sirsikar
hi John, Python doesn't provide for loop like C / C++ but using Range() or Xrange() you can achive all the functionalities of the C for loop.If you wants distributed for loop You can use Xrange. John Salerno wrote: > I'm reading Text Processing in Python right now and I came across a > comment

Re: Strange problem when running python code

2006-04-04 Thread sushant . sirsikar
Are U Using any IDE for Python? If yes then check out the setting and make sure that u are running same code. -- http://mail.python.org/mailman/listinfo/python-list

Extending Python

2006-04-04 Thread sushant . sirsikar
Hi All. We can extend the functionality of python using C,C++.I want to know what are the other lang that we can use to extend the functionality of Python? Bye -- http://mail.python.org/mailman/listinfo/python-list

``pickling'' and ``unpickling''

2006-04-05 Thread sushant . sirsikar
Hi, I am new in Python World.I want to know what is mean by ``pickling'' and ``unpickling'' ? And how can we used it?Please Give Me some links of Picking Examples. Thanks Sushant -- http://mail.python.org/mailman/listinfo/python-list

Re: good style guides for python-style documentation ?

2006-04-06 Thread sushant . sirsikar
Fredrik Lundh wrote: > (reposted from doc-sig, which seems to be mostly dead > these days). > > over at the pytut wiki, "carndt" asked: > > Are there any guidelines about conventions concerning > punctuation, text styles and language style (e.g. how > to address the reader)? > > any su