Re: How to convert a string into an integer

2007-01-22 Thread Ravi Teja
= 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
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 you can keep Apache for both Python and PHP. Ravi Teja. -- http://mail.python.org/mailman

Re: Making a simple script standalone

2007-01-18 Thread Ravi Teja
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
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: Network failure when using urllib2

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

Re: Network failure when using urllib2

2007-01-08 Thread Ravi Teja
with normal users in mind. Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: private variables

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

Re: How to write temporary data to file?

2007-01-08 Thread Ravi Teja
.) 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': ['a', 'b', 'c',...], 'matches': ['d', 'e', 'f',...] }, 'url2': {... } This dictionary will get

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 .py file

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 through a form

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 a

Re: C app and Python

2006-12-31 Thread Ravi Teja
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: 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: 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 keyboard. Will

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 as

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 cases where you don't need to setup elaborate tests. It's

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 other mainstream dynamically typed language for you is a cut-down version of Lisp

Re: merits of Lisp vs Python

2006-12-11 Thread Ravi Teja
Kaz Kylheku wrote: Paddy wrote: http://en.wikipedia.org/wiki/Doctest I pity the hoplelessly anti-intellectual douche-bag who inflicted this undergraduate misfeature upon the programming language. This must be some unofficial patch that still has a hope of being shot down in flames,

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-liner

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? http://google.com/search?q=python+lispbtnI=I'm+feeling+lucky Thanks; a quick read of your reference

Re: SOAP Server with WSDL?

2006-12-07 Thread Ravi Teja
are written in Python. Else, use CORBA or ICE with DMI. All of these are simple to use for simple remote object invocations although distributed computing in general does have a learning curve. Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to compile omniORBpy on Windows?

2006-12-04 Thread Ravi Teja
[EMAIL PROTECTED] wrote: How do I compile omniORBpy 3.0 on Windows? The readme.txt file seems to talk only about how to do this on Unix. Unfortenuately, I can not use the binary because I need to use Python 2.3.5. (and the binary requires that I use Python 2.4). I tried to copy the

Re: How to realize the interactive python in Eclipse?

2006-12-03 Thread Ravi Teja
purple wrote: I have installed the Eclipse and the plug-in Pydev. Also, I have add an python program in the external tools. When I run the python program in the external tools, i can type python command just like in the python shell.But when I finished running a python file, in the console, I

Re: How good is CORBA?

2006-11-27 Thread Ravi Teja
On Nov 21, 11:20 am, Sai Krishna M [EMAIL PROTECTED] wrote: there are certainly client/server interactions. But are they cross-language interactions? This is how I would choose to distribute code. Same machine, all in Python - organize in modules in Python path. Different machines, all in

Re: Python script and C++

2006-11-27 Thread Ravi Teja
Thuan Seah Tan wrote: Hi all, I am new to python and currently I am working on a traffic simulation which I plan to define the various agents using scripting. It's kind of like scripting for non-playable character in games. I am thinking of using python for this but I am concerned with

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Ravi Teja
Personally, I've never gotten jpype to work. Is it just me, or is it a troublesome install? Harry George PLM Engineering Architecture It works fine for me now. However, I do recall having an issue a while ago (most likely me, rather than JPype). --

Re: Programming Language that is Spreadsheet/Table Based

2006-11-05 Thread Ravi Teja
Omar wrote: I'm looking for a programming language or module that sorta looks and feels like MS Excel (I love and think in tables), yet has the power and open-endedness of python or javascript. I'm still pretty new to python. PyCells http://pycells.pdxcb.net/

Re: More Noob Questions

2006-10-19 Thread Ravi Teja
1) I'm also learning to program flash movies while I learn to do python. How can one implement flash movies into their python code? Depending on what implementing flash movies into Python code means. Python and Flash can be complementary. You can develop the UI in Flash and have it talk to

Re: Rapid desktop application development

2006-10-19 Thread Ravi Teja
Stephen Eilert wrote: Hi all, There has been much hype lately about web megaframeworks, like TurboGears, Django and Rails(Ruby side). Those are all fantastic frameworks, nicely integrated so that the user can focus on solving his problem, instead of doing all the scaffolding and framework

Re: ADO with Python

2006-10-16 Thread Ravi Teja
Ralf wrote: Is their anybody with xperience in using the both and can provide me with some xamples. Googling for python ado returns this simple tutorial http://www.markcarter.me.uk/computing/python/ado.html COM access in Python is straight forward with win32all. --

