[Tutor] OOP fundamentals

János Juhász janos.juhasz at VELUX.com
Tue Sep 20 08:26:46 CEST 2005


Hi Ed,

last month I have found this beautifull sample about threads and sockets:
      http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/114642

It helped me to a lot to understand how these can be used together on an
OOP way.
It helped me much better, than any hypothetical OOP samples about cars and
wheels, those really usefull just for programming teachers who never made
any real programm, but has to tell something about why OOP is good to
learn.
It was so nice to read and understand a so clean code.
Probably it can help your understanding eighter.
The other place where I feel OOP very natural is using wxPython.

There is another recipe about portscanning with OOP and threading:
      http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286240


Yours sincerely,
______________________________
János Juhász



> Message: 5
> Date: Mon, 19 Sep 2005 17:01:30 -0400
> From: Ed Hotchkiss <edhotchkiss at gmail.com>
> Subject: Re: [Tutor] OOP fundamentals
> To: Danny Yoo <dyoo at hkn.eecs.berkeley.edu>
> Cc: Tutor <tutor at python.org>
> Message-ID: <d1bf1fa2050919140120325ee1 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"

> Thanks Danny! Tommorrow I am off to get "Programming for Python, 2nd
> edition" and learn everything - all of it, before I even bother with
> Sockets. Afterall, I want python for EVERYTHING not just sockets and inet
> based scripts/applications.
> I realized that I need to take a step back, make port scanner a class
that
> does nothing but really help me learn classes, then insert threading,
then
> once that works, insert the actual sockets into their respective class
def
> etc ... Thanks again ...
> Next time I post, I'll have something either more abstract/theory
question,
> or something that isn't quite so simple!
> Thanks again everyone thats been helping me out especially danny!

> -edward
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mail.python.
> org/pipermail/tutor/attachments/20050919/41d24153/attachment.html



More information about the Tutor mailing list