Re: Last 4 Letters of String

2008-02-21 Thread Rafael Sachetto
ing. I'm sure it's a very simple task but I couldn't find anything > of it. > > > > Any ideas? > > > > Rob > -- > http://mail.python.org/mailman/listinfo/python-list > -- Rafael Sachetto Oliveira Sir - Simple Image Resizer http://rsachetto.googlepages.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I execute a command from within python and wait on that command?

2008-02-15 Thread Rafael Sachetto
thanks > black_13 > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Rafael Sachetto Oliveira Sir - Simple Image Resizer http://rsachetto.googlepages.com -- http://mail.python.org/mailman/listinfo/python-list

Fwd: Regular Expression for Prime Numbers (or How I came to fail at them, and love the bomb)

2008-02-13 Thread Rafael Sachetto
eing read as "\x01". > > -- > Carsten Haese > http://informixdb.sourceforge.net > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Rafael Sachetto Oliveira Sir - Simple Image Resizer http://rsachetto.googlepages.com -- http://mail.python.org/mailman/listinfo/python-list

Re: arrays in lists

2007-12-17 Thread Rafael Sachetto
n mad attempt to interpret it as though it had > an underlying truth." > -- Umberto Eco > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Rafael Sachetto Oliveira Sir - Simple Image Resizer http://rsachetto.googlepages.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How to browse a C Library with Python

2007-12-05 Thread Rafael Sachetto
This could be a solution import commands callables = commands.getoutput("nm -D /lib/libc.so.6 | egrep ' T ' ").split("\n") callables = [c.split()[2] for c in callables] print callables On Dec 5, 2007 5:26 PM, Rafael Sachetto <[EMAIL PROTECTED]> wrote: &g

Re: How to browse a C Library with Python

2007-12-05 Thread Rafael Sachetto
ibc.so' and look > at lines with type T. To do this on a dynamic library you have to use nm -D /lib/libc.so -- Rafael Sachetto Oliveira Sir - Simple Image Resizer http://rsachetto.googlepages.com -- http://mail.python.org/mailman/listinfo/python-list

Re: pyuno and calc

2007-11-06 Thread Rafael Sachetto
ttp://mail.python.org/mailman/listinfo/python-list > -- Rafael Sachetto Oliveira Sir - Simple Image Resizer http://rsachetto.googlepages.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Iteration for Factorials

2007-10-22 Thread Rafael Sachetto
ef fact(x): > return reduce(operator.mul,xrange(1,x)) > > >>> fact(3) > 2 > >>> fact(2) > 1 > >>> fact(1) > > Traceback (most recent call last): > File "", line 1, in > fact(1) > File "", line 2,

Re: Iteration for Factorials

2007-10-22 Thread Rafael Sachetto
n range(b, -1, -1): > >> for d in range(a): > >> c += 1 > >> a = c > >> return a > > > > Not simple enough for my taste: > > > >>>> import gmpy > >>>> gmpy.fac(10) > > mpz(3628800)

Re: open remote terminal

2007-10-20 Thread Rafael Sachetto
rrectly with your virtual terminal. > >> > >>http://pexpect.sourceforge.net/ > > I actually gave it a first very simple try: > > import pexpect > child=pexpect.spawn('xterm') > child.sendline('ls') > > Unfortunately nothing

Re: Best Python Linux distribution

2007-10-17 Thread Rafael Sachetto
sure > > about previous versions. > > > Also, I am sure a lot of it (with most distributions) depends on the > packages you select during the installation. > -- > http://mail.python.org/mailman/listinfo/python-list > -- Rafael Sachetto Oliveira Sir - Simple Imag

Re: for loop question

2007-10-10 Thread Rafael Sachetto
isn't valid at all. I am just giving an > > > example of what I'm trying to accomplish. Anyone know how I can > achieve the > > > goal in the example above? Thanks. > > > > A "works-for-me": > > > > >>> pair

Re: for loop question

2007-10-10 Thread Rafael Sachetto
course, the for loop above isn't valid at all. I am just giving an > example of what I'm trying to accomplish. Anyone know how I can achieve the > goal in the example above? Thanks. > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Rafael Sachetto Oliveira Sir - Simple Image Resizer http://rsachetto.googlepages.com -- http://mail.python.org/mailman/listinfo/python-list

Re: cannot create python packages

2007-10-10 Thread Rafael Sachetto
ructure > inside /usr/lib/pythonX.Y/, whithout success however. > Any ideas? > > Thnx > > > ___ > Want ideas for reducing your carbon footprint? Visit Yahoo! For Good > http://uk.promotions.yahoo.com/forgood/environment.html