Python syntax in Lisp and Scheme (fwd)
David Mertz
mertz at gnosis.cx
Sat Oct 4 22:15:29 EDT 2003
More information about the Python-list mailing list
Sat Oct 4 22:15:29 EDT 2003
- Previous message (by thread): passing argumetns to threading.Thread
- Next message (by thread): A question about Stack
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hans Nowak <hans at zephyrfalcon.org> wrote: |> >>> def foo(i, accum=[0]): |> ... accum[0]+=i |Yah, but instead it abuses a relatively obscure Python feature... the |fact that default arguments are created when the function is created In the Acknowledgments to my book, take a look at my thanks to Magnus Lie Hetland :-). The online version is at: http://gnosis.cx/TPiP/acknowledgments.txt (of course, I always encourage everyone to buy the dead trees too). That said, I think I actually did wind up doing what Magnus told me to. Yours, David... -- mertz@ _/_/_/_/_/_/_/ THIS MESSAGE WAS BROUGHT TO YOU BY:_/_/_/_/ v i gnosis _/_/ Postmodern Enterprises _/_/ s r .cx _/_/ MAKERS OF CHAOS.... _/_/ i u _/_/_/_/_/ LOOK FOR IT IN A NEIGHBORHOOD NEAR YOU_/_/_/_/_/ g s -- Buy Text Processing in Python: http://tinyurl.com/jskh
- Previous message (by thread): passing argumetns to threading.Thread
- Next message (by thread): A question about Stack
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list