COM and Threads

2006-10-12 Thread Teja
I have an application which uses COM 's Dispatch to create a COM based object. Now I need to upgrade the application to a threaded one. But its giving an error that COM and threads wont go together. Specifically its an attribute error at the point where COM object is invoked. Any pointers please???

Re: COM and Threads

2006-10-12 Thread Teja
hg wrote: > Teja wrote: > > I have an application which uses COM 's Dispatch to create a COM based > > object. Now I need to upgrade the application to a threaded one. But > > its giving an error that COM and threads wont go together. Specifically > > its an at

Re: COM and Threads

2006-10-12 Thread Teja
Roger Upole wrote: > "Teja" <[EMAIL PROTECTED]> wrote: > >I have an application which uses COM 's Dispatch to create a COM based > > object. Now I need to upgrade the application to a threaded one. But > > its giving an error that COM and threads

Re: COM and Threads

2006-10-12 Thread Teja
hg wrote: > Teja wrote: > > hg wrote: > > > >> Teja wrote: > >>> I have an application which uses COM 's Dispatch to create a COM based > >>> object. Now I need to upgrade the application to a threaded one. But > >>> its gi

Re: COM and Threads

2006-10-12 Thread Teja
Roger Upole wrote: > "Teja" <[EMAIL PROTECTED]> wrote: > > > > Roger Upole wrote: > > > >> "Teja" <[EMAIL PROTECTED]> wrote: > >> >I have an application which uses COM 's Dispatch to create a COM based > >>

Re: COM and Threads

2006-10-13 Thread Teja
Roger Upole wrote: > "Teja" <[EMAIL PROTECTED]> wrote: > > > > Roger Upole wrote: > > > >> "Teja" <[EMAIL PROTECTED]> wrote: > >> > > >> > Roger Upole wrote: > >> > > >> >>

Thread termination

2006-10-13 Thread Teja
Hi all, Does any one know how to terminate or kill a thread that is started with "start_new_thread()" in the middle of its execution? Any pointers? Thanks in advance Teja. -- http://mail.python.org/mailman/listinfo/python-list

COM error

2006-10-13 Thread Teja
What is "ValueError: argument is not a COM object" ? I get this error when I try to pass a COM object to a thread. Any pointers Thanks Teja -- http://mail.python.org/mailman/listinfo/python-list

terminate execfile

2006-10-13 Thread Teja
How to terminate execfile() in the middle of its execution. Any pointers ??? Its very urgent please Thanks Teja.P -- http://mail.python.org/mailman/listinfo/python-list

Re: terminate execfile

2006-10-13 Thread Teja
Teja wrote: > How to terminate execfile() in the middle of its execution. Any > pointers ??? > Its very urgent please > > > Thanks > Teja.P Can I raise an interrupt using PyErr_SetInterrupt??? Is so , does any one know how to do it? -- http://mail.python.org/ma

Attribute error

2006-10-13 Thread Teja
Hi all, What is attribute error? what causes that error, especially with COM objects? To be precise : Attribute Error: LCAS.LabcarController.writeLogWindow() Here, LCAS is a COM object Thanks Teja.P -- http://mail.python.org/mailman/listinfo/python-list

COM and threads

2006-10-16 Thread Teja
HI all, I have a problem in accesing COM objects in threads. To be precise, lets assume that I have a class GenericFunctions which is defined as follows: import win32com.client, pythoncom, thread ie=win32com.client.Dispatch('internetexplorer.application') ie.Visible=1 class GenericFunctions:

Re: Attribute error

2006-10-16 Thread Teja
Max Erickson wrote: > "Teja" <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > What is attribute error? what causes that error, especially with COM > > objects? > > > > To be precise : > > > > Attribute Error: LCAS.La

Re: COM error

2006-10-16 Thread Teja
Neil Cerutti wrote: > On 2006-10-14, Teja <[EMAIL PROTECTED]> wrote: > > What is "ValueError: argument is not a COM object" ? I get this > > error when I try to pass a COM object to a thread. > > > > Any pointers > > Try passing it to Larry

Re: COM and Threads

2006-10-16 Thread Teja
Teja wrote: > Roger Upole wrote: > > "Teja" <[EMAIL PROTECTED]> wrote: > > > > > > Roger Upole wrote: > > > > > >> "Teja" <[EMAIL PROTECTED]> wrote: > > >> > > > >> > Roger Upole

COM Error -- Urgent help

