what does %u mean?
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
infinite loop executed in emacs
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 stop it. What keys do I have to press in emacs? -- http://mail.python.org/mailman/listinfo/python-list
debugging in eclipse+pydev
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, step over, and so on... When I searched on http://www.fabioz.com/pydev/, I found that Run/Debug Step Into F5 Debugging Run/Debug Step Over F6 Debugging Run/Debug Step Return F7 Debugging Run/Debug Resume F8 Debugging However, Starting Debug Server and pressing F5, F6, F7 didn't do those functions. Can anyone give me a small tutorial as to how to debug in Eclipse + Pydev please? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list
what is pygtk.require("2.0") for?
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
a question about "return"
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 value after? Thanks :) Regards, Brian -- http://mail.python.org/mailman/listinfo/python-list
What does mod_python.publisher handler do?
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 above phrase with some examples please? Thanks in advance. Regards, Brian -- http://mail.python.org/mailman/listinfo/python-list
Python program that validates an url against w3c markup validator
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 urllib2 may be used to make this program work. But I don't know how to send my urls to the w3c validator and get the result. Can anyone help me with this? or at least give me a hint? Thank you so much. -- http://mail.python.org/mailman/listinfo/python-list