lambda without vars?
Alex
alex at somewhere.round.here
Wed Mar 15 11:44:17 EST 2000
More information about the Python-list mailing list
Wed Mar 15 11:44:17 EST 2000
- Previous message (by thread): lambda without vars?
- Next message (by thread): Executing Applications
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> a = filter(lambda x, y=y: x<y, xList) > > However, you cannot have the function to modify such variables (that > is, the value they have outside lambda). Except for in-place modification of the object they refer to: >>> l = [] >>> (lambda l=l: l.append (1)) () >>> l [1] Alex.
- Previous message (by thread): lambda without vars?
- Next message (by thread): Executing Applications
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list