Re: [Tutor] Have Python Update Forms

2008-06-06 Thread Alan Gauld
"James" <[EMAIL PROTECTED]> wrote I want to write a program that will update the 'last updated' field on *every* item. This will require some sort of 'post' to the web server I think I misunderstood your request. I thought you wanted to add some new web browser functions but it looks like yo

Re: [Tutor] Error-handling for a large modular program

2008-06-06 Thread Alan Gauld
"Shrutarshi Basu" <[EMAIL PROTECTED]> wrote I'm currently working on a research project where we'll be developing a moderately complex piece of software. We're designing with extensibility in mind. One of the problems I can see right now is that our program can potentially create a large numb

Re: [Tutor] Grabbing data from changing website

2008-06-06 Thread Sean Novak
I've recently been writing a web app with libxml2dom ( http://www.boddie.org.uk/python/libxml2dom.html ). I had a look at BeautifulSoup and found the two very similar. I ended up sticking with libxml2dom because of a quote from its website.. "Performance is fairly respectable since lib

Re: [Tutor] Have Python Update Forms

2008-06-06 Thread James
Thanks for the response. Ahhh, now we're going to get really off-topic. ;) The only one that I've been able to scrape up for now was the infamous DOM Inspector. Using the DOM Inspector, I can see: - action ('/tool/update/todoUpdate.do') - method is post - name is 'todo' There's a specific input

Re: [Tutor] Have Python Update Forms

2008-06-06 Thread James
Thanks for the response, Alan. Unfortunately direct access to the database is not a possibility. ;) It's one of those things where the folks running the database don't want to share the necessary credentials. I guess I've resorted to this "POST hack" in an effort to make life easier, even without t

Re: [Tutor] Have Python Update Forms

2008-06-06 Thread Kent Johnson
On Fri, Jun 6, 2008 at 8:58 AM, James <[EMAIL PROTECTED]> wrote: > Thanks for the response. > > Ahhh, now we're going to get really off-topic. ;) > > The only one that I've been able to scrape up for now was the infamous > DOM Inspector. You really want to be looking at the transaction with the se

Re: [Tutor] Have Python Update Forms

2008-06-06 Thread James
Phenomenal, Kent. I'll poke around and see if I can figure out what kind of communication is going on between the server and the browser and go from there. :) I appreciate your and Alan's help, as always! On Fri, Jun 6, 2008 at 9:37 AM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Fri, Jun 6, 200

[Tutor] (no subject)

2008-06-06 Thread amit sethi
Hi, I am a student new to python . I had a project idea in mind that I want to implement in my break using python . Can anyone give me an idea of libraries available in python for transcribing music and signal processing. Good tutorials with examples would also help. If any body has experience in

Re: [Tutor] Error-handling for a large modular program

2008-06-06 Thread bob gailer
Shrutarshi Basu wrote: the front end of the program is essentially a parser for a moderately complex configuration language, which means that there are a variety of syntax/semantics errors possible. In my experience with parsers there is little or no need for try-except blocks. Could you give us

[Tutor] TurtleWorld Windows issue

2008-06-06 Thread odispam
I am working through _Think Python_ in spare time at work on a Windows machine (so another OS is not an option). I can't get TurtleWorld to run as described in the book (http://www.greenteapress.com/thinkpython/html/book005.html). I'm replicating the issue described here: http://www.gamedev.net/

Re: [Tutor] TurtleWorld Windows issue

2008-06-06 Thread W W
You could always use a linux live cd ;) Heck some of them can even emulate linux in windows! That's my best solution in the short time I've got. HTH, Wayne On Fri, Jun 6, 2008 at 1:26 PM, <[EMAIL PROTECTED]> wrote: > I am working through _Think Python_ in spare time at work on a Windows > machi

[Tutor] how to read a program