Re: newbie IronPython compiled scripts speed question

2006-09-24 Thread Ravi Teja
In most cases, carefully examine why you need native code at all. Since a good number of performance sensitive CPython modules are in fact written in C to begin with, the improvements may not always be significant. I don't know about your application but here are some general observations.

Re: Running Python script from C++ code(.NET)

2006-09-23 Thread Ravi Teja
A trivial question - I have a working Python script that I have to invoke from C++ code. No fancy stuff - just run the whole script with its parameters. No callbacks, no signalling - nada, just stupid,primitive, straightforward call. And while there is a lot of help on embedding, I could not

Re: Running Python script from C++ code(.NET)

2006-09-23 Thread Ravi Teja
A trivial question - I have a working Python script that I have to invoke from C++ code. No fancy stuff - just run the whole script with its parameters. No callbacks, no signalling - nada, just stupid,primitive, straightforward call. And while there is a lot of help on embedding, I could not

Re: Writing Video conference software for Windows

2006-09-22 Thread Ravi Teja
Someone said about VNC... I'll take a look, but since it is an exercise I need to do it, Exercises typically need you to implement, not invent (leave that for a thesis or a dissertation). Rather than invent VNC, you could just implement it on your own from the specs.

Re: Writing Video conference software for Windows

2006-09-21 Thread Ravi Teja
I need to write a software that allow to see the desktop That would be the VNC protocol. Don't reinvent the wheel. VNC is relatively efficient in that it only updates the portions of the screen that changed. Maybe this project could be your starting point. PyVNC

Re: include statement

2006-09-20 Thread Ravi Teja
is it possible in python to include another python source file into the current namespace, i.e.completely analogous to the #include statement in C. By using a pre-processor, like C does. http://www.freenet.org.nz/python/pyp/ If you are new to Python, keep in mind that this is for special

Re: RegexBuddy (anyone use this?)

2006-09-16 Thread Ravi Teja
[EMAIL PROTECTED] wrote: Has anyone tried this thing.. http://www.regular-expressions.info/regexbuddy.html If I had $30 would this be worth getting or should I just try to learn the manual. (I was hopeing the essential refrence would clear things up but I am downloading a gilgillion pages

Re: auto fill out web form

2006-09-03 Thread Ravi Teja
Chris Smith wrote: Does anyone know of any python scripts that can help me automatically navigate through some forms so I can schedule the download the file at the end of all the questions? ClientForm http://wwwsearch.sourceforge.net/ClientForm/ --

Re: Python web service ...

2006-08-26 Thread Ravi Teja
Tim Williams wrote: At this time right now I prefer to do something that works the quickest possible... I never had any experience with CGI, do I need to set up a web server for that ? can you point me some usefull reading material so I can get a start ? I will post for a comment at

Re: text editor suggestion?

2006-08-23 Thread Ravi Teja
John Salerno wrote: Ravi Teja wrote: ??? In the same file, near the top. keywordclass.python=and assert break class continue def del elif \ else except exec finally for from global if import in is lambda None \ not or pass print raise return try while yield I could add my own

Re: text editor suggestion?

2006-08-22 Thread Ravi Teja
John Salerno wrote: Ravi Teja wrote: Stick to SciTE. It takes almost no learning effort and meets everyone of those requirements. As far as customerization goes, SciTE can be customerized quite well. In fact, it can even be scripted with Lua. You seem to be using the single file

Re: What would be the best way to run python client in the background

2006-08-21 Thread Ravi Teja
The reason for the a seperate persistant check is because it will be used to enable software to be installed in whole lab of PCs but only allow a predifined number to run the software at any time one time. And then when a user stop using the software a licence will become available to for

Re: Python Editor with Autocorrection

2006-08-21 Thread Ravi Teja
Laurentiu wrote: hello! i am searching for a free python editor with autocorrection capabillities. for example: the wrong setfocus() call to become SetFocus(), etc. thanks Python is a dynamic language, which means that methods that may not exist in your source code may spring to being

Re: text editor suggestion?

2006-08-21 Thread Ravi Teja
I also just started using Scite, and I really like it, except I find its syntax highlighting to be very inflexible. You aren't able to define your own groups of words -- you have to use what's given, basically. One thing I like about UltraEdit is that you simply define as many groups of

