Re: Python Data Analysis Recommendations

2016-01-01 Thread Ravi Narasimhan
that beginners and casual users would need. There is usually a package that will do some job but one first has to find it. A lot of power can also be located deep within a hierarchy of dots: package.something.subsomething.subsubsomething ... Some documentation sets are very complete, others aren't. I often have th

Re: python program without stackless.run()

2015-06-18 Thread ravi
On Friday, June 19, 2015 at 1:41:36 AM UTC+5:30, Ian wrote: > On Thu, Jun 18, 2015 at 1:47 PM, ravi wrote: > > I could not understand how the below program executes function "fun" > > without calling stackless.run() in the program? Here "fun" runs as a >

how to dump tasklets status in python

2015-06-18 Thread ravi
hi, I have a complex python program running 100 tasklets simultaneously. I want to take dump of all the running tasklets including their current status and back trace at the time of exception. Can any one let me know how can this be done ? Thanks, ravi -- https://mail.python.org/mailman

python program without stackless.run()

2015-06-18 Thread ravi
uot;hi" , v if __name__ == "__main__": obj = A("sh") obj(6) ----- output: -- hi 6 thanks, ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: help in understanding the stackless code

2015-06-18 Thread ravi
at 5:45:08 PM UTC+5:30, MRAB wrote: > On 2015-06-18 08:41, ravi wrote: > > hi, > > I am new to python and need to know why the calling of switch(1) invokes > > the function "listen" twice in the below program? > > > > > > > > import stackles

help in understanding the stackless code

2015-06-18 Thread ravi
hi, I am new to python and need to know why the calling of switch(1) invokes the function "listen" twice in the below program? import stackless class EventHandler: def __init__(self,*outputs): if outputs==None: self.outputs=[] else: self.outputs=list

Concatenate string list to number list to form title - Logic needed.

2013-12-16 Thread Ravi Prabakaran
;End'] a = [[1,2,3,4], [5,6,7,8]] Expected Result : ( list of strings ) ['Start - 3 , End - 4', 'Start - 7 , End - 8'] Note : First 2 values from each list should be ignored. Could anyone please guide me with best solution without loops ? Thanks Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: Formal-ity and the Church-Turing thesis

2013-10-08 Thread Ravi Sahni
Mark Lawrence question. -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: Formal-ity and the Church-Turing thesis

2013-10-08 Thread Ravi Sahni
On Tue, Oct 8, 2013 at 1:20 PM, Steven D'Aprano wrote: > On Tue, 08 Oct 2013 10:46:50 +0530, Ravi Sahni wrote: > >> On Tue, Oct 8, 2013 at 8:47 AM, rusi wrote: >>> I can only say how ironic it sounds to someone who is familiar with the >>> history of o

Re: Formal-ity and the Church-Turing thesis

2013-10-07 Thread Ravi Sahni
ry confusion Sir!!! > > And so when you understand that TMs are just a kind of mathematical rewrite > system (as is λ calculus as are context free grammars as is school arithmetic > etc etc) you will not find the equivalence so surprising -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: Goodbye: was JUST GOT HACKED

2013-10-07 Thread Ravi Sahni
On Mon, Oct 7, 2013 at 5:56 PM, Walter Hurry wrote: > On Thu, 03 Oct 2013 11:35:00 +, Steven D'Aprano wrote: > >> On Thu, 03 Oct 2013 09:21:08 +0530, Ravi Sahni wrote: >> >>> On Thu, Oct 3, 2013 at 2:43 AM, Walter Hurry >>> wrote: >>>> Din

Re: how to read list from file

2013-10-06 Thread Ravi Sahni
val method? JSON method? Some third method? [I am newbie so interested. Please to excuse!!] -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: how to read list from file

2013-10-06 Thread Ravi Sahni
t;> >> >> >> -tkc > > that didn't work. printing it looks like the list because it's the input, > but try printing len(repr(ast.literal_eval(s))). It should give 3, but it > gives 72 (number of chars). Please to remove the repr and try again? Thank you! -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: howto check programs and C libraries

2013-10-04 Thread Ravi Sahni
odule, > and I think it could do the job (when properly subclassed). > Do you have a better idea? I have ruby on rails friends who speak of capistrano and puppet. google puppet python gives me : http://stackful-dev.com/cuisine-the-lightweight-chefpuppet-alternative If you find it good I shall