2006-10-16 Thread Teja
HI all, I have a problem in accesing COM objects in threads. To be precise, lets assume that I have a class GenericFunctions which is defined as follows: import win32com.client, pythoncom, thread ie=win32com.client.Dispatch('internetexplorer.application') ie.Visible=1 class GenericFunctions:

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Méta-MCI wrote: > Hi! > > > .func( is not defined... > > > @-salutations > -- > Michel Claveau I am sorry. By func(dest) I meant MyNavigate(dest). Can u please help me out... Thnks, Teja.P -- http://mail.python.org/mailman/listinfo/python-list

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Fredrik Lundh wrote: > Teja wrote: > > > I am sorry. By func(dest) I meant MyNavigate(dest). Can u please help > > me out... > > nobody here can read your mind. please post the code you're actually > using, *and* the error you're getting. > > Thnks

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Dennis Lee Bieber wrote: > On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed > the following in comp.lang.python: > > >thread.start_new_thread(self.nav, (s,'www.google.com') > > > > I am getting an attribute error &g

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Diez B. Roggisch wrote: > Teja wrote: > > > > > Dennis Lee Bieber wrote: > >> On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed > >> the following in comp.lang.python: > >> > >> >thread.star

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
ternetexplorer.application.Navigate None Fredrik Lundh wrote: > Teja wrote: > > > s=pythoncom.CoMarshalInterThreadInterfaceInStream(pythoncom.IID_IDispatch,i­­e) > > > >thread.start_new_thread(self.nav, (s,'www.google.com') > > > > I am gettin

Get coordinates of a cell

2006-10-26 Thread Teja
I have a GUI application with a Frame and a grid in it. I want to popup a menu after the user enters some text in a cell and hits ENTER key. I was able to popup the menu. However the menu is not popping up exactly at the position where I want it. It should be popped up immediately after the cell in

Regular Expression for a string

2006-11-01 Thread Teja
HI all, I need to write a regular experssion for a string which satisfies the following a criteria : 1) it should start with an alphabet 2) it can contain alphabets/digits/_ from second character 3) it can contain "[a-z]" or "[0-9]" at the end. but this is optional can any one please help me ou

Re: Regular Expression for a string

2006-11-01 Thread Teja
James Stroud wrote: > Teja wrote: > > HI all, > > > > I need to write a regular experssion for a string which satisfies the > > following a criteria : > > > > 1) it should start with an alphabet > > 2) it can contain alphabets/digits/_ from second cha

Re: Regular Expression for a string

2006-11-01 Thread Teja
Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > "Teja" <[EMAIL PROTECTED]> wrote: > > > HI all, > > > > I need to write a regular experssion for a string which satisfies the > > following a criteria : > > > > 1) it should

Re: Regular Expression for a string

2006-11-01 Thread Teja
John Machin wrote: > Teja wrote: > > HI all, > > > > I need to write a regular experssion for a string which satisfies the > > following a criteria : > > > > 1) it should start with an alphabet > > 2) it can contain alphabets/digits/_ from second cha

Helpbook and CHM

2007-04-19 Thread Teja
How to create a helpbook and display it using python(in Boa). Also, how to generate CHM files in Boa(Python)??? Any pointers please -- http://mail.python.org/mailman/listinfo/python-list

Re: Helpbook and CHM

2007-04-19 Thread Teja
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 have seen an option in Boa to create

Re: Helpbook and CHM

