Re: [Tutor] compilte python to an executable file.

2006-03-27 Thread Varun Soundararajan
hi,   I face a typical problem that most python programmers face. Most users only want a click and run kind of thing..they are uninterested  to install any software on their system , be it python or any other software..so the solution is to pack the code up as a py2exe program for windows and ask them to click it and run... 
  Is there any solution where i dont ask any software to be installed(ie., python) and still be able to assure that if they click something, they get the result that they need?...  py2exe partially succeeds in answering this..by packing things up...however any compiled pyc code can easily be decompiled to get the source..its geared towards windows and in linux, we (always) assume that the users are savvy enough and interested to install python if its not already installed...so is the case with mac.
Regards-- Varun
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] compilte python to an executable file.

2006-03-27 Thread Varun Soundararajan
Hi jack,   You are right. py2exe may not fit well in commercial software products that arent in the open source model. An executable that was py2exe'd could well be converted back to the source.. I feel that its one of the restrictions thats in the way of enterprization of python...(agreed google uses python..but thats internal.. they dont deploy py files in customer's computers).correct me if i am wrong...
CheersVarun
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Re: Python Online Programming Contest

2005-03-02 Thread Varun Soundararajan
Hi,
The results of OPC (online programming contest) is out. The statistics
of python usage is available at
http://www.samhita.info/opc/status.php.
Regards,
-OPC Team
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Python Online Programming Contest

2005-02-24 Thread Varun Soundararajan
Hi Friends,
Department of Information Technology, Madras Institute of Technology,
Anna University
is conducting a technical symposium, Samhita. As a part of samhita, an
Online Programming Contest is scheduled on Sunday, 27 Feb 2005.

This is the first Online Programming Contest in India to support Python .
Other languages supported are C and C++.

For Registration and Rules of the contest, http://www.samhita.info/opc
For details about samhita http://www.samhita.info/

Regards,
-Online Programming Contest team
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Time Controlled Execution

2005-02-20 Thread Varun Soundararajan
Hi,
I want to know how to do this:
I have an executable file, which reads input from stdin provided
output at stdout or stderr.
I have to run it for a specific period of time (say 5 secs), get the
output and display it.
If i use popen(), this way:
from subprocess import *
p = Popen(["test","test.out"], shell=True) 
p.wait()
print p.stdin,p.stdout
I dont get output in p.stdout.Apart from this, can u say how to stop
this subprocess after 5 secs (or whatever time frame specified)?
signal SIGALRM may not work (as i want it to work in windows & unix).
-Varun
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor