Re: Python in Makefile Question. try A.A.P

2005-02-11 Thread Bart van Deenen
't need to define the dependencies yourself, it understands C files, and does the work for you. Our Makefile shrunk by a factor of 5 after converting to aap. Highly recommended. Bart van Deenen. -- http://mail.python.org/mailman/listinfo/python-list

:-)

2005-02-17 Thread Bart van Deenen
Jack Diederich <[EMAIL PROTECTED]> wrote: > /tmp/> python > Python 2.3.4 (#2, Jan 5 2005, 08:24:51) > Type "help", "copyright", "credits" or "license" for more information. > >>> ^D :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) Bart -- http://mail.python.org/mailman/listinfo/python-li

Re: Don't understand global variables between modules

2005-02-23 Thread Bart van Deenen
Fredrik Lundh <[EMAIL PROTECTED]> wrote: > because running a script isn't the same thing as importing it. try adding > "print __name__" lines before your other print statements so you can see > who's printing what. > > > Is there more than one global space? > > in this case, there are more modu

Re: Don't understand global variables between modules

2005-02-23 Thread Bart van Deenen
Hi thanks for the answer. Coming from C and C++ this behaviour wasn't really obvious to me. I still love Python though :-) Most elegant language I've ever seen. Bart -- http://mail.python.org/mailman/listinfo/python-list

def X(l=[]): weirdness. Python bug ?

2008-08-22 Thread Bart van Deenen
live between the two successive calls of X(). Why is it not recreated with an empty list? Is this correct behavior or is it a Python bug? Does anyone have any pointers to the language documentation where this behavior is described? Thanks all Bart van Deenen -- http://mail.python.org/mailman/listinfo/python-list

Re: def X(l=[]): weirdness. Python bug ?

2008-08-22 Thread Bart van Deenen
n Aug 22, 11:13 am, Bart van Deenen > <[EMAIL PROTECTED]> wrote: >> >> # function >> def X(l=[]): >> l.append(1) >> print l >> >> # first call of X >> X() >> [1] >> >> #second call of X >> X() >> [1, 1] >> >

Re: def X(l=[]): weirdness. Python bug ?

2008-08-22 Thread Bart van Deenen
Diez B. Roggisch wrote: > It's amazing. I didn't analyse this properly, but IMHO this issue is the > single most asked question (or rather the effects in produces) on this > list. I feel a bit dumb to ask a FAQ on the newsgroup. The problem with this particular question is that I found it hard to