Re: Tail recursion to while iteration in 2 easy steps

2013-10-03 Thread Ravi Sahni
urn add; if > 0 jump to internal return address > > 4b An example like quicksort in which one call is a tail call can be > optimized with your optimization and the other, inner one with 4a above I am interested in studying more this 'whole spectrum of optimizations' An

Re: Goodbye: was JUST GOT HACKED

2013-10-03 Thread Ravi Sahni
On Thu, Oct 3, 2013 at 5:05 PM, Steven D'Aprano wrote: > On Thu, 03 Oct 2013 09:21:08 +0530, Ravi Sahni wrote: > >> On Thu, Oct 3, 2013 at 2:43 AM, Walter Hurry >> wrote: >>> Ding ding! Nikos is simply trolling. It's easy enough to killfile him >>> b

Re: Goodbye: was JUST GOT HACKED

2013-10-02 Thread Ravi Sahni
, but a mess python -- looks cleaner and well-designed (and not for heavyweight phds like FP languages like haskell ) So I finally went with python Now given the mess out here I need to rethink anyway! -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: JUST GOT HACKED

2013-10-02 Thread Ravi Sahni
On Wed, Oct 2, 2013 at 10:14 PM, wrote: > On 10/02/2013 01:02 AM, Ravi Sahni wrote: >> On Wed, Oct 2, 2013 at 12:19 PM, Ben Finney >> wrote: >>> Antoon Pardon writes: >>> >>>> Op 02-10-13 00:06, Ben Finney schreef: >>>> > T

Re: Can arbitrary code run in a server if someone's know just the MySQL password?

2013-10-02 Thread Ravi Sahni
needs of needy persons. I am also needy. Please be kind to me as well: There is poverty and injustice in the world. Why?? I NEED to know People suffer and die. How come? I MUST know And there are morons... Why?? PLEASE TELL -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: Lowest Value in List

2013-10-02 Thread Ravi Sahni
I > would be helpful enough. > > Thanking in Advance, > Subhabrata. > > > -- > https://mail.python.org/mailman/listinfo/python-list [Disclaimer: Beginner myself] The heapq module has merge Since the lists are already sorted what's wrong with just this? list(merge(list1, list2, list3))[:10] -- - Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: JUST GOT HACKED

2013-10-02 Thread Ravi Sahni
On Wed, Oct 2, 2013 at 1:21 PM, Antoon Pardon wrote: > Op 02-10-13 09:02, Ravi Sahni schreef: >> On Wed, Oct 2, 2013 at 12:19 PM, Ben Finney >> wrote: >>> Antoon Pardon writes: >>> >>>> Op 02-10-13 00:06, Ben Finney schreef: >>>>> T

Re: JUST GOT HACKED

2013-10-02 Thread Ravi Sahni
On Wed, Oct 2, 2013 at 12:54 PM, Ben Finney wrote: > > Ravi Sahni writes: > > > So Ben,Antoon you are saying that [demands for off-topic help with > > demonstrated history of unwillingness to learn] is a minor problem […] > > Whereas [baiting and enabling that beh

Re: JUST GOT HACKED

2013-10-02 Thread Ravi Sahni
But still they keep answering and answering!! Makes no sense [Sorry -- old programmer (C,C++ etc) -- new to python. If there is some secret to this list's culture that I missed will be pleased to be educated! ] -- - Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: JUST GOT HACKED

2013-10-01 Thread Ravi Sahni
On Tuesday, October 1, 2013 7:54:35 PM UTC+5:30, Daniel Stojanov wrote: > 2) I just signed up the this mailing list. To the regulars, is this what > normally happens on this list? > > 3) I'm a bit late to the party. Is Nikos a real sysadmin or is this some > horrible inside joke I don't get? Th

***************************Hai***************************

2011-04-06 Thread Ravi Prasath
http://www.workfrominter.com/ http://www.workfrominter.com/ http://girlsdailysex.blogspot.com/ http://girlsdailysex.blogspot.com/ Just See What Is this Website Are Msg For You -- http://mail.python.org/mailman/listinfo/python-list

Cluto like library for Python

2011-03-06 Thread Ravi
I like Cluto as a data clustering software a lot. But its library binding is available only in C. Is there any python library which is similar to Cluto? -- http://mail.python.org/mailman/listinfo/python-list

