Re: language-x-isms

2006-06-08 Thread astyonax

Fredrik Lundh wrote:
> Bryan wrote:
>
> > for example, i've noticed several java developers i know write python code 
> > like
> > this:
> >
> > foo_list = [...]
> > for i in range(len(foo_list)):
> > print '%d %s' % (i, foo_list[i])
>
> which is a perfectly valid way of doing things if you're targeting older
> Python platforms as well (including Jython).
> 
> 

But it's not the pythonic way.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: automatic from module import * expansion

2006-03-13 Thread astyonax
Sorry but I doesn't understand your need. If you need a ''dinamic''
import, you can use __import__(module)

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: converting to a binary number?

2006-03-24 Thread astyonax
that's great! I will try! :-))

-- 
http://mail.python.org/mailman/listinfo/python-list