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.
___
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
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
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)
&
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
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
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
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:
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:
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
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
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
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
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
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
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,
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
/Kind regards
Michael B. Arp Sørensen
Programmer / BOFH
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/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
801 - 819 of 819 matches
Mail list logo