Re: [Tutor] Mobile Python

2007-12-31 Thread زياد بن عبدالعزيز الباتلي
On Mon, 2007-12-31 at 16:02 -0800, Dave Kuhlman wrote: > On Mon, Dec 31, 2007 at 12:12:34PM -0500, Antonio Salgado wrote: > > Hello to everyone and wishing you all the best and succes in this new > > year!! > > Well i'm wondering if someone can point me out or help on this, I want to > > write ap

Re: [Tutor] Mobile Python

2007-12-31 Thread Dave Kuhlman
On Mon, Dec 31, 2007 at 12:12:34PM -0500, Antonio Salgado wrote: > Hello to everyone and wishing you all the best and succes in this new > year!! > Well i'm wondering if someone can point me out or help on this, I want to > write apps for mobile devices, but for the regular nokia (like the 5300),

Re: [Tutor] how to sort the data inside the file.

2007-12-31 Thread Chris Fuller
On Monday 31 December 2007 10:36, Chris Fuller wrote: > lin = re.findall('\s*([^\s]+)\s+([^\s]+)\s+(\d+)( [kM])?bytes', s) This is incorrect. The first version of the script I wrote split the file into records by calling split('bytes'). I erroneously assumed I would obtain the desired results

Re: [Tutor] how to sort the data inside the file.

2007-12-31 Thread Kent Johnson
Chris Fuller wrote: > This is a classic case for the use of regular expressions. A powerful tool, > but can be tricky. I create a RE for a record, and than use the findall() > function to get all of them in a list. I'll walk you through it. > # seperate into records > lin = re.findall('\s*([

[Tutor] Mobile Python

2007-12-31 Thread Antonio Salgado
Hello to everyone and wishing you all the best and succes in this new year!! Well i'm wondering if someone can point me out or help on this, I want to write apps for mobile devices, but for the regular nokia (like the 5300), but i haven't find documentation or anything. Hope someone can help me. M

Re: [Tutor] how to sort the data inside the file.

2007-12-31 Thread Chris Fuller
On Monday 31 December 2007 06:19, goldgod a wrote: > hello all, >             Please find the attached file. I want to sort the content > of this file based on the "bytes" in descending order. How can i do > it, any pointers to it. This is a classic case for the use of regular expressions.  A powe

Re: [Tutor] how to sort the data inside the file.

2007-12-31 Thread Kent Johnson
goldgod a wrote: > hello all, > Please find the attached file. I want to sort the content > of this file based on the "bytes" in descending order. How can i do > it, any pointers to it. There are several things to do here: - read the file - split into records - extract the byte count -

Re: [Tutor] Installing problem in matplotlib

2007-12-31 Thread Chris Fuller
Is there a reason you are building from scratch? There are binaries for win32, and most linux distributions. You will need the development packages for libpng, zlib, and freetype, and others, depending on the GUI backends you want to use. These can be configured in the setup.cfg file. See

[Tutor] how to sort the data inside the file.

2007-12-31 Thread goldgod a
hello all, Please find the attached file. I want to sort the content of this file based on the "bytes" in descending order. How can i do it, any pointers to it. -- Thanks & Regards, goldgod test Description: Binary data ___ Tutor maillist

Re: [Tutor] Installing problem in matplotlib

2007-12-31 Thread Alan Gauld
"Sabyasachi Pal" <[EMAIL PROTECTED]> wrote > While installing matplot lib, I am facing errors given below after > trying "python setup.py build". I made it sure that freetype (>= > 2.1.7), libpng and zlib are installed along with there devel > versions. > Can any one help? Not an expert in matp