Re: Extending dict (dict's) to allow for multidimensional dictionary

2011-03-06 Thread Ravi
That's a very nice suggestion. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Extending dict (dict's) to allow for multidimensional dictionary

2011-03-05 Thread Ravi
I found a solution here: http://parand.com/say/index.php/2007/07/13/simple-multi-dimensional-dictionaries-in-python/ Please tell how good is it? -- http://mail.python.org/mailman/listinfo/python-list

Extending dict (dict's) to allow for multidimensional dictionary

2011-03-05 Thread Ravi
I can extend dictionary to allow for the my own special look-up tables. However now I want to be able to define multidimensional dictionary which supports look-up like this: d[1]['abc'][40] = 'dummy' and if d[1] and d[1][abc] raise KeyError just create them. for d[1] I can override __getitem__

Earn $2 Per Click For Free Join Make Money

2011-01-29 Thread Ravi chandran
www.workfrominter.com -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Ravi
I understand it now. Thanks for the responses. -- http://mail.python.org/mailman/listinfo/python-list

sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Ravi
try this: import sqlite3 con = sqlite3.connect("any string here") and there is no error reported. You will get an error you do some operations on the database which is confusing. I think sqlite3 should change this behavior. -- http://mail.python.org/mailman/listinfo/python-list

Re: Popen Question

2010-11-04 Thread Ravi
On Nov 4, 7:06 pm, moogyd wrote: > Hi, > I usually use csh for my simulation control scripts, but these scripts > are becoming more complex, so I plan to use python for the next > project. > To this end, I am looking at subprocess.Popen() to actually call the > simulations, and have a very basic q

SQLite is quite SQL compliant

2010-10-02 Thread Ravi
The documentation of the sqlite module at http://docs.python.org/library/sqlite3.html says: "...allows accessing the database using a nonstandard variant of the SQL..." But if you see SQLite website they clearly say at http://sqlite.org/omitted.html that only very few of the SQL is not implement

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK G

2010-03-21 Thread Ravi Kumar
On Sat, Mar 20, 2010 at 7:27 PM, Brian J Mingus wrote: > Moderating this stuff requires moderating all messages. It would take a > team of volunteers. > You are right... Form the team of volunteers. More people in it, better it would be - since no one would have to be dedicated. -

GUI app on Windows for WMI digging

2010-02-22 Thread Ravi Kumar
binary package). -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

Re: how to generate random numbers that satisfy certain distribution

2010-01-23 Thread Ravi
On Jan 23, 10:37 pm, thinke365 wrote: > such as uniform distribution, Normal distribution or poisson distribution. > is there any package that can be used to generate such random numbers. > > -- > View this message in > context:http://old.nabble.com/how-to-generate-random-numbers-that-satisfy-cer

Choose: class with static methods or module with functions

2009-04-16 Thread Ravi
I have to create a few helper/utility application-wide functions. There are two options: 1. Create a Utility class and all functions as static method of that class. 2. Create a module, utility.py and member functions. Which is a better approach. My personal view is that I should create a module

Re: Imports in python are static, any solution?