Re: What would be the best way to run python client in the background

2006-08-20 Thread Ravi Teja
gel wrote: Hi I have written a python client server app that keeps an eye on processes starting and ending on a client and makes decision on what to do based on information from the server end. I want to run the client end of the app more or less invisibly (no console) on the XP clients

Re: Text to MP3 using pyTTS - Non-programmer question

2006-08-19 Thread Ravi Teja
[EMAIL PROTECTED] wrote: Thanks for the script. Are there any online python intrepreters? I'd like to play around with the script. I don't have access to my home PC. You probably will have to wait till you get to yours. There were some AJAXian ones but I doubt that you will find a free

Re: How to catch these kind of bugs in Python?

2006-08-19 Thread Ravi Teja
asincero wrote: Is there anyway to catch the following type of bug in Python code: message = 'This is a message' # some code # some more code if some_obscure_condition: nessage = 'Some obscure condition occured.' # yet more code # still more code print message In the above example,

Re: sqlite3 or mysqldb?

2006-08-18 Thread Ravi Teja
To learn SQL SQLite should be enough - it has all the basics, just as MySQL, while it doesn't require any server/client configuration (encoding configuration in MySQL is real PITA). But if you want any serious SQL, go with any freely available *real SQL server*, like Firebird or PostgreSQL.

Re: Easy to use distributed system?

2006-08-13 Thread Ravi Teja
Jim Jones wrote: I am looking for a system in Python that will easily allow me to distribute processes across multiple systems?So, if I have a function 'foo', I'd like to be able to call something along the lines of distribute(foo(x)) And have the system figure out which node is

Re: recommended general-purpose string template packages?

2006-08-13 Thread Ravi Teja
In general, I'm mainly interested in a template engine for dynamic web pages but would like a general purpose one to avoid learning yet another package for generating e-mail messages, form letters, source code, whatever. In particular, does anyone have much experience with the Python

Re: The decentralized nature of the Python community is driving me crazy

2006-08-09 Thread Ravi Teja
But I must say the one thing I miss about Perl is my ability to stay on top of all the latest modules and apps in one place: CPAN. With Python, code is EVERYWHERE - people's local boxes, sourceforge, freshmeat, codezoo, parnassus, etc, etc. Python CheeseShop is equivalent to CPAN

Re: New to Python-- Help

2006-08-08 Thread Ravi Teja
Philippe Martin wrote: John Mary Cook wrote: I just installed Python on Windows XP Pro. When I enter 'python' at the prompt in Pythonwin IDE I get the following: Traceback (most recent call last): File interactive input, line 1, in ? Name Error: name 'python' is not defined

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread Ravi Teja
Is this kind of cleverness what is usually known as magic? I suspect that this has something to do with it, but not completely sure... :-). It must be. Now Django has a magic removal branch. -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread Ravi Teja
'Clever is not considered a compliment in Python.' (don't know where I read that...) On a similar note. Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian

Re: python and JMS

2006-07-30 Thread Ravi Teja
I am looking to use python to talk to JMS. Can some please point me to such resources if this is possible. JPype http://jpype.sourceforge.net/ Jython http://www.jython.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: python and JMS

2006-07-30 Thread Ravi Teja
Alan Kennedy wrote: [tksri2000] I am looking to use python to talk to JMS. Can some please point me to such resources if this is possible. PyHJB is the python-to-JMS gateway. ... via HJB, the HTTP JMS bridge. http://hjb.python-hosting.com/ HJB (HTTP JMS Bridge) http://hjb.berlios.de/

Re: Python for Lazarus (not Delphi)

2006-07-23 Thread Ravi Teja
Uwe Grauer wrote: Does anyone know if something similar to Python for Delphi does exist for lazarus? Thanks for any pointers, Uwe Python for Delphi does support Lazarus since Version 3.29 http://mmm-experts.com/VersionHistory.aspx?ProductId=3 --

Re: Web Browser Pygame Plug-in?

2006-07-10 Thread Ravi Teja
Gregory Piñero wrote: That's interesting, Ben. So we'd be better off making a new library similiar to Pygame in functionality but designed from the ground up to work in a browser. In open source community, that would be YOU since you are the one with the need :-). Maybe you can make Python

Re: python - regex handling

