[Tutor] Dynamically named objects

2007-12-27 Thread Michael Bernhard Arp Sørensen
hello world") Can this be done? If not, is there a work around or some design pattern for this situation? -- 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] 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 hav

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

Re: [Tutor] Learning about callbaks

2008-01-01 Thread Michael Bernhard Arp Sørensen
1(x): >print 'f1: %s' % x > >def f2(x): >print 'f2: %s' % x > >def use_them(funcs): >for func in funcs: >func('abcd') > >def test(): >funcs = [f1, f2] >use_them(funcs) &

Re: [Tutor] Learning about callbaks

2008-01-02 Thread Michael Bernhard Arp Sørensen
wanted to understand how a "parent" object could send a callback to a "child" object, and now I got it. Feel free to comment on this, please. Thank you for your patience, Alan. -- Med venlig hilsen/Kind regards Michael B. Arp Sørensen Programmør / BOFH I am /ro

Re: [Tutor] Learning about callbaks

2008-01-02 Thread Michael Bernhard Arp Sørensen
nks a lot for this test of my humility and for your effort. -- 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 maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Learning about callbaks

2008-01-02 Thread Michael Bernhard Arp Sørensen
ye) It took me a couple of minutes to understand your challenge. :-) Then I remembered that "ui" is instantiated inside "g" and therefore callable with the right parameter. Thank you very, very much. I enjoy a good challenge. -- Med venlig hilsen/Kind regards Michael

[Tutor] A bit about python culture

2008-02-07 Thread Michael Bernhard Arp Sørensen
local user groups choose their own third level domain name. Any ideas are welcome. -- Kind regards Michael B. Arp Sørensen Programmer / BOFH I am /root and if you see me laughing you better have a backup. ___ Tutor maillist - Tutor@python.org http:

[Tutor] A bit about python culture

2008-02-07 Thread Michael Bernhard Arp Sørensen
local user groups choose their own third level domain name. Any ideas are welcome. -- Kind regards Michael B. Arp Sørensen Programmer / BOFH I am /root and if you see me laughing you better have a backup. ___ Tutor maillist - Tutor@python.org http:

[Tutor] Tread or threading

2008-02-16 Thread Michael Bernhard Arp Sørensen
write each method as a threading class. It doesn't make sense yet. Please help me. Thanks in advance. -- 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 maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] ABout distinquishing elements in a string/regular expr

2006-09-07 Thread Xiao Yu Michael Yang
Hi tutors, I am currently working on a project that identifies languages of html documents, using Python, of course. Just wondering, given a string: str = " title this is french 77 992 / " what is the python expression for: 1. r = return_anything_that's_within<> (str), i.e. it should giv

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

2008-08-28 Thread Michael Bernhard Arp Sørensen
Hi again. Aparantly it was as simple as: os.system("nohup /code/daemon.py &") I know it's more correct to write a real deamon startet from a runlevel, but that will have to wait until later. :-) Med venlig hilsen/Kind regards Michael B. Arp Sørensen Programmør / BOFH &quo

[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

[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

[Tutor] Python debugger

2009-01-09 Thread Michael Bernhard Arp Sørensen
tframe() p f.f_locals.items() It's not exacly pretty in its output, but it's better than nothing. Can this be done in a smarter way? -- Kind regards Michael B. Arp Sørensen Programmer / BOFH "Ride out and meet them." ___ Tutor mail

Re: [Tutor] Python debugger

2009-01-09 Thread Michael Bernhard Arp Sørensen
Hi. Thanks for the input. Your way of doing it is simpler and possible to use as an alias in pdb. I can't use a graphical debugger because i mostly code python over ssh on remote servers in my company. Thanks anyway. It was actually helpfull. :-) /Michael On Fri, Jan 9, 2009 at 12:38 PM,

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

[Tutor] Killing a socketserver

2009-02-05 Thread Michael Bernhard Arp Sørensen
/Kind regards Michael B. Arp Sørensen Programmer / BOFH ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Schechter Function in python

2015-08-04 Thread Michael Roberts via Tutor
using valid python mathematical expressions: Michael Roberts | astrobox.io | University College London ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

<    4   5   6   7   8   9