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

2005-11-10 Thread Jason Tackaberry
On Thu, 2005-11-10 at 14:48 +0100, Dirk Meyer wrote: > If you remove lambda and/or map, it is not functional anymore. List comprehensions aren't going away, so at least you don't lose the functionality of map and filter. You lose reduce though, but I'm not prepared to shed a tear for that, since

Re: [Freevo-devel] Re: I hate to do this... on the lighter side.

2005-11-10 Thread Karl Lattimer
How about lithp LITHP ... This otherwise unremarkable language is distinguished by the absence of an "s" in its character set. programmers and users must substitute "TH". LITHP is said to be useful in proceththing lithtth. ;) K --- SF

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

2005-11-10 Thread Dirk Meyer
Nicolas Chauvat wrote: > Dirk Meyer wrote: > >>I know lisp and like it. So I also like lambda, map and friends. OK, >>they don't belong into an oo language, but they are nice to have. >> >> > [discussing definitions] > > Python is more than OO. SmallTalk and Java are OO. But you can write > three

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

2005-11-09 Thread Nicolas Chauvat
Dirk Meyer wrote: I know lisp and like it. So I also like lambda, map and friends. OK, they don't belong into an oo language, but they are nice to have. [discussing definitions] Python is more than OO. SmallTalk and Java are OO. But you can write three-lines scripts in python and it will f

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

2005-11-08 Thread Dirk Meyer
Nicolas Chauvat wrote: > Jason Tackaberry wrote: > >> exit_error = Callback(sys.exit, 1) >> >>Now if we call exit_error(), sys.exit(1) gets called. Or, if we call >>exit_error(foo), that expands to sys.exit(1, foo). >> >> > No sure this is the right place where to discuss this, but the above >

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

2005-11-08 Thread Nicolas Chauvat
Jason Tackaberry wrote: exit_error = Callback(sys.exit, 1) Now if we call exit_error(), sys.exit(1) gets called. Or, if we call exit_error(foo), that expands to sys.exit(1, foo). No sure this is the right place where to discuss this, but the above sounds a lot like function currying whic

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

2005-11-08 Thread Lakin Wecker
On Tue, 2005-08-11 at 00:05 -0800, Cliff Wells wrote: > On Sun, 2005-11-06 at 09:35 -0500, Jason Tackaberry wrote: > > 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

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

2005-11-08 Thread Cliff Wells
On Sun, 2005-11-06 at 09:35 -0500, Jason Tackaberry wrote: > 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. Unl

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

2005-11-07 Thread Jason Tackaberry
On Mon, 2005-11-07 at 15:56 +0100, Toni Alatalo wrote: > ok. perhaps you could use a function-factory like callback(), to which you > can > give a callable, and it returns that callable in such a wrapping that eats > all arguments? We do already have a Callback() class, although it won't quite

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

2005-11-07 Thread Toni Alatalo
On Monday 07 November 2005 15:04, Jason Tackaberry wrote: > On Mon, 2005-11-07 at 15:04 +0100, Toni Alatalo wrote: > > > argument you don't need: signal.connect(lambda dummy: sys.exit), or > > why can't you just do signal.connect(sys.exit) ? > Because in the example I gave, the signal provides an a

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

2005-11-07 Thread Jason Tackaberry
On Mon, 2005-11-07 at 15:04 +0100, Toni Alatalo wrote: > On Monday 07 November 2005 14:36, Jason Tackaberry wrote: > > argument you don't need: signal.connect(lambda dummy: sys.exit), or > > why can't you just do signal.connect(sys.exit) ? Because in the example I gave, the signal provides an arg

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

2005-11-07 Thread Toni Alatalo
On Monday 07 November 2005 14:36, Jason Tackaberry wrote: > argument you don't need: signal.connect(lambda dummy: sys.exit), or why can't you just do signal.connect(sys.exit) ? surely a function is callable? why have an unnamed function for something which already is a named function.. > Jason.

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

2005-11-07 Thread Jason Tackaberry
On Mon, 2005-11-07 at 11:11 +0100, Dirk Meyer wrote: > Other stuff on the 'breaking' list: I don't mind breakage, as long as there's a migration path. Some version should support both old and new syntaxes (or warn when you use something deprecated), so that you have time to migrate old code, and

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

2005-11-07 Thread Dirk Meyer
Jason Tackaberry wrote: > 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 wi

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: 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

[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

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

2005-11-05 Thread Nicolas Chauvat
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 much as they may later on get droped i

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

2005-10-23 Thread Dirk Meyer
Jason Tackaberry wrote: > So I would revise your statement to say "all procedural languages are > basically the same thing." Prolog, being a logic language, is > definitely a different beast. Or functional languages like Scheme. > Learning Scheme has been on my to-do list for far longer than I ca

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

2005-10-21 Thread Jason Tackaberry
On Fri, 2005-10-21 at 23:07 +0100, Karl Lattimer wrote: > Except why the toilet seat keeps falling down when someone has one of > those annoying 'womans' toilets which don't let you balance the seat up. > That one can have me flumoxed for a good ten minutes. Duck tape is the universal problem solv

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

2005-10-21 Thread Karl Lattimer
> Alcohol makes anything make sense. :) Except why the toilet seat keeps falling down when someone has one of those annoying 'womans' toilets which don't let you balance the seat up. That one can have me flumoxed for a good ten minutes. > I didn't know you had any programming experience. Start

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

2005-10-21 Thread Jason Tackaberry
On Fri, 2005-10-21 at 21:30 +0100, Karl Lattimer wrote: > Gave up on tea, shifted to beer, python makes sense... Alcohol makes anything make sense. :) > lambda is a clever one, confused me at first by by gum its nifty, I didn't know you had any programming experience. Coming from a procedural

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

2005-10-21 Thread Karl Lattimer
Thanks for all your help guys, I'm just sitting down with a cuppa teaand some docs and getting started ;)Gave up on tea, shifted to beer, python makes sense... lambda is a clever one, confused me at first by by gum its nifty, its a lot cleaner than defining the function inline ala _javascript_.I'm

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

2005-10-21 Thread Karl Lattimer
> I made a similar joke once, but just to make sure you understand what > I'm talking about: > http://en.wikipedia.org/wiki/AJAX > Yep, i know what you mean, however there doesn't seem to be a ready built api for python without including a bunch of other stuff. I assume it would be easy enough to

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

2005-10-21 Thread Dirk Meyer
Karl Lattimer wrote: > On Fri, 2005-10-21 at 14:32 +0200, Dirk Meyer wrote: >> You also know Ajax? > > Used to clean my grandmothers oven with it when I was a kid. Not > particularly good in the nose ala Cheech and Chong up in smoke, but > great on those grimey surfaces. I made a similar joke once

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

2005-10-21 Thread Karl Lattimer
On Fri, 2005-10-21 at 14:32 +0200, Dirk Meyer wrote: > Karl Lattimer wrote: > > OK, I've decided, that my slumming around on this list, although I do > > put in some work when I can (website and soon yum, i'll get back to you > > soon TCWAN) is a little bit of a liberty on you guys, who do some of

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

2005-10-21 Thread Dirk Meyer
Karl Lattimer wrote: > OK, I've decided, that my slumming around on this list, although I do > put in some work when I can (website and soon yum, i'll get back to you > soon TCWAN) is a little bit of a liberty on you guys, who do some of the > finest cool, pvr related coding jiggery pokery in the w