2007-04-19 Thread Teja
On Apr 19, 4:33 pm, Ravi Teja <[EMAIL PROTECTED]> wrote: > 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(Py

Kill thread

2007-04-09 Thread Teja
Hi all, Can any on help me out in killing a thread (i.e deleteing the reources like, stack ,memory etc) which is started with win32process.beginthreadex()??? Rite now, I am suspending the thread. But any pointers as to how to delete the thread permanently? Its pretty urgent... Please... Teja.P

Re: Kill thread

2007-04-09 Thread Teja
On Apr 9, 3:01 pm, Michel Claveau <[EMAIL PROTECTED]> wrote: > Hi! > > If you have the PID of the process (example: 1234), use this > command-line : >TASKKILL/F /PID 1234 > > -- > @-salutations > > Michel Claveau Hi Michel, Thnks for the replyBut TASKKILL kills the process entirely..N

Re: Kill thread

2007-04-09 Thread Teja
On Apr 9, 6:18 pm, "Christian" <[EMAIL PROTECTED]> wrote: > On Apr 9, 5:14 am, "Teja" <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > Can any on help me out in killing a thread (i.e deleteing the reources > > like, stack ,memor

TASK KILL

2007-04-09 Thread Teja
Will TASKKILL kills a thread when thread id is given ?? Or does it kill only a process?? How to ensure that a thread is killed? -- http://mail.python.org/mailman/listinfo/python-list

COM server and EXE

2008-01-08 Thread Teja
Hi All, I have a Python COM server. I need to deploy it on various sytems. When I run the COM server from python its showing an output " Registered : sample.lib" If I try to use the COM obj from a VB client like: obj = CreateObject("sample.lib") Its working fine without any errors Now I am try

Re: COM server and EXE

2008-01-08 Thread Teja
On Jan 8, 3:33 pm, Teja <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a Python COM server. I need to deploy it on various sytems. > When I run the COM server from > python its showing an output " Registered : sample.lib" > > If I try to use the C

Regarding Threads and locals()

2008-03-20 Thread Teja
Hi all, I have a GUI applicaion(along with threads). When the run button is pressed in the GUI a separate thread starts( Thread is created using beginthreadex) and does the required activity. Now, while the thread is being executed, i want the locals() present inside the thread's run function to b

Re: copy file over LAN

2008-03-26 Thread Teja
On Mar 27, 8:34 am, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > I have afileon another machine on the localnetwork(my machine and > local machines are on windows) and I want tocopyit locally. Now the > machine requires authentication and when I try to do a > import shutil > shutil.copy(r'\\remote

Archiving emails in Gmail

2010-06-15 Thread teja
Hi, I have a requirement that I want to log-in into a gmail account read all unread mails, mark them as read and then archive them. I am using libgmail (version 0.1.11) library to do so, using which I am able to log-in into a gmail account fetch all unread message and then read them one by one. No

Re: Archiving emails in Gmail

2010-06-15 Thread teja
Ohh my bad... thanks a lot for replying Alf.. The error which I've pasted above, was thrown before I modified the code a bit.. Here's the error thrown on running the code I've pasted above.. there's not much of a difference in the error though. HTTP Error 500: Internal Server Error Traceback (m

Re: Is Python weak on the web side?

2005-11-20 Thread Ravi Teja
Too many options. Google: python web frameworks The first couple of links will point you to enough resources. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there an equivalent to Java Webstart in Python?

2005-12-05 Thread Ravi Teja
Hi Kent, Too complicated example :-). Jythonc works just fine to create a regular jar file that you can reference in your jnlp file. Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python in other programs

2005-08-27 Thread Ravi Teja
http://www.python.org/windows/win32com/QuickStartServerCom.html If you are using ActivePython, that tutorial is included (PyWin32 documentation -> Python COM -> Overviews) along with the needed win32all module. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python in other programs

2005-08-28 Thread Ravi Teja
Greg, I don't recall touching VB6 in 4 years. From whatever I remember, you are trying to do early binding (trying to find a registered type library). You need to do late binding instead (use CreateObject) to dynamically instantiate the COM object. Ravi Teja. -- http://mail.python.org/ma

Re: Extend Python

2005-09-01 Thread Ravi Teja
SIP is not a commercial product and is released on a different license than PyQt. >From the SIP docs (http://www.river-bank.demon.co.uk/docs/sip/sipref.html#license) 1.1 License SIP is licensed under the same terms as Python itself. SIP places no restrictions on the license you may apply to the

Re: Visual Python, really "Visual"?

2005-12-13 Thread Ravi Teja
No! Visual Python does not have a WYSIWYG GUI Builder. Boa Constructor is the closest. PythonCard is another contender. Once, XAML comes in, this will become less of an issue. -- http://mail.python.org/mailman/listinfo/python-list

Re: Still Loving Python

2005-12-13 Thread Ravi Teja
Nothing beats Delphi for the raw design speed and choices for GUI development. .NET is another good option. The good news is you don't have to loose their benefits just because we chose Python. Python for Delphi works quite well to get you the best of both worlds. I develop the app in Python as a l

Re: scrape url out of brackets?

2005-12-24 Thread Ravi Teja
Regular Expressions are the most common way. http://docs.python.org/lib/module-re.html HTML parser is another http://docs.python.org/lib/module-htmllib.html -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE for Python ?

2006-01-01 Thread Ravi Teja
[EMAIL PROTECTED] wrote: > I'm getting realy tired of learning new languages. > And especially frustrated at the 'syntax errors' when switching > between them. > > There are basically only a few common concepts needed for > all the languages. Hence linux's p2c: Pascal to C translator. > > A good

Re: Re.'Compressing folders in Windows using Python'

2006-01-02 Thread Ravi Teja
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/299412 -- http://mail.python.org/mailman/listinfo/python-list

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 -- http://mail.python.org/mailman/li

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.ber

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." -- Br

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: 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 "", line 1, in ? > > Name Error: name 'python' is not defined

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 http://ww

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 a

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: 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 Postgre

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 (a

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 ab

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: 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 spr

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

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 > &g

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

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. -- http://mail.python.org/ma

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 fram

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/ http://pycells.pdxcb.net/wiki

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). -- http://mail.python.org/mailman/listi

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 (ap

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: Need C# Coding for MD5 Algorithm...

2006-05-28 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: 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: 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

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? > > > There's nothing like "Console.read()" in ansi-C. > He probably got it mixed up with C# which ( almost - Console.Read() ) has that. -- http://mail.python.or

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

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: Combining The Best Of Python, Ruby, & Java??????

2006-06-12 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 s

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 passin

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

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) > > > > Your thoughts please. > > > > 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 possi

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

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. Whe

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

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 nee

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. > > > &

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

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: 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"

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. F

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

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

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 buil

  1   2   3   >