Re: [Tutor] OO re-factoring (was Pythonese/Efficiency/Generalesecritique)

2005-06-08 Thread Alan G
You've certainly given me a mouthful to chew on :~) I was thinking more in terms of OOP is about code reuse Thats not a good approach to OOP. Code reuse is often as easy to achieve using modules and functions. As Javier said OOP is aboiut things - objects. You need to build your whole design

Re: [Tutor] remove from python

2005-06-08 Thread Liam Clarke
Personally, I find the Digest a bit harder to use, so I just use my gmail account for the list, and use filters to automatically tag the Python list, and gmail's so ludicrously big, you don't really notice that you have 2208 messages stored. Then they're easy to search through as well. Liam

Re: [Tutor] keylogger

2005-06-08 Thread Liam Clarke
Out of curiosity, why the interest in logging keys? I'm also pretty sure that a Python programme couldn't run as quietly as most keyloggers tend to...On 6/8/05, Vladimir Rasputin [EMAIL PROTECTED] wrote:Can i make a keylogger using python?has anyone ever made one/tryed to make one? does any one

Re: [Tutor] Tutor Digest, Vol 16, Issue 22

2005-06-08 Thread tangyuejun
I am looking for a web scraping sample.who can help me? Best Regards Adam Tang Myetone info.tech. Co.,Ltd. Tel: (021)53852321-801 Fax:(021)53852320 Mail: [EMAIL PROTECTED] Msn:[EMAIL PROTECTED] Skype:tangyuejun Address: 403 Room,18 Xichang Road(M) Ganglu Plaza Shanghai,China Post Code: 21

Re: [Tutor] Web scraping

2005-06-08 Thread Kent Johnson
[EMAIL PROTECTED] wrote: I am looking for a web scraping sample.who can help me? Take a look at Beautiful Soup http://www.crummy.com/software/BeautifulSoup/ Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] OO re-factoring (was Pythonese/Efficiency/Generalese critique)

2005-06-08 Thread Kent Johnson
Lee Cullens wrote: I was thinking of extending the learning exercise by re-factoring it as an OO approach, since it would contain a minimum altered method. Being new to OOP also though, I'm confusing myself with how that would be best accomplished. My thinking is that class/subclass

Re: [Tutor] OO re-factoring (was Pythonese/Efficiency/Generalese critique)

2005-06-08 Thread Liam Clarke
Path looks good. Cheers Kent. On 6/8/05, Kent Johnson [EMAIL PROTECTED] wrote: Lee Cullens wrote: I was thinking of extending the learning exercise by re-factoring it as an OO approach, since it would contain a minimum altered method. Being new to OOP also though, I'm confusing myself with how

Re: [Tutor] Web scraping

2005-06-08 Thread Liam Clarke
An alternative win32 approach is - Use something like IEC http://www.mayukhbose.com/python/IEC/index.php or PAMIE http://pamie.sourceforge.net/, or you can use the python win32 extensions http://starship.python.net/crew/skippy/win32/Downloads.html and use IE navigate through the DOM... but PAMIE

Re: [Tutor] OO re-factoring (was Pythonese/Efficiency/Generalesecritique)

2005-06-08 Thread Lee Cullens
Javier, Allen, Kent, Liam Hmm, I think I understand what you all are saying. Basically, my familiar take on code reuse (the function model) as used in the utility is essentially not rewriting any more of a block than what is different, as opposed to do all blocks with convoluted switching.

Re: [Tutor] OO re-factoring (was Pythonese/Efficiency/Generalesecritique)

2005-06-08 Thread Liam Clarke
Hey Lee, I can empathise with your learning of OO. Once you get past the buzz, it's just a way of designing programmes that's good for certain situations. Very useful for things like writing text validators for GUIs as an abstract class and subclassing all windows from that to inherit the

[Tutor] FW: Tutor Digest, Vol 16, Issue 21, #3 Text problem

2005-06-08 Thread EUGENE ASTLEY
I tried your suggestion but it does not work for me. I get a syntax error at use of the first question mark when trying it in Idle. When I try it from the desktop, it just flashes a black screen and returns me to the desktop. What is the question mark used for? I looked up the use of % and the

[Tutor] Just a Python formatting question

2005-06-08 Thread Kristiano Ang
Hey guys, I'm pretty new to Python (using Mac Python 2.4.1) and have a question with formatting that I hope you can help me with. Sometimes, when I write code with Python (copied off tuts.), I get error messages and highlights of the word else. Take for example: #plays the guessing game

Re: [Tutor] Just a Python formatting question

2005-06-08 Thread Ertl, John
Kristiano, It is sometimes hard to tell the indentions in an email but it looks like your last line print Just right has a space in front of it. Python does not know what logical block the indented part belongs to. John Ertl -Original Message- From: Kristiano Ang [mailto:[EMAIL

Re: [Tutor] #3 Text problem

2005-06-08 Thread Alan G
Subject: [Tutor] FW: Tutor Digest, Vol 16, Issue 21, #3 Text problem Its best not to reply to the list digest header mail! If for no other reason than the fact you send the whole digest out with your mail which isn't very friendly for those still using slow dial up! :-) I tried your

[Tutor] long int in list as argument for seek() function

2005-06-08 Thread lmac
Hi there, i want to use an long int from an list which i got from my function find_lineno(). But i got this error and i don't understand why i can not use this long as an argument. Where do i find a good documentation on errors so that i complete understand what the heck is going on. Many

Re: [Tutor] Text problem

2005-06-08 Thread Kent Johnson
EUGENE ASTLEY wrote: I tried your suggestion but it does not work for me. I get a syntax error at use of the first question mark when trying it in Idle. When I try it from the desktop, it just flashes a black screen and returns me to the desktop. What is the question mark used for? Somehow

Re: [Tutor] long int in list as argument for seek() function

2005-06-08 Thread Kent Johnson
lmac wrote: Hi there, i want to use an long int from an list which i got from my function find_lineno(). But i got this error and i don't understand why i can not use this long as an argument. You have the arguments to file.seek() reversed. Where do i find a good documentation on errors

Re: [Tutor] keylogger

2005-06-08 Thread Liam Clarke
I still want to know why you want to write one, however.On 6/9/05, Vladimir Rasputin [EMAIL PROTECTED] wrote:No i was just wondering which language would be a good one to make a keylogger with. Could you reconmend the one that would be the easiest?From: Liam Clarke [EMAIL PROTECTED]Reply-To: Liam

Re: [Tutor] remove from python

2005-06-08 Thread Lee Harr
how can i get my email address removed, I'm receiving way too many emails You have a few options. You may want to see if just turning the Tutor mailing list setting to Digest Mode might help. You can do this through: http://mail.python.org/mailman/options/[EMAIL PROTECTED] Personally, I