2006-07-04 Thread Ravi Teja
bruce wrote: hi... does python provide regex handling similar to perl. can't find anything in the docs i've seen to indicate it does... -bruce It helps to learn to search before asking for help. Typing the words - python regex (words from your post) into Google gives you plenty of results

Re: I have 100 servers which need a new backup server added to a text file, and then the backup agent restarted.

2006-07-01 Thread Ravi Teja
gavino wrote: This seems easy but I have been asking tcl and python IRC chat all day and no one gave an answer. I have 100 servers which need a new backup server added to a text file, and then the backup agent restarted. If I have a list of the servers, all with same root password, and the

Re: I have 100 servers which need a new backup server added to a text file, and then the backup agent restarted.

2006-07-01 Thread Ravi Teja
LittlePython wrote: Does this require a ssh client or server? I use authpf to open up my PF firewall for internet use. Generally I just open up putty and make a connection to the FW ( which open the ports) and minize it till I am done. When I close putty authpf losses the ssh session

Re: building/installing python libs/modules...

2006-07-01 Thread Ravi Teja
i've got the python app: http://www.boddie.org.uk/python/downloads/libxml2dom-0.3.3.tar.gz and i've downloaded it, an untarred it... i have the dir structure, but i don't know what needs to be done now!!! i have a setup.py. does it get run? the Readme file didn't tell me how to build the

Re: I have 100 servers which need a new backup server added to a text file, and then the backup agent restarted.

2006-07-01 Thread Ravi Teja
gavino wrote: list of servers L.txt #cat L.txt config file is /var/bkupexec/agent.cfg need to add tell epobackup to bottom of file # cat tell epobackup /var/bkupexec/agent.cfg agent is /etc/init.d/agent.ini stop (and then start) # /etc/init.d/agent.init stop # /etc/init.d/agent.init

Re: building/installing python libs/modules...

2006-07-01 Thread Ravi Teja
Here is a click and go installer built for Windows that I found from Google. http://users.skynet.be/sbi/libxml-python/binaries/libxml2-python-2.6.22.win32-py2.4.exe Oops! That is for libxml2, not libxml2dom. -- http://mail.python.org/mailman/listinfo/python-list

Re: beautifulsoup .vs tidy