2009-04-16 Thread Ravi
iplyXbyA(32) > > > Keeps your vars in a safer easier to handle, debug, and change kinda way > > Good luck > > > AJ > > > -Original Message- > > From: python-list-bounces+aj=xernova@python.org > > [mailto:python-list-bounces+aj=xernova@pytho

Imports in python are static, any solution?

2009-04-13 Thread Ravi
foo.py : i = 10 def fi(): global i i = 99 bar.py : import foo from foo import i print i, foo.i foo.fi() print i, foo.i This is problematic. Well I want i to change with foo.fi() . -- http://mail.python.org/mailman/listinfo/python-list

Re: "Pythoner",Wish me luck!

2009-04-03 Thread Ravi Kumar
f you are learning the python at any level, go for IDLE. What you do, you write every step of statements and that is executed as soon as you finish the block. So you have chance to understand the things step by step. Just like learning by debugging.. Try it self, no one's review can

Plugin based feature adding to web-application

2009-03-13 Thread Ravi Kumar
I need an architecture in a project using Django and Python + MySQL, so that when I put a python script in specified directory, that should be loaded and its methods/functions can be used. As far as i have thought on this, I am going to scan that particular directory, list out the files, import th

Make a python property with the same name as the class member name

2009-02-27 Thread Ravi
Is it possible in python to create a property with the same name as the member variable name of the class. e.g. Class X: ... self.i = 10 # marker ... property(fget = get_i, fset = set_i) Please tell me how I can do so. Because if I do so, for the statement at marker I get stack ov

Re: Forwarding keyword arguments from one function to another

2009-02-25 Thread Ravi
Thnak you all. > In the future, explain "didn't work". > Wrong output? give actual (copy and paste) and expected. > Error message? give traceback (copy and paste). I will be careful. -- http://mail.python.org/mailman/listinfo/python-list

Re: Forwarding keyword arguments from one function to another

2009-02-22 Thread Ravi
I am sorry about the typo mistake, well the code snippets are as: # Non Working: class X(object): def f(self, **kwds): print kwds try: print kwds['i'] * 2 except KeyError: print "unknown keyword argument" self.g("string", kwds) def g(self, s, **kwds): print s print

Forwarding keyword arguments from one function to another

2009-02-22 Thread Ravi
The following code didn't work: class X(object): def f(self, **kwds): print kwds try: print kwds['i'] * 2 except KeyError: print "unknown keyword argument" self.g("string", **kwd

Re: Byte oriented data types in python

2009-01-25 Thread Ravi
On Jan 25, 12:52 am, "Martin v. Löwis" wrote: > > packet_type (1 byte unsigned) || packet_length (1 byte unsigned) || > > packet_data(variable) > > > How to construct these using python data types, as int and float have > > no limits and their sizes are not well defined. > > In Python 2.x, use the

Re: Byte oriented data types in python

2009-01-25 Thread Ravi
> Take a look at the struct and ctypes modules. struct is really not the choice. it returns an expanded string of the data and this means larger latency over bluetooth. ctypes is basically for the interface with libraries written in C (this I read from the python docs) -- http://mail.python.org

Byte oriented data types in python

2009-01-24 Thread Ravi
I have following packet format which I have to send over Bluetooth. packet_type (1 byte unsigned) || packet_length (1 byte unsigned) || packet_data(variable) How to construct these using python data types, as int and float have no limits and their sizes are not well defined. -- http://mail.python

Re: Difference between Python 2.2.2 and Python 2.5

2009-01-19 Thread Ravi
On Jan 18, 8:44 pm, Steven D'Aprano wrote: > On Sun, 18 Jan 2009 07:30:52 -0800, Ravi wrote: > > I am developing for PyS60 1.4.4 which supports Python 2.2.2 while what I > > know is Python 2.5  . > > > Can you please tell me differences between the two so th

Difference between Python 2.2.2 and Python 2.5

2009-01-18 Thread Ravi
I am developing for PyS60 1.4.4 which supports Python 2.2.2 while what I know is Python 2.5 . Can you please tell me differences between the two so that I can save myself from incompatible code. -- http://mail.python.org/mailman/listinfo/python-list

MRO inconsistency: why?

2008-10-08 Thread Ravi
Why the following code gives inconsistent method resolution order error: class X(object): x = 4 def f(self): print 'f in X' print dir(X) X.g(self) def g(self): print 'g in X' class Y(object, X): def g(

Re: Getting the name of a variable which was used as a function parameter.

2008-07-21 Thread Ravi Kotecha
Of course I wouldn't, it is a total hack, mostly useless but fun. I tried to do it after someone in #python efnet said it was impossible! On Jul 21, 9:56 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Mon, 21 Jul 2008 09:01:10 -0700, Ravi Kotecha wrote

Getting the name of a variable which was used as a function parameter.

2008-07-21 Thread Ravi Kotecha
... >>> hello = 123 >>> a(hello) hello ## pretty cool. It's totally useless but I wanted to do it for logging purposes. It will still return weird results if you have two labels pointing to the same object but I'm not sure how to get around that, any ideas? Regar

Re: Looking for Advanced Python Tutorials

2008-04-04 Thread Ravi Kotecha
very clever uses of Python there. I like it a lot for when I haven't got anything better to code: http://projecteuler.net/ - Ravi -- http://mail.python.org/mailman/listinfo/python-list

libgmail through proxy

2008-04-01 Thread Ravi Kumar
proxy'] to the same settings which I use, but I could not succeed. The login() method reports error about no addreess associated with it. Please help me solve it. I used the proxy settings, but it didnt work. so any workaround, and what sort of thing I am missing. -- -=Ravi=- -- http://mail.

Weight Problem

2008-03-15 Thread Ravi Kumar
G etc, not like 2.3KG) """ I thought it would really be good to solve it by python, and right now on the mid-way solving using very dirty approach. But I feel, using SETs with python in such would solve it better. Can anyone come with good solution, and maybe solution showing usage

CVS access with Python

2008-02-07 Thread Ravi Kumar
27; copies of a single project for 'n' users, and assume all developers are checking out all sources. God knows. So is there any good implementation for such situation. -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

how to protect directory traversal in mod_python based custom apps

2007-12-24 Thread Ravi Kumar
person calls the pages providing the right path, they are able to execute files in the framework, though since those configs and other files doesn't return anything, tere is no result. -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

Re: .NET and Python Integration Problem and PDF Library (Need Help and Suggestions)

2007-12-18 Thread Ravi Kumar
ary.net/pyPdf/ Noted for my reference. Thanks :) > > -Which XML Library is pure python based. > > > > ElementTree So ElementTree solved one part. thanks friend. -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

Re: .NET and Python Integration Problem and PDF Library (Need Help and Suggestions)

2007-12-18 Thread Ravi Kumar
thon/Lib', '/usr/lib/python2.4', '/usr/lib/python2.4/site-packages'] >>> so it uses Python 2.4 libs. I am fearing to mix the 2.4 and 2.5 libs. I need to load CPython 2.5 libs by adding it in site.py file of ironpython. Maybe I should go experimenting and let you people know about it. -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

Re: .NET and Python Integration Problem and PDF Library (Need Help and Suggestions)

2007-12-18 Thread Ravi Kumar
chain libraries that include other deep dependencies too). A pure python PDF library would be good, but which one. -Which XML Library is pure python based. More questions will follow up :) And I hope, people will reply me. -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

.NET and Python Integration Problem and PDF Library (Need Help and Suggestions)

2007-12-18 Thread Ravi Kumar
me in your mind. Things on high priorities right now are: -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to protect my new commercial software.

2007-12-10 Thread Ravi Kumar
bytecode and there you go,. Now, since your apps loader is built in C, you can apply available methods for C/C++/ Remember, since python is readable easily, you fear so. But no language exists which humans can't read. At worst level, they will have to go for Assembly Level decompiling, but thats possible too -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Guide me on Apache Virtual server+mod_python

2007-12-10 Thread Ravi Kumar
error discriptions right now from my side. I would like to work a little more to get to some point and then let you all know what exactly the problem is. Again, thanks a lot for the help. On Dec 5, 2007 7:31 PM, Ravi Kumar <[EMAIL PROTECTED]> wrote: > HI, > I am sorry for OT here. Bu

[OT] Guide me on Apache Virtual server+mod_python

2007-12-05 Thread Ravi Kumar
you please guide me a little, on how to do it. I just need some pointers and I will start finding them on Google. -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

Re: Need to call functions/class_methods etc using string ref :How

2007-12-03 Thread Ravi Kumar
But most of the time, I found that Python provides a more > appropriate solution. > > > In one project I'm using exec to > > parse user provided function bodies from a web interface into real > > python functions (the function signatures are auto generated). > > A problem I've never had to solve so far, so you're the expert here - > but what about compiling the source with compile, then instanciating a > function object from it ? > > (snip) > -- > http://mail.python.org/mailman/listinfo/python-list > -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

Re: any Templating system help

2007-11-30 Thread Ravi Kumar
<[EMAIL PROTECTED]> wrote: > On Thu, Nov 29, 2007 at 06:48:10PM +0530, Ravi Kumar wrote: > > Hi, > > I am stuck a little. I am working on a demo site to propose for the my > > company. Using mod_python and several python technologies. But the > website > > is si

any Templating system help

2007-11-29 Thread Ravi Kumar
call the suitable defs from files and apply the wrapper on it and return to main caller) setting the values Please suggest some ideas. -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

Need to call functions/class_methods etc using string ref :How

2007-11-26 Thread Ravi Kumar
etattr(), but that confused me a little and didnt worked for me. I am missing something I know, so please ENLIGHTEN Me :) Thanks in advance EVen you read this mail :P -- -=Ravi=- -- http://mail.python.org/mailman/listinfo/python-list

Re: Interop between C# and Python

2007-04-28 Thread Ravi Teja
nvenient because working with typed systems is more convenient in dynamic languages than it is to work with untyped systems in typed languages. Of course, if the project is really small, none of this really matters. Pick your poison. Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: Interop between C# and Python

2007-04-27 Thread Ravi Teja
; > thx, >Uriel Katz Use soaplib instead of ZSI. It has better WSDL support which makes it easier to create client stubs from other languages. http://trac.optio.webfactional.com/ Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: Helpbook and CHM

2007-04-19 Thread Ravi Teja
> > > > Teja wrote: > > > > > how to generate CHM files in Boa(Python)??? > > > > >http://www.rutherfurd.net/software/rst2chm/index.html > > > > > TJG > > > > Can't I do it in Boa constructor ??? I have seen an option in Boa to > > > create a new helpbook and compile it to CHm and help files, B

Re: Helpbook and CHM

2007-04-19 Thread Ravi Teja
On Apr 19, 3:58 am, Teja <[EMAIL PROTECTED]> wrote: > On Apr 19, 3:48 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > > > Teja wrote: > > > how to generate CHM files in Boa(Python)??? > > >http://www.rutherfurd.net/software/rst2chm/index.html > > > TJG > > Can't I do it in Boa constructor ??? I hav

Re: ZSI, SOAP and .NET web services - problem

2007-03-26 Thread Ravi Teja
, although I mainly used it as a server than a client. Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: implementing SFTP using Python

2007-03-08 Thread Ravi Terala
Kiran, You should look into Twisted Python and their Twisted Python Conch package. You might not need to reinvent the wheel. http://twistedmatrix.com/trac/wiki/TwistedConch Ravi kadarla kiran kumar wrote: > Hi Everybody, > > I have to implement SFTP conection from client to the ser

Re: Help me with this!!!

2007-02-01 Thread Ravi Teja
ile in notepad (or other text editor)? You do not use regex to search binary files. Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hi, I'm new to python

2007-01-27 Thread Ravi Teja
esources. If you have very basic questions, IRC (freenode has a Python channel), is a better option. When you post, make the question as specific as possible. Sometimes typing a good question itself gives you an answer. Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: While loop with "or"? Please help!

2007-01-25 Thread Ravi Teja
> while usrinp != "y" or "Y" or "N" or "n": <<<<PROBLEM Correct way: while usrinp != "y" or usrinp != "Y" or usrinp != "N" or usrinp != "n": There has to be a boolean evaluation on both

Re: How to convert a string into an integer

2007-01-22 Thread Ravi Teja
licitly convert yourself. In this case with int_value = int(string_value) Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: confused on python rpc with apache, is it possible?

2007-01-19 Thread Ravi Teja
there but I thought that if some > thing needs to be done in php in the future then apache better be > there but as I said that is no need if pythone can do it on a stand > alone basis. Use mod_python with some xmlrpc handler. There is more than one around. Google for them. That way

Re: Making a simple script standalone

2007-01-18 Thread Ravi Teja
, check out ShedSkin. Since you mentioned that you were using very few modules (ShedSkin supports os, stat, string, time), it might just work. ShedSkin translates your Python code to fast C++ code that can be compiled to a tight app. http://sourceforge.net/projects/shedskin/ Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: I need to consume a .NET web service in a Python client

2007-01-12 Thread Ravi Teja
e to the Python world so please be bear with my novice > queries. > > thanks in advance, > Mohit Start Here http://www.diveintopython.org/soap_web_services/index.html Example Client http://www.diveintopython.org/soap_web_services/first_steps.html Ravi Teja -- http://mail.python.org/mailman/listinfo/python-list

Re: How to write temporary data to file?

2007-01-08 Thread Ravi Teja
Thomas Ploch wrote: > Ravi Teja schrieb: > > Thomas Ploch wrote: > >> Hi folks, > >> > >> I have a data structure that looks like this: > >> > >> d = { > >>'url1': { > >>'emails':

Re: How to write temporary data to file?

2007-01-08 Thread Ravi Teja
ard library modules that can persist data. But in this case, I would recommend ZODB/Durus. (Your code example scares me. I hope you have benevolent purposes for that application.) Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: private variables

2007-01-08 Thread Ravi Teja
by convention. See Python docs for a detailed explanation. Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: Network failure when using urllib2

2007-01-08 Thread Ravi Teja
ting safeguards against DOS attacks from their network with normal users in mind. Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: Network failure when using urllib2

2007-01-08 Thread Ravi Teja
vices/review.html especially 11.3.3. Last-Modified/If-Modified-Since in the next page Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: program deployment

2007-01-05 Thread Ravi Teja
king kikapu wrote: > hi to all folks here, > > i am learning Python, just finished a book and i am starting to write > programs. > I just want to ask, is the "correct" way to deploy my programs to other > computers, the .pyc files ?? > > I now that with the "-m compileall ." switch can compile a .

Re: How do I add users using Python scripts on a Linux machine

2007-01-02 Thread Ravi Teja
> > > > How about invoking scripts with SUID root set? > > Linux seems to ignore SUID bit on scripts: Yes. My bad. The work around was to use native launchers. I don't remember the details. Perhaps with the interpreter embedded to launch it in-process and to hard code the script paths (or at least

Re: How do I add users using Python scripts on a Linux machine

2007-01-02 Thread Ravi Teja
Ivan Voras wrote: > Ramdas wrote: > > Well, > > > > I need to add users from a web interface for a web server, which runs > > only Python. I need to add users, set quotas and in future even look at > > managing ip tables to limit bandwidth. > > > > I know os.system(), but this has to be done throu

Re: C app and Python

2006-12-31 Thread Ravi Teja
but a C > application. > or I need to embed Python in my C application. > > Thanks, > Vertilka A bit of both :-) http://www.python.org/doc/ext/extending-with-embedding.html Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: keypressed() function

2006-12-28 Thread Ravi Teja
[EMAIL PROTECTED] wrote: > I need a function (blocking or non-blocking) that tells me if a key has > been pressed (even before it has been released etc.). Also, I would of > course like to know _which_ key has been pressed. > > I know that this probably does not exist in the Python library already

Re: Reverse of SendKeys??

2006-12-28 Thread Ravi Teja
Scripter47 wrote: > Hey! > > I know there is a module named SendKeys. > SendKeys module it can type strings as you where typing it, on the keyboard. > But is there a module that does the reverse. A module that gets > _anything_ what the keyboard writes. > For example. If i type "hey" on my keyboar

Re: Scaling pictures

2006-12-28 Thread Ravi Teja
Kajsa Anka wrote: > I would like some advice, I'm going to build a small app that will, among > other things, scale images so that they can be published on a web site. I've > never done any image processing in python before so I would like to ask what > is the best way of doing this, I will not do

Re: Xah's Edu Corner: Introduction to 3D Graphics Programing

2006-12-27 Thread Ravi Teja
Xah Lee wrote: > Regarding VisualPython... i saw a demo in 2002 by a professor > friend. I think it is good. Though, why is its licensing not GPL or > otherwise Open Source? That's kinda odd since Pyhton is. You are confusing VPython with Activestate's Visual Python IDE plugin for Visual Studio.

Re: merits of Lisp vs Python

2006-12-17 Thread Ravi Teja
Jean-Paul Calderone wrote: > On 11 Dec 2006 03:01:32 -0800, Ravi Teja <[EMAIL PROTECTED]> wrote: > >Timofei Shatrov wrote: > > > > [snip] > > > >Of course, doctest is hardly the ultimate testing solution. But it does > >an admirable job for many

Re: merits of Lisp vs Python

2006-12-13 Thread Ravi Teja
Robert Uhl wrote: > "Ravi Teja" <[EMAIL PROTECTED]> writes: > > > Mark Tarver wrote: > >> > >> seems to show that Python is a cut down (no macros) version of Lisp > >> with a worse performance. > > > > By that standard, every ot

Re: merits of Lisp vs Python

2006-12-11 Thread Ravi Teja
Mark Tarver wrote: > Paul Rubin wrote: > > "Mark Tarver" <[EMAIL PROTECTED]> writes: > > > How do you compare Python to Lisp? What specific advantages do you > > > think that one has over the other? > > > > > > Thanks; a quick re

Re: merits of Lisp vs Python

2006-12-11 Thread Ravi Teja
Timofei Shatrov wrote: > But, you have to admit that it looks horrible (at least at the first glance). > If > there's some programming style that I absolutely can't stand, it would be the > one where programmer writes a huge block of commentary describing what a > function does, followed by one-l

  1   2   3   >