Re: Tuple assignment and generators?

2006-05-04 Thread jemfinch
> Zero, in particular, is the same variable all throughout a Python interpreter. For the sake of accuracy let me note that I ought to have said, "is the same *value* all throughout a Python interpreter." Jeremy -- http://mail.python.org/mailman/listinfo/python-list

Re: Tuple assignment and generators?

2006-05-04 Thread jemfinch
Larry Bates wrote: > Just wrote: > > In article <[EMAIL PROTECTED]>, > > Larry Bates <[EMAIL PROTECTED]> wrote: > > > >> While I have never needed anything like this in my 5 years of Python > >> programming, here is a way: > >> > >> a,b,c = 3*[0] > >> q,r,s,t,u,v = 6*[0] > > > > This is (IMO) fai

Re: Advanced concurrancy

2005-07-28 Thread jemfinch
Asynchrony is not concurrency. If you have to turn your code "inside out," (that is, if you have to write your code such that the library calls your code, rather than vice versa) it's very much *not* concurrency: it's just asynchrony. While Twisted makes asynchronous code relatively easy to write