2006-07-01 Thread Ravi Teja
Paul Boddie wrote: Ravi Teja wrote: 1.) XPath is not a good idea at all with malformed HTML or perhaps web pages in general. import libxml2dom import urllib f = urllib.urlopen(http://wiki.python.org/moin/;) s = f.read() f.close() # s contains HTML not XML text d

Re: beautifulsoup .vs tidy

2006-06-30 Thread Ravi Teja
bruce wrote: hi... never used perl, but i have an issue trying to resolve some html that appears to be dirty/malformed regarding the overall structure. in researching validators, i came across the beautifulsoup app and wanted to know if anybody could give me pros/cons of the app as it

Re: Import Issue

2006-06-29 Thread Ravi Teja
[EMAIL PROTECTED] wrote: What is the difference between import string and from string import * Here is an explanation. http://effbot.org/zone/import-confusion.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: what do you guys prefer for ajax?

2006-06-29 Thread Ravi Teja
a wrote: what do you guys prefer for ajax? dojo mochikit prototype or somehting else/ I am using OpenLaszlo for a project with a Karrigell (Python) ReST backend. Now strictly speaking, this is not AJAX at the moment. It uses Flash but has the same asynchronous updates from the server model.

Re: code is data

2006-06-29 Thread Ravi Teja
I missed this reply earlier. Fredrik Lundh wrote: there might be cognitive theories that argue that the length of the symbols used to describe something is more important than the symbols you use and how they can be chunked by the brain Expert communication is known to work differently. For

Re: code is data

2006-06-22 Thread Ravi Teja
I don't think that distinction is very meaningful. As a programmer I have to understand both. I understand the Python compiler well, and it gives me reasonably good feedback when I get things wrong, and it has a lot of flexibility along several orthogonal lines. We're talking about

Re: code is data

2006-06-20 Thread Ravi Teja
Or... maybe to be more specific, the hard work later on goes into *code*. If you are enhancing your model, you do so with methods on the model classes, and those methods don't effect the DSL, they are just code. You create some raw XML in the beginning, but quickly it's just a matter of

Re: code is data

2006-06-19 Thread Ravi Teja
BJörn Lindqvist wrote: community has no interest in it. When I absolutely need macros, I will go elsewhere. I *like* 1..5 (ada, ruby) instead of range(5). If I had macros, I would have done it myself for *my* code. I think this example more is a symptom of a childish need to get

Re: code is data

2006-06-19 Thread Ravi Teja
Kay Schluehr wrote: Ravi Teja wrote: People have however written various language interpreters (Scheme, Forth and yes, even Basic) in Python, just for kicks. Still does not make it a DSL language anymore than it makes C a DSL language. At present, the closest thing to writing a DSL

Re: code is data

2006-06-18 Thread Ravi Teja
Paddy wrote: Ravi Teja wrote: BJörn Lindqvist wrote: Personally, I would like to see macros in Python (actually Logix succeeding is good enough). But I am no language designer and the community has no interest in it. When I absolutely need macros, I will go elsewhere. One

Re: code is data

2006-06-18 Thread Ravi Teja
Fredrik Lundh wrote: Ravi Teja wrote: Web frameworks, which seem to be the rage now in Python community could have benefited tremendously from Macro capabilities since they have a lot of boiler plate. they do? methinks you haven't done much web programming lately... /F You blogged

Re: code is data

2006-06-17 Thread Ravi Teja
Paddy wrote: Anton Vredegoor wrote: With the inclusion of ElementTree (an XML-parser) in Python25 and recent developments concerning JSON (a very Pythonesque but somewhat limited XML notation scheme, let's call it statically typed XML) SNIP Your thoughts please. Anton Hi Anton.

Re: code is data

2006-06-17 Thread Ravi Teja
Anton Vredegoor wrote: With the inclusion of ElementTree (an XML-parser) in Python25 and recent developments concerning JSON (a very Pythonesque but somewhat limited XML notation scheme, let's call it statically typed XML) Python seems to have reached a stage where it now seems to be possible

Re: Standard Yes / No Windows Dialog box creation

2006-06-17 Thread Ravi Teja
[EMAIL PROTECTED] wrote: I found a way to create Open File or Open Folder windows dialog boxes, but not to create an easier Yes / No dialog box... Maybe someone has a solution for this? Assuming you are on MS Windows. import win32api, win32con win32api.MessageBox(0, Question, Title,

Re: code is data

2006-06-17 Thread Ravi Teja
BJörn Lindqvist wrote: Personally, I would like to see macros in Python (actually Logix succeeding is good enough). But I am no language designer and the community has no interest in it. When I absolutely need macros, I will go elsewhere. One must wonder, when is that? When do you

Re: Combining The Best Of Python, Ruby, Java??????

2006-06-13 Thread Ravi Teja
Ok, here's the Hello World example from the Scala website: object HelloWorld { def main(args: Array[String]) = { Console.println(Hello, world!) } } Opening and closing braces? def main(args: Array[String])? Console.println? About the only Pythonic thing I can see here is the

Re: Combining The Best Of Python, Ruby, Java??????

2006-06-13 Thread Ravi Teja
Diez B. Roggisch wrote: But semantically it is a proper functional language. The features may not attract Python users who might prefer Boo/Jython/IronPython. But it does offer something to disillusioned Groovy users. Are they disillusioned? Just wondering. Nah! Just a poor passing

Re: Combining The Best Of Python, Ruby, Java??????

2006-06-13 Thread Ravi Teja
Luis M. González wrote: Diez B. Roggisch wrote: But semantically it is a proper functional language. The features may not attract Python users who might prefer Boo/Jython/IronPython. But it does offer something to disillusioned Groovy users. Are they disillusioned? Just wondering.

Re: Combining The Best Of Python, Ruby, Java??????

2006-06-12 Thread Ravi Teja
Tim Daneliuk wrote: So it is claimed: http://www.infoq.com/news/Scala--combing-the-best-of-Ruby-;jsessionid=CC7C8366455E67B04EE5864B7319F5EC Has anyone taken a look at this that can provide a meaningful contrast with Python? I find the language very interesting but it is not like

Re: Python or Ajax?

2006-06-09 Thread Ravi Teja
I've been hearing a ot about AJAX lately. I may have to build a web application in the near future, and I was curoius: How does a web application that uses Python compare with one that uses AJAX? I've done some basic web page design with HTML and CSS, but never any web applications. I don't

Re: in python , could I accomplish the purpose that a=Console.read() used in C?

2006-06-05 Thread Ravi Teja
Bruno Desthuilliers wrote: python a écrit : in python , could I accomplish the purpose that a=Console.read() used in C? ot mode='pedantic' There's nothing like Console.read() in ansi-C. /ot He probably got it mixed up with C# which ( almost - Console.Read() ) has that. --

Re: New to Python: Do we have the concept of Hash in Python?

2006-06-02 Thread Ravi Teja
A.M wrote: Fredrik Lundh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] A.M wrote: This is my 1st day that I am seriously diving into Python and I have to finish this application by the end of today. Maybe it wasn't a good idea to choose the language that I don't know when

Re: How to access the content of notepad with Python?

2006-05-31 Thread Ravi Teja
I have a software running on my computer that really looks like notepad ( same interface, different name). I need to write a script that will capture the content of this software -- the text written inside. Is it possible using win32 libs? any clue? http://www.openqa.org/pywinauto/ The

Re: Need C# Coding for MD5 Algorithm...

2006-05-29 Thread Ravi Teja
I need C# code for Implementing MD5 Algorithm. So ask in a C# group. Python's is here http://docs.python.org/lib/module-md5.html please Send... ITs URgent http://www.catb.org/~esr/faqs/smart-questions.html#urgent -- http://mail.python.org/mailman/listinfo/python-list

Re: Fancy GUI with Python

2006-05-28 Thread Ravi Teja
Hi all. I just downloaded and installed the new Office suite from MS with their new 'ribbon' based UI. I think it's pretty cool and AFT* for a new UI paradigm. I hope it sticks. Anyway, I'm wondering how to implement a gui like this with Python. I haven't seen their new Office suit (apart

Re: html 2 plain text

2006-05-28 Thread Ravi Teja
i remember seeing this simple python function which would take raw html and output the content (body?) of the page as plain text (no .. tags etc) http://www.aaronsw.com/2002/html2text/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing python dictionary in Java using JPython

2006-05-26 Thread Ravi Teja
I have a python dictionary file. I want to create a map of that dictionary and want to use the same in my Java Program. Can anybody please tell me how to use the same python dictionary in Java as well as in Python. Try a JSON parser for Java http://www.json.org/

Re: IronPython 1.0 Beta 7 Released

2006-05-25 Thread Ravi Teja
Also, IronPython cannot access CPython libraries. So it cannot be used as a drop-in replacement for CPython in most non-trivial apps. Python for .NET however allows you to both use both CPython and .NET libraries. It will be able to access the standard libraries, as long as they are

Re: IronPython 1.0 Beta 7 Released

2006-05-25 Thread Ravi Teja
Can you recommend a book or a link for a person learning Python on Windows who does not yet know C# or .NET? Since Python is cross-platform, any Python book will do. If you need to do MS Windows specific programming (COM and OLE automation, Windows Services etc), you can use Mark Hammond's

Re: Access C++, Java APIs from Python..

2006-05-24 Thread Ravi Teja
I'm new to python. I would like to know whether is it possible to access Java/C++ APIs from python. I have two applications written in Java and API, I wanted to call the APIs of these applications from Python. I'm developing web-based application using Zope. CPython can access Java through

Re: IronPython 1.0 Beta 7 Released

2006-05-24 Thread Ravi Teja
Also, IronPython cannot access CPython libraries. So it cannot be used as a drop-in replacement for CPython in most non-trivial apps. Python for .NET however allows you to both use both CPython and .NET libraries. Ironpython is not a first class .NET language. That means that although you can

Re: Web based application in python

2006-05-22 Thread Ravi Teja
I would like to know whether it is possible to develop web based application using Python. Any general purpose language may be used for developing web applications. Even your favorite shell language. You should really at least read the python.org main page before asking this question. It

Re: python soap web services

2006-05-12 Thread Ravi Teja
Is there any reason why there isn't any python library that makes using soap as easy as how microsoft .net makes it. SOAP with Python is easy too in a different sort of way. I don't know about the equivalent for autogenerating WSDL bit as in .NET. #!/usr/bin/env python def hello(): return

Re: deleting texts between patterns

2006-05-12 Thread Ravi Teja
[EMAIL PROTECTED] wrote: hi say i have a text file line1 line2 line3 line4 line5 line6 abc line8 ---to be delete line9 ---to be delete line10 ---to be delete line11 ---to be delete line12 ---to be delete line13 ---to be delete xyz line15 line16 line17 line18 I wish to

<    1   2   3   >