2008-06-06 Thread Anthony Parks
ive been using diveintopython to learn how to write programs but i want to sink my teeth into reading some bigger programs, to study them and maybe pick up something new, especially from programs where the development isn't well document (unlike something like pidgin's development documentation wh

Re: [Tutor] TurtleWorld Windows issue

2008-06-06 Thread Kent Johnson
On Fri, Jun 6, 2008 at 2:26 PM, <[EMAIL PROTECTED]> wrote: > I am working through _Think Python_ in spare time at work on a Windows > machine (so another OS is not an option). I can't get TurtleWorld to run > as described in the book Try using TurtleWorld without IDLE. IDLE is a Tkinter program

[Tutor] Batch insert

2008-06-06 Thread Mohit Jain
Hello all, I am new to python. I wanted to know how can i do batch insert into Mysql using python. A code snippet would be really helpful. Thanks a lot Mohit ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] [Fwd: Re: Intercepting methods calls]

2008-06-06 Thread Andreas Kostyrka
On Friday 06 June 2008 18:19:23 you wrote: > On Thu, June 5, 2008 9:39 am, Andreas Kostyrka wrote: > > On Thursday 05 June 2008 00:18:55 Marilyn Davis wrote: > >> You listed __init__ and I'm not sure I know what you mean. > > > > Well, __init__ can assign attributes to the instance that are callabl

Re: [Tutor] how to read a program

2008-06-06 Thread Alan Gauld
"Anthony Parks" <[EMAIL PROTECTED]> wrote which is insanely detailed). are there any specific pieces of software written in python you would recommend a novice to read? programs that illustrate python at its finest, beautiful stretches of code? thanks for any help You could start with the

Re: [Tutor] Batch insert

2008-06-06 Thread Alan Gauld
"Mohit Jain" <[EMAIL PROTECTED]> wrote I am new to python. I wanted to know how can i do batch insert into Mysql using python. A code snippet would be really helpful. If you can do it in SQL then it should be possible. Do you know the SQL commands? Have you tried using them like any other SQ

Re: [Tutor] TurtleWorld Windows issue

2008-06-06 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote machine (so another OS is not an option). I can't get TurtleWorld to run as described in the book (http://www.greenteapress.com/thinkpython/html/book005.html). I know nothing of TurtleWorld but... from TurtleWorld import * TurtleWorld() No new window appears,

Re: [Tutor] [Fwd: Re: Intercepting methods calls]

2008-06-06 Thread Marilyn Davis
On Fri, June 6, 2008 3:37 pm, Andreas Kostyrka wrote: > On Friday 06 June 2008 18:19:23 you wrote: > >> On Thu, June 5, 2008 9:39 am, Andreas Kostyrka wrote: >> >>> On Thursday 05 June 2008 00:18:55 Marilyn Davis wrote: >>> You listed __init__ and I'm not sure I know what you mean. >>> >

Re: [Tutor] how to read a program

2008-06-06 Thread Anthony Parks
that sounds like good advice, but i think what i meant is something along the lines of: "what are particularly great programs to *read*. not like great software, but great source code. somewhat like treating source code as a literature, what are the classics? On Fri, Jun 6, 2008 at 7:16 PM, Alan

Re: [Tutor] how to read a program

2008-06-06 Thread Marilyn Davis
This is pretty cool: http://aspn.activestate.com/ASPN/Python/Cookbook/ Marilyn Davis On Fri, June 6, 2008 4:34 pm, Anthony Parks wrote: > that sounds like good advice, but i think what i meant is something along > the lines of: > > "what are particularly great programs to *read*. not like grea

Re: [Tutor] how to read a program

2008-06-06 Thread Prosenjit Kundu
Marilyn Davis wrote: This is pretty cool: http://aspn.activestate.com/ASPN/Python/Cookbook/ Marilyn Davis On Fri, June 6, 2008 4:34 pm, Anthony Parks wrote: that sounds like good advice, but i think what i meant is something along the lines of: "what are particularly great programs to *