[Tutor] Making a sound

2010-07-31 Thread Michael Bernhard Arp Sørensen
a file and play it afterwards. Preferably it should be something from PYPI. Any suggestions? Thanks in advance. Kind regards Michael B. Arp Sørensen Programmer / BOFH "If you want to enter my network while I'm out, you can find my SSH-key under my mouse mat" - Mich

[Tutor] Kill a socket doing a recvfrom

2010-01-13 Thread Michael Bernhard Arp Sørensen
t, you can find my SSH-key under my mouse mat" - Michael Bernhard Arp Sørensen ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Find a good linux distribution with python.

2009-05-25 Thread Michael Bernhard Arp Sørensen
good linux distro contains all the great modes for Emacs and the newest version of Emacs and Python. Thank you all very much. Med venlig hilsen/Kind regards Michael B. Arp Sørensen Programmer / BOFH "If you want to enter my network while I'm out, you can find my SSH-key under my mouse m

[Tutor] Find a good linux distribution with python.

2009-05-24 Thread Michael Bernhard Arp Sørensen
k while I'm out, you can find my SSH-key under my mouse mat" - Michael Bernhard Arp Sørensen ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Killing a socketserver

2009-02-05 Thread Michael Bernhard Arp Sørensen
Geeting, my masters. How do I kill/shutdown a socket server running in its own thread either from handle() or from outside of the tread? Any thing will do. It's python version 2.5.2, so the newer shutdown method in version 2.6 does not work here. Thanks in advance. -- Med venlig hilsen/Kind re

Re: [Tutor] Python debugger

2009-01-10 Thread Michael Bernhard Arp Sørensen
I do that from time to time. Thanks anyway. I got what I needed. :-) /Michael On Fri, Jan 9, 2009 at 3:14 PM, Kent Johnson wrote: > On Fri, Jan 9, 2009 at 7:36 AM, Michael Bernhard Arp Sørensen > wrote: > > > I can't use a graphical debugger because i mostly code python ove

Re: [Tutor] Python debugger

2009-01-09 Thread Michael Bernhard Arp Sørensen
Kent Johnson wrote: > On Fri, Jan 9, 2009 at 3:27 AM, Michael Bernhard Arp Sørensen > wrote: > > Hi there. > > > > I've just started using the python debugger and I wonder how I could have > > lived without it earlier. > > > > I just wonder if t

[Tutor] Python debugger

2009-01-09 Thread Michael Bernhard Arp Sørensen
Hi there. I've just started using the python debugger and I wonder how I could have lived without it earlier. I just wonder if there is a smarter way to show what all the variables contain in any given point in the debugger. I'm using this approach: import sys f = sys._getframe() p f.f_locals.it

[Tutor] Python on Sony Ericsson phones

2008-11-15 Thread Michael Bernhard Arp Sørensen
Hi there. Does any of you know if it's possible to run python on newer Sony Ericsson phones? I'm thinking of buying the C905 phone. Its a knock out if I can't run python on that phone. My older Nokia N73 can run python 2.2 as far as I know. Med venlig hilsen/Kind regards Michael B. Arp Sørensen

[Tutor] Calling an external program/daemon that doesn't exit/return

2008-08-28 Thread Michael Bernhard Arp Sørensen
Hi there. I'm trying to find some info about starting a program from python. I just want to start it and move on. The program will not end until reboot. Any clues? Med venlig hilsen/Kind regards Michael B. Arp Sørensen Programmør / BOFH "Ride out and meet them." ___

Re: [Tutor] Calling an external program/daemon that doesn't exit/return

2008-08-28 Thread Michael Bernhard Arp Sørensen
t;Ride out and meet them." On Thu, Aug 28, 2008 at 1:06 PM, Michael Bernhard Arp Sørensen < [EMAIL PROTECTED]> wrote: > Hi there. > > I'm trying to find some info about starting a program from python. I just > want to start it and move on. The program will not end unt

[Tutor] Tread or threading

2008-02-16 Thread Michael Bernhard Arp Sørensen
Hi there. I've been reading in books and homepages about threads. Apparently, "threading" is better than "thread", right? I've been trying to write a simple proof of concept code using "treading" inside a class. It was easely done with "thread", but it was a lot harder with "threading". I want to

[Tutor] A bit about python culture

2008-02-07 Thread Michael Bernhard Arp Sørensen
Greetings Masters. I was wondering if there's a well know word for python programmers, that is usable as a domain name. Unfortunately, "pug.dk", as in "python user group, Denmark", is unavailable here in Denmark. I hope to acquire a national domain name and let future local user groups choose the

[Tutor] A bit about python culture

2008-02-07 Thread Michael Bernhard Arp Sørensen
Greetings Masters. I was wondering if there's a well know word for python programmers, that is usable as a domain name. Unfortunately, "pug.dk", as in "python user group, Denmark", is unavailable here in Denmark. I hope to acquire a national domain name and let future local user groups choose the

Re: [Tutor] Learning about callbaks

2008-01-02 Thread Michael Bernhard Arp Sørensen
Hi. On Jan 2, 2008 6:36 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > Can you modify the program *without modifying the classes* to use an > ordinary function as the callback? Say this goodbye function: > > def goodbye(): > print "goodbye world" > > This should not require more than 5 lines of

Re: [Tutor] Learning about callbaks

2008-01-02 Thread Michael Bernhard Arp Sørensen
Hi again. On Jan 2, 2008 2:25 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > I did some research, reading and test last night and I finally got > > it > > working. > > Sorry, but you didn't! However you are very nearly there... > Darn. :-( I've read what to wrote about the *parentheses*. I see w

Re: [Tutor] Learning about callbaks

2008-01-02 Thread Michael Bernhard Arp Sørensen
Greetings, my master. I think you need to strip back and simplify, it looks like > you may have been reading too many different resources > and incorporated some ideas without really understanding > what they do and why. I'm humbled by your insight. This is absolutely true. I did some research,

Re: [Tutor] Learning about callbaks

2008-01-01 Thread Michael Bernhard Arp Sørensen
Greetings, my masters. This is somewhat difficult to transfer to my program with 2 classes/objects. All examples I've seen is not for more than one instance of a single object. I use more than one class in my program. I have a game class and a menu class. When the user chooses "quit" in the menu,

Re: [Tutor] Learning about callbaks

2007-12-29 Thread Michael Bernhard Arp Sørensen
vor On Dec 29, 2007 6:39 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Michael Bernhard Arp Sørensen" <[EMAIL PROTECTED]> > wrote > > > I want to learn about callbacks because we use it at work in our > > software. > > Can you be more specific

[Tutor] Learning about callbaks

2007-12-29 Thread Michael Bernhard Arp Sørensen
Hi there. I want to learn about callbacks because we use it at work in our software. I there a short "hello world"-like version of a callback example? -- Med venlig hilsen/Kind regards Michael B. Arp Sørensen Programmør / BOFH I am /root and if you see me laughing you better have a backup. ___

[Tutor] Dynamically named objects

2007-12-27 Thread Michael Bernhard Arp Sørensen
Hi there. I need to instantiate objects on the fly and put the in a list/dict for later use. I was thinking of this: objectlist = [] newobjectname = "object1" classname = "class1" + "()" objectlist.append(newobjectname = eval(classname) ) objectlist[0].method("hello world") Can this be done? If