Re: Lisp development with macros faster than Python development?..

2005-07-05 Thread Joost Jacob
Very hard to say. LISP has OOP too, Google for CLOS. Operator overloading is something to avoid anyway, IMHO, just like static typing is something to avoid if you need fast development, on schedule and the like. LISP has one thing that Python does not have: LISP code is LISP data. A thorough stu

Re: use a regex or not?

2005-06-21 Thread Joost Jacob
Oops, the 3rd test should be fill('bb', p='Aa') resulting in the empty dict {} because no binding for A can be found. -- http://mail.python.org/mailman/listinfo/python-list

use a regex or not?

2005-06-21 Thread Joost Jacob
I am looking for a function that takes an input string and a pattern, and outputs a dictionary. # @param s str, lowercase letters # @param p str, lowercase and uppercase letters # @return dict def fill(s, p): d = {} return d String s has characters from the lowercase letters. Str