[Tutor] subclass question

2009-12-19 Thread David Perlman
If I make a subclass of a built-in class, like this: class mylist(list): def __init__(self): list.__init__(self) Then it is valid for me to do this: >>> x=mylist() >>> x.hello=3 >>> But I can't do this: >>> y=list() >>> y.hello=3 Traceback (most recent call last): File "", line

Re: [Tutor] Keylogger

2009-12-19 Thread Alan Gauld
"james kahn" wrote I am currently developing a keylogger in python 2.5, In which OS, this is very likely going to be OS specific. I have developed a basic keyloger which logs basic keystrokes but I also want it to log URLS What do you mean log URLs? You mean as users type them? Where,

Re: [Tutor] (no subject)

2009-12-19 Thread Alan Gauld
"Richard Hultgren" wrote I am a newcomer, I guess I'm have trouble thinking like a computer yet. My question is: in this program: resp = raw_input("What's your name? ") print "Hi, %s, nice to meet you" % resp does %s mean 'place the user response here' and secondly what and why do I put

Re: [Tutor] (no subject)

2009-12-19 Thread Lie Ryan
On 12/19/2009 11:34 PM, Richard Hultgren wrote: Hello, I am a newcomer, I guess I'm have trouble thinking like a computer yet. My question is: in this program: resp = raw_input("What's your name? ") >>> print "Hi, %s, nice to meet you" % resp does %s mean 'place the user response here' N

Re: [Tutor] No beep from winsound.Beep(500, 500)

2009-12-19 Thread ALAN GAULD
>> That means your windows sound setup is >> faulty somehow, it might be turned off >> in the BIOS... > Alan, did you see Marc Tompkins post suggesting that my 64-bit Vista > OS might be the cause? I didn't notice you were on Vista let alone 64 bit! It could be, I don't trust Vista at all, have

[Tutor] Keylogger

2009-12-19 Thread james kahn
Hi I am currently developing a keylogger in python 2.5, I have developed a basic keyloger which logs basic keystrokes but I also want it to log URLS which is where I am stuck. Could you please help or guide me as to how I can make it log URLS Regards James

Re: [Tutor] No beep from winsound.Beep(500, 500)

2009-12-19 Thread Richard D. Moores
On Sat, Dec 19, 2009 at 03:48, ALAN GAULD wrote: >>> Try >>> echo ^G >>> in a DOS box (ie Control-G) >> >>You mean the command line? >> >> C:\Users\Dick>echo ^G >> >> Nothing. > > You should get a beep - that's what Ctrl-G is, > the Beep character. > > That means your windows sound setup is > faul

[Tutor] (no subject)

2009-12-19 Thread Richard Hultgren
Hello,     I am a newcomer, I guess I'm have trouble thinking like a computer yet. My question is: in this program: >>> resp = raw_input("What's your name? ") >>> print "Hi, %s, nice to meet you" % resp         does %s mean 'place the user response here' and secondly what and why do I pu

Re: [Tutor] No beep from winsound.Beep(500, 500)

2009-12-19 Thread ALAN GAULD
>> Try >> echo ^G >> in a DOS box (ie Control-G) > >You mean the command line? > > C:\Users\Dick>echo ^G > > Nothing. You should get a beep - that's what Ctrl-G is, the Beep character. That means your windows sound setup is faulty somehow, it might be turned off in the BIOS... Alan Gauld Auth

Re: [Tutor] No beep from winsound.Beep(500, 500)

2009-12-19 Thread Richard D. Moores
On Sat, Dec 19, 2009 at 02:36, Marc Tompkins wrote: > Richard -  It works (in Python 2.6, mind you) on my 64-bit Win7 machine, but > I suspect that that may be because of Microsoft's compatibility twiddling on > the back end.  I Googled, and there seem to be a number of reports of people > having

Re: [Tutor] No beep from winsound.Beep(500, 500)

2009-12-19 Thread Marc Tompkins
Richard - It works (in Python 2.6, mind you) on my 64-bit Win7 machine, but I suspect that that may be because of Microsoft's compatibility twiddling on the back end. I Googled, and there seem to be a number of reports of people having trouble with 64-bit Vista and winsound.Beep(). I suspect tha

Re: [Tutor] No beep from winsound.Beep(500, 500)

2009-12-19 Thread Chris Fuller
Something to keep in mind is that the audio output of your computer and the system speaker are independent. Sometimes the BELL character (ACSII 0x07) will sound the system speaker, spending on your OS, drivers, etc. The winsound docs say it's the speaker, which is connected to the motherboard

Re: [Tutor] No beep from winsound.Beep(500, 500)

2009-12-19 Thread Richard D. Moores
On Sat, Dec 19, 2009 at 01:18, Alan Gauld wrote: > > "Richard D. Moores" wrote > > from winsound import Beep > Beep(500, 500) > > Works ok for me. > > I suspect it may be a system setting > > Try > echo ^G > in a DOS box (ie Control-G) You mean the command line? C:\Users\Dick>echo ^

Re: [Tutor] No beep from winsound.Beep(500, 500)

2009-12-19 Thread Alan Gauld
"Richard D. Moores" wrote from winsound import Beep Beep(500, 500) Works ok for me. I suspect it may be a system setting Try echo ^G in a DOS box (ie Control-G) -- Alan Gauld Author of the Learn to Program web site http://www.alan-g.me.uk/