Re: [Tutor] mod_python, mod_wsgi, web.py, django! What to use?

2008-09-28 Thread Chris Babcock
> So, lets say I want to develop a distributable web application (such > as phpBB or Drupal) for Python. What platform (mod_wsgi, mod_python) > would I use to reach as many users as possible, and on top of that, > which (if any) framework should I use to develop this web application? A lot of appl

Re: [Tutor] vim python debugging

2008-09-28 Thread Arun Tomar
On Sun, 2008-09-28 at 22:12 -0600, Alec Henriksen wrote: > It would be very helpful to include the error message you received... I > can't help you, but just a thought. > > On Mon, 2008-09-29 at 09:39 +0530, Arun Tomar wrote: > > hi! > > > > I"m trying to setup vim for python debugging mode. But

[Tutor] vim python debugging

2008-09-28 Thread Arun Tomar
hi! I"m trying to setup vim for python debugging mode. But it gives me error. Has anyone succeeded in doing so. link: http://code.google.com/p/vimpdb/ ideally I'm trying to evaluate vim & emacs as command line editors & debugging for python. arun. ___

Re: [Tutor] trying to put Tkinter widget handlers in a module

2008-09-28 Thread John Fouhy
2008/9/29 <[EMAIL PROTECTED]>: > I am writing a large Python/Tkinter/Pmw program. It has become so big that I > would like to move some of the widget handlers to a module for import. The > following small program illustrates: > > # --- begin code --- [...] >c = Checkbutton( >

[Tutor] trying to put Tkinter widget handlers in a module

2008-09-28 Thread dwbarne
I am writing a large Python/Tkinter/Pmw program. It has become so big that I would like to move some of the widget handlers to a module for import. The following small program illustrates: # --- begin code --- # checkbutton frame using python & Tkinter from Tkinter import * import string clas

Re: [Tutor] Monitoring HTTP connections?

2008-09-28 Thread W W
On Sun, Sep 28, 2008 at 7:33 PM, xbmuncher <[EMAIL PROTECTED]> wrote: > >>Why not just set up wireshark with a filter for HTTP requests? > Because I want to use the data from the HTTP requests in my python program, > so it needs to be a way I can do it natively within my python program, so I > can

[Tutor] mod_python, mod_wsgi, web.py, django! What to use?

2008-09-28 Thread Alec Henriksen
Hello, This is my first time posting to this board, so please forgive me if I mess something up. So, lets say I want to develop a distributable web application (such as phpBB or Drupal) for Python. What platform (mod_wsgi, mod_python) would I use to reach as many users as possible, and on top of

Re: [Tutor] Hello and some questions.

2008-09-28 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote The first problem is a program that will take a list of ten grades from a user and then calculate the average value = [ ] for i in range(10): range += 1 print (int(float(raw_input("Please enter a grade, use numbers 1 - 10: "))) This is very confused. First th

Re: [Tutor] Monitoring HTTP connections?

2008-09-28 Thread xbmuncher
>>Why not just set up wireshark with a filter for HTTP requests? Because I want to use the data from the HTTP requests in my python program, so it needs to be a way I can do it natively within my python program, so I can use the data it retrieves...- Show quoted text - On Sun, Sep 28, 2008 at 7:3

Re: [Tutor] Hello and some questions.

2008-09-28 Thread Andre Engels
On Mon, Sep 29, 2008 at 1:36 AM, <[EMAIL PROTECTED]> wrote: > I did get some help in the python forums with this and I have come up the > following, but I am getting a syntax error on the line that calls out "total" > as a variable. Here is the code: The actual problem is in the previous line:

[Tutor] Hello and some questions.

2008-09-28 Thread tsmundahl
Hello all. I recently starting taking Python in my state college. I joined the Python.org users group and I posted a couple of codes examples that I was having problems with, and I am wondering if there is anyone in this community that can help me. I did get some great advice on my previous po

Re: [Tutor] Downloading Files from the net

2008-09-28 Thread Kent Johnson
On Sun, Sep 28, 2008 at 12:51 PM, Timo <[EMAIL PROTECTED]> wrote: > What is the best/correct way to download files from a webpage? > > www.example.com/example.mp3 for instance. > > I know how to open the site (with urllib), but have no idea how to write the > file to the harddisk. urllib.urlretrie

Re: [Tutor] python regex help

2008-09-28 Thread Mark Tolonen
"Arun Tomar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Sun, 2008-09-28 at 17:26 +0100, Alan Gauld wrote: "Arun Tomar" <[EMAIL PROTECTED]> wrote > I've been using shell scripting & using sed & pipes i've solved it, > but with python, i need to practice more ;). ok, i got it

Re: [Tutor] Downloading Files from the net

2008-09-28 Thread Mark Tolonen
"Timo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] What is the best/correct way to download files from a webpage? www.example.com/example.mp3 for instance. I know how to open the site (with urllib), but have no idea how to write the file to the harddisk. Quick and dirty, if e

Re: [Tutor] python regex help

2008-09-28 Thread Arun Tomar
On Sun, 2008-09-28 at 17:26 +0100, Alan Gauld wrote: > "Arun Tomar" <[EMAIL PROTECTED]> wrote > > > I've been using shell scripting & using sed & pipes i've solved it, > > but with python, i need to practice more ;). ok, i got it. here is the code that needs to be included after code in the last m

