Python program that validates an url against w3c markup validator

2006-11-28 Thread yaru22
I'd like to create a program that validates bunch of urls against the w3c markup validator (http://validator.w3.org/) and store the result in a file. Since I don't know network programming, I have no idea how to start coding this program. I was looking at the python library and thought urllib or

What does mod_python.publisher handler do?

2006-09-03 Thread yaru22
I was reading Chapter 6.1 in mod_python manual at www.python.org. The manual simply says: The publisher handler is a good way to avoid writing your own handlers and focus on rapid application development. I still don't understand what this publisher handler is for. Can someone elaborate the abo

a question about "return"

2006-07-03 Thread yaru22
In one of the examples in the book I'm reading, it says: def __init__(self): ... ... ... return It has nothing after "return". I expected it to have some number like 0 or 1. What does it mean to have nothing after return? Why do we even include "return" if we are not putting any

what is pygtk.require("2.0") for?

2006-06-27 Thread yaru22
when I read a book, it just said we need to do import pygtk pygtk.require("2.0") import gtk in order to import gtk modules What is that pygtk.require("2.0") command for? -- http://mail.python.org/mailman/listinfo/python-list

debugging in eclipse+pydev

2006-06-18 Thread yaru22
Hi. I'd like to know how to debug in eclipse+pydev. In the menu, "Pydev Debug", there's Start Debug Server option, but I don't know how to use it. Few questions I have about debugging are: 1) how do i set a breakpoints in pydev? 2) how do i execute the code line by line? I mean... step into, st

infinite loop executed in emacs

2006-06-10 Thread yaru22
Hi. I'm using python-mode in emacs. I happened to execute the code that contains an infinite loop. The system is hung and it doesn't stop at all. lol How do I manually stop it in emacs? For Eclipse, in java programming, if i happen to fall into an infinite loop, i could juse press ctrl+c to st

what does %u mean?

2006-06-08 Thread yaru22
Hi. I just started learning python. In the exercise in my book, it asks me to try print "%u" % (-5) I'm wondering what this %u mean? Thank you. Regards, Brian. -- http://mail.python.org/mailman/listinfo/python-list