Re: [Tutor] Question about python for web

2013-06-26 Thread Seshadri Raja
Dear Dat, Sorry for the late reply. The path of the python should be #!/usr/bin/python (or) #!/usr/bin/env python. Forward Slash(/) is missing in your CGI script. ​Enable the ExecCGI for your DocumentRoot Ref: http://httpd.apache.org/docs/current/howto/cgi.html​ ​ Options +ExecCGI ​ Kin

[Tutor] Question about python for web

2013-06-23 Thread Dat Huynh
Dear all, I have a very simple question about running a simple web application with apache on MacOS. Step 1: Copy the file mod_wsgi.so from the link http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-macosx106-ap22py26-3.3.so into the folder "/usr/libexec/apache2" Step 2: Add the f

Re: [Tutor] Question about Python being object oriented

2010-05-08 Thread Lie Ryan
On 05/09/10 02:19, Tino Dai wrote: > Hi Everybody, > > My friend and I were having a disagreement about Python. Has Python > always been an OO language or was it at one point a procedural language like > C? Thanks! AFAIK Python has always been a mixed paradigm language. You can write fully O

Re: [Tutor] Question about Python being object oriented

2010-05-08 Thread bob gailer
On 5/8/2010 12:19 PM, Tino Dai wrote: Hi Everybody, My friend and I were having a disagreement about Python. Has Python always been an OO language or was it at one point a procedural language like C? Thanks! OO and procedural are not mutually exclusive! From http://en.wikipedia.org/wik

Re: [Tutor] Question about Python being object oriented

2010-05-08 Thread Eike Welk
On Saturday May 8 2010 18:19:53 Tino Dai wrote: > Hi Everybody, > > My friend and I were having a disagreement about Python. Has Python > always been an OO language or was it at one point a procedural language > like C? Thanks! The Wikipedia article states: Yes, it was always an object orie

[Tutor] Question about Python being object oriented

2010-05-08 Thread Tino Dai
Hi Everybody, My friend and I were having a disagreement about Python. Has Python always been an OO language or was it at one point a procedural language like C? Thanks! -Tino ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscri

Re: [Tutor] Question about Python.

2009-03-25 Thread Alan Gauld
"T" wrote I'm working on Paper, Rock, Scissors in Python. I need to make it a loop, and test the values (1, 2, 3, /Rock/Paper/Scissors) yet, but i'm kind of stuck. Could you help me? What exactly puzzles you? You know you need a loop so you presumably realize that you need to repeat some

Re: [Tutor] Question about Python.

2009-03-25 Thread A.T.Hofkamp
T wrote: Hi. I'm working on Paper, Rock, Scissors in Python. I need to make it a loop, and test the values (1, 2, 3, /Rock/Paper/Scissors) yet, but i'm kind of stuck. Could you help me? import random #Imports the random modual from the library. def main(): #First function. print 'Lets p

[Tutor] Question about Python.

2009-03-25 Thread T
Hi. I'm working on Paper, Rock, Scissors in Python. I need to make it a loop, and test the values (1, 2, 3, /Rock/Paper/Scissors) yet, but i'm kind of stuck. Could you help me? import random #Imports the random modual from the library. def main(): #First function. print 'Lets play Paper

Re: [Tutor] Question about Python ORM

2008-04-02 Thread Michael Langford
If you do sqlalchemy, I recommend you at least also look at sqlsoup to help making your mappings easier: http://www.sqlalchemy.org/trac/wiki/SqlSoup If you don't want to write mappers and you don't need the relational database, ZODB also works: http://www.zope.org/Products/StandaloneZODB

Re: [Tutor] Question about Python ORM

2008-04-02 Thread Andreas Kostyrka
There are many as you said yourself. Recommendation: sqlalchemy.org Andreas Am Mittwoch, den 02.04.2008, 16:51 +0530 schrieb hiren kumar: > Hi, > > I am very much new to Python and it's available framework. > > When I search the over net about Python ORM, I found there are so many > ORMs availa

[Tutor] Question about Python ORM

2008-04-02 Thread hiren kumar
Hi, I am very much new to Python and it's available framework. When I search the over net about Python ORM, I found there are so many ORMs available and I was confused between them? I don't understand where to go? :( Can you please tell me something about Python ORM? Regards, Kumar