Re: [Tutor] python regex help

2008-09-28 Thread Arun Tomar
On Sun, 2008-09-28 at 17:26 +0100, Alan Gauld wrote: > "Arun Tomar" <[EMAIL PROTECTED]> wrote > > > I've been using shell scripting & using sed & pipes i've solved it, > > but with python, i need to practice more ;). > > Can you show us some output as you'd like irt? > Can you show us the sed scr

[Tutor] Downloading Files from the net

2008-09-28 Thread Timo
What is the best/correct way to download files from a webpage? www.example.com/example.mp3 for instance. I know how to open the site (with urllib), but have no idea how to write the file to the harddisk. Cheers ___ Tutor maillist - Tutor@python.or

Re: [Tutor] python regex help

2008-09-28 Thread Alan Gauld
"Arun Tomar" <[EMAIL PROTECTED]> wrote I've been using shell scripting & using sed & pipes i've solved it, but with python, i need to practice more ;). Can you show us some output as you'd like irt? Can you show us the sed script that works? Also can you show us the Python code that doesn't

[Tutor] python regex help

2008-09-28 Thread Arun Tomar
hi! i've data extracted in the form of list using regex. it looks something like the one below. print reobj ['Jyoti Soni - 0 Year(s) 0 Month(s)\n', 'Tel: 09975610476(M)\n', '\n', 'Minal - 0 Year(s) 0 Month(s)\n', 'Tel: 9890498376(M)\n', '011 02

Re: [Tutor] Monitoring HTTP connections?

2008-09-28 Thread Kent Johnson
On Sat, Sep 27, 2008 at 11:20 PM, xbmuncher <[EMAIL PROTECTED]> wrote: > How can I monitor the HTTP connections my windows xp system makes with > python? > > I'm running a program that makes requests to websites over HTTP, I know this > by using a program like wireshark. I'd basically like to have

Re: [Tutor] paste question

2008-09-28 Thread cuciferus
On Sunday 28 September 2008 11:37:26 Alan Gauld wrote: > "Alan Gauld" <[EMAIL PROTECTED]> wrote > > >> questions(answered and unaswered). I copy the unanswered questions > >> and paste it in console: here a question is displayed in 5 rows, > >> and > >> I have 20 questions/page. > > > > I'm begin

Re: [Tutor] paste question

2008-09-28 Thread cuciferus
On Sunday 28 September 2008 11:16:24 Alan Gauld wrote: > <[EMAIL PROTECTED]> wrote > > > I'm good here. You see I'm doing some online tests for my graduation > > and in a test are hundreds of questions. The thing is it doesn't > > display > > the number of questions left unanswered, But it displa

Re: [Tutor] paste question

2008-09-28 Thread Alan Gauld
"Alan Gauld" <[EMAIL PROTECTED]> wrote questions(answered and unaswered). I copy the unanswered questions and paste it in console: here a question is displayed in 5 rows, and I have 20 questions/page. I'm beginning to suspect you really want something like this pseudo code: s = raw_input('

Re: [Tutor] paste question

2008-09-28 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote I'm good here. You see I'm doing some online tests for my graduation and in a test are hundreds of questions. The thing is it doesn't display the number of questions left unanswered, But it displays the status of questions(answered and unaswered). I copy the unanswer

Re: [Tutor] paste question

2008-09-28 Thread cuciferus
On Saturday 27 September 2008 22:27:56 Alan Gauld wrote: > <[EMAIL PROTECTED]> wrote > > Sorry but I'm confused. > > > I made a little script to whom I wish to pass some pasted(with > > middle > > click(x11 style)) multi-row text. But if I pass say 99 rows it > > crashes with no > > error it exit