Re: [Tutor] Active Python

2005-02-18 Thread Terry Carroll
On Fri, 18 Feb 2005, Bill Mill wrote: > How do you live without cygwin? I don't. I have it installed, too. But Agent Ransack is more convenient. If it wasn't free, I'd pay for it. It's primarily to search by filename, but the grep-like capability is a nice plus. _

Re: [Tutor] Active Python

2005-02-18 Thread Bill Mill
On Fri, 18 Feb 2005 17:20:03 -0800 (PST), Terry Carroll <[EMAIL PROTECTED]> wrote: > On Thu, 17 Feb 2005, Jeff Shannon wrote: > > > On Thu, 17 Feb 2005 15:54:43 -0800 (PST), Terry Carroll <[EMAIL PROTECTED]> > > wrote: > > > > Interesting -- I prefer the CHM (Windows helpfile), because it's > >

Re: [Tutor] Active Python

2005-02-18 Thread Terry Carroll
On Thu, 17 Feb 2005, Jeff Shannon wrote: > On Thu, 17 Feb 2005 15:54:43 -0800 (PST), Terry Carroll <[EMAIL PROTECTED]> > wrote: > > > > I prefer the HTML, because I can then run searches against it from > > outside the help system. > > Interesting -- I prefer the CHM (Windows helpfile), becau

Re: [Tutor] Help with error handling in a while loop

2005-02-18 Thread Mike Bell
I haven't tried the code, but it looks like you need to increment on connection failures, too. I think it's more pythonic to iterate over a range, as in the following for test_port in range(start_port, end_port) but it would suffice to just move the start_port+=1 outside of the try _

Re: [Tutor] DB design

2005-02-18 Thread Victor
Liam Clarke wrote: Anyway, why don't you tell us more about what you are trying to do and we can give better suggestions. Kent Database organised - Client details Jobs Finances | | |

[Tutor] Help with error handling in a while loop

2005-02-18 Thread Mark Kels
Hi all. I'm trying to build a simple port scanner (just to learn sockets). here is the code (doesn't work) : import socket sk=socket.socket(socket.AF_INET, socket.SOCK_STREAM) host=raw_input("Enter name of host to scan: ") start_port=input("Enter the start port: ") end_port=input("Enter the end por

Re: [Tutor] help with HTMLParseError

2005-02-18 Thread Kent Johnson
Peter Kim wrote: I'm using HTMLParser.py to parse XHTML and invalid tag is throwing an exception. How do I handle this? My understanding is that HTMLParser is not very forgiving of badly formed HTML. You might want to look at alternatives. Here are a few: http://www.crummy.com/software/BeautifulS

Re: [Tutor] Class in a class

2005-02-18 Thread Kent Johnson
Liam Clarke wrote: Hi Kent, So the layering is GUI - user interaction Application functionality CbDao - application-specific database access DbAccess - generic database access, easy to use JDBC connection - raw database access, not so easy to use This sounds a lot like what I'm aiming for in a

Re: [Tutor] help with HTMLParseError

2005-02-18 Thread Sean Perry
Peter Kim wrote: I'm using HTMLParser.py to parse XHTML and invalid tag is throwing an exception. How do I handle this? 1. Below is the faulty markup. Notice the missing >. Both Firefox and IE6 correct automatically but HTMLParser is less forgiving. My code has to be able to treat this graceful

[Tutor] Re: Class in a class

2005-02-18 Thread Andrei
Luis N gmail.com> writes: > Does it make sense to do this: > > In [2]: class AB: >...: pass > In [3]: a = AB() > In [4]: a > In [5]: class BC: >...: def __init__(self, foo): >...: self.foo = foo > In [6]: b = BC(a) > In [7]: b.foo This case is not that different from