Re: Why did Quora choose Python for its development?

2011-05-23 Thread Aleksandar Radulovic
Hi, I'm going to skip the Perl vs. Python flame-bait and correct your one statement. On Sun, May 22, 2011 at 7:44 AM, Octavian Rasnita wrote: > Somebody told that C# and Objective C are good languages. They might be good, > but they are proprietary, and not only that they are proprietary, but t

Re: Java to Python

2009-02-07 Thread Aleksandar Radulovic
Hi, On Sat, Feb 7, 2009 at 5:28 PM, zaheer agadi wrote: > Thanks Alex, > > Can you provide me more details on httplib and urllib ? The details can be found in Python documentation (http://python.org/doc), on these pages: http://docs.python.org/library/httplib.html I'm sure you can figure out t

Re: Java to Python

2009-02-07 Thread Aleksandar Radulovic
Hi, This looks like a perfect job for httplib and urllib2 modules. On Sat, Feb 7, 2009 at 4:49 PM, zaheer agadi wrote: > Hi Thanks for replying .. > I am actually looking for the pure Python options > > Are there any equivalent clasees for the following > > import org.apache.commons.httpclient.

Re: Sloooooowwwww WSGI restart

2009-01-29 Thread Aleksandar Radulovic
Graham, On Thu, Jan 29, 2009 at 1:00 PM, Graham Dumpleton wrote: > In other words, it is not universal that any code change will be > automatically detected and a reload occur. There are also various > caveats on what mod_python module importer does, as it is reloading > modules into an existing

Re: Sloooooowwwww WSGI restart

2009-01-29 Thread Aleksandar Radulovic
Graham, On Thu, Jan 29, 2009 at 1:16 AM, Graham Dumpleton wrote: > Sorry, you are wrong to assume that an Apache restart is not be > required. > If you are using mod_wsgi embedded mode, or mod_python, then a code > change will always require a full restart of Apache. I am running several middlew

Re: New to python, open source Mac OS X IDE?

2009-01-28 Thread Aleksandar Radulovic
On Tue, Jan 27, 2009 at 11:06 PM, joseph.a.mar...@gmail.com wrote: > I'm on a Mac. I use Netbeans for Java, PHP, and C if needed. Do you > even use an IDE for Python? I'm on a Mac, too. I don't use a full-fledged IDE for Python development, nor I think it's necessary. > Any recommendations on op

Re: Sloooooowwwww WSGI restart

2009-01-28 Thread Aleksandar Radulovic
Hi there, On Wed, Jan 28, 2009 at 9:35 PM, Ron Garret wrote: > I'm running a WSGI app under apache/mod_wsgi and I've noticed that Off the bat, there's no reason to run an app under apache/mod_wsgi while developing it, ie. if u use Pylons or TurboGears, there's an easier way to serve the app (usi

Re: mod_python resources

2008-12-16 Thread Aleksandar Radulovic
On Tue, Dec 16, 2008 at 8:22 PM, tmallen wrote: > Are there any good tutorials out there for setting up Apache with > mod_python? Apart from the (clear and concise) information in the mod_python documentation? Starts here: http://www.modpython.org/live/current/doc-html/installation.html Compilin

Re: redirecting stdout/err to mysql table

2008-11-19 Thread Aleksandar Radulovic
On Tue, Nov 18, 2008 at 7:07 PM, n00b <[EMAIL PROTECTED]> wrote: > greetings, > > i need to log to the db directly and wrote a little script to do so. > since i'm pretty new to python, > i was wondering if a) you could review the enclosed code and b) > provide suggestions to harden to code to turn

Re: concurrency program design stackless python tasklet or python thread?

2008-11-11 Thread Aleksandar Radulovic
Hi there, On Tue, Nov 11, 2008 at 5:57 AM, davy zhang <[EMAIL PROTECTED]> wrote: > first here is my basic idea is every actor holds their own msg queue, > the process function will handle the message as soon as the dispatcher > object put the message in. Using stackless, every tasklet can have a

Re: utf-8 read/write file

2008-10-08 Thread Aleksandar Radulovic
Hi, What is the encoding of the file1 you're reading from? I just ran tests on my machine (OS X) with both python2.5 and 2.6 and was able to read from a file containing: "život je lep" The file is UTF-8 encoded. >>> data = open("test.txt").read() >>> data '\xc5\xbeivot je lep.' >>> f = open("tes

Re: Can I write a binary windows executable with Python?

2008-08-29 Thread Aleksandar Radulovic
Hi, What you're probably referring to is py2exe tool (http://www.py2exe.org/) which creates windows executable programs out of python scripts. Once created, such executable can be run on a Windows machine without Python installed. Psyco, on the other hand, is a tool that greatly optimizes and inc