Re: [Freevo-devel] Re: I hate to do this...

2005-11-06 Thread Nicolas Chauvat
Jason Tackaberry wrote: On Sat, 2005-11-05 at 23:51 +0100, Nicolas Chauvat wrote: Do not rely on these too much as they may later on get droped in favor of the list comprehensions above... Python 3 is the target :) (Surely you don't mean lambda, but just reduce/map/filter.) both acc

Re: [Freevo-devel] Re: [Freevo-cvslog] Kaa r891 - in trunk/base/src: notifier

2005-11-06 Thread Jason Tackaberry
On Sun, 2005-11-06 at 12:27 +0100, Dirk Meyer wrote: > But it would be nice to hace a callback when everything is written so > I can close the socket when I'm done. Just curious, when would you use this? Jason. signature.asc Description: This is a digitally signed message part

Re: [Freevo-devel] ipc bug

2005-11-06 Thread Jason Tackaberry
On Sun, 2005-11-06 at 10:34 +0100, Dirk Meyer wrote: > So monitor.id is transfered to the client, monitor itself is not. But > the references work, monitor is not deleted until the client dies. So > somewhere in the code, the object gets lost. Yep, it was a problem on the client side. Should be f

Re: [Freevo-devel] Re: I hate to do this...

2005-11-06 Thread Jason Tackaberry
On Sun, 2005-11-06 at 10:29 +0100, Dirk Meyer wrote: > I know they are planing to remove lambda, but I guess this would break > a lot of code and I still hope they don't do this. Ok, _really_? Removing lambda is crazytalk. Unless they plan on replacing lambda with something less limited. But r

Re: [Freevo-devel] Re: I hate to do this...

2005-11-06 Thread Jason Tackaberry
On Sat, 2005-11-05 at 23:51 +0100, Nicolas Chauvat wrote: > Do not rely on these too much as they may later on get droped in favor > of the list comprehensions above... Python 3 is the target :) (Surely you don't mean lambda, but just reduce/map/filter.) dischi: I told you list comps were better

Re: [Freevo-devel] Re: [Freevo-cvslog] Kaa r891 - in trunk/base/src: notifier

2005-11-06 Thread Jason Tackaberry
On Sun, 2005-11-06 at 12:27 +0100, Dirk Meyer wrote: > Ignore me :) Oh, ok then. :) > But it would be nice to hace a callback when everything is written so > I can close the socket when I'm done. Ok, I'll add that. Jason. signature.asc Description: This is a digitally signed message part

[Freevo-devel] Re: [Freevo-cvslog] Kaa r891 - in trunk/base/src: notifier

2005-11-06 Thread Jason Tackaberry
On Sun, 2005-11-06 at 10:26 +0100, Dirk Meyer wrote: > I guess this belongs into an extra file. Maybe socket.py instead of sockets.py? The raison d'etre for this is that I was hacking a simple network client and needed something like this. At first I found myself duplicating most of the same lo

[Freevo-devel] Re: [Freevo-cvslog] Kaa r891 - in trunk/base/src: notifier

2005-11-06 Thread Dirk Meyer
Dirk Meyer wrote: > Jason Tackaberry wrote: >> Author: tack >> Date: Sun Nov 6 03:15:41 2005 >> New Revision: 891 >> >> Modified: >>trunk/base/src/base/ipc.py >>trunk/base/src/notifier/__init__.py >>trunk/base/src/notifier/sockets.py >> >> Log: >> Notifier-aware socket class > > I gues

[Freevo-devel] ipc bug

2005-11-06 Thread Dirk Meyer
Hi, Tack, can you look at the ipc code, I have a small bug. You can see it by running the test apps for vfs. Start the server and after that start the client (change the path for scanning in it first). You see the following debug message in the client: monitor is id 1 That is wrong. The code do

[Freevo-devel] Re: I hate to do this...

2005-11-06 Thread Dirk Meyer
Nicolas Chauvat wrote: > Dirk Meyer wrote: > >>enhance emacs and rep to enhance sawfish. If you know functional >>languages, using lambda is your first choice. So maybe it is better >>you don't look at lisp or you will starting using map and lambda like >>I do. ;) >> >> > Do not rely on these too

[Freevo-devel] Re: [Freevo-cvslog] Kaa r891 - in trunk/base/src: notifier

2005-11-06 Thread Dirk Meyer
Jason Tackaberry wrote: > Author: tack > Date: Sun Nov 6 03:15:41 2005 > New Revision: 891 > > Modified: >trunk/base/src/base/ipc.py >trunk/base/src/notifier/__init__.py >trunk/base/src/notifier/sockets.py > > Log: > Notifier-aware socket class I guess this belongs into an extra file.