Re: [Tutor] sort list alphabetically

2005-11-24 Thread lmac
Ok. That's the point. I think i meant case-sensitive. There are some ways described here that will me help out. Yes, the list is sorted when i print it out. It was my fault, sorry guys. Thank you a lot. mac ___ Tutor maillist - Tutor@python.org http:/

[Tutor] sort list alphabetically

2005-11-23 Thread lmac
Hallo, i have a list with the dirs/files from the current path. When i use sort() to sort the list alphabetically the list is still unsorted. How to use ? dirs_files = os.listdir(os.getcwd()) print dirs_files dirs_files.sort() print dirs_files Thank you. _

[Tutor] again... regular expression

2005-11-21 Thread lmac
Ok. There is an error i made. The links in the HTML-Site are starting with good.php so there was no way ever to find an link. re_site = re.compile(r"good\.php.+'") for a in file: z = re_site.search(a) if z != None: print z.group(0) This will give me every line sta

[Tutor] again... regular expression

2005-11-21 Thread lmac
Hallo. I want to parse a website for links of this type: http://www.example.com/good.php?test=anything&egal=total&nochmal=nummer&so=site&seite=22";> - re_site = re.compile(r'http://\w+.\w+.\w+./good.php?.+";>') for a in file:

Re: [Tutor] code improvement for beginner ?

2005-10-10 Thread lmac
Danny Yoo wrote: > > On Sat, 8 Oct 2005, lmac wrote: > > >>Ok. Here we go. Wanted to start my page long ago. Now is the right time. >> >>http://daderoid.freewebspace24.de/python/python1.html > > > Hi lmac, > > I'll pick out some stuff

Re: [Tutor] code improvement for beginner ?

2005-10-08 Thread lmac
Ok. Here we go. Wanted to start my page long ago. Now is the right time. http://daderoid.freewebspace24.de/python/python1.html Thank you. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] code improvement for beginner ?

2005-10-08 Thread lmac
Hi there, i wonder if i could post some of my scripts and anyone can tell me if there is a better way for coding the problem. In the way of some teaching class. ;-) Or is this mailing-list only for specific questions ? Thanks. ___ Tutor maillist - Tu

Re: [Tutor] find data in html file

2005-09-30 Thread lmac
> > >Message: 5 >Date: Fri, 30 Sep 2005 10:32:41 -0400 >From: Kent Johnson <[EMAIL PROTECTED]> >Subject: Re: [Tutor] find data in html file >Cc: tutor@python.org >Message-ID: <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Re: [Tutor] find data in html file

2005-09-30 Thread lmac
Date: Wed, 28 Sep 2005 09:25:53 +0100 From: Ed Singleton <[EMAIL PROTECTED]> Subject: Re: [Tutor] find data in html file To: tutor@python.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1 On 27/09/05, lmac <[EMAIL PROTECTED]> wrote: >> Hi

[Tutor] find data in html file

2005-09-27 Thread lmac
Hi there, i have a base-question. If i want to read some kind of data out of a line which i know the start-tag and the end-tag in an html-file how do i recognize if it's more than one line ? Example: Some textlinktext . DATA etc. I would use >text as the starting tag to localize the be

[Tutor] find() function an Tupel. Always returns -1.

2005-08-26 Thread lmac
hi there, i got a problem with Tupel and the find() function. I know in the document are this Keywords which i am looking for but find() always returns -1. Thanks for the help. fedora_user #!/usr/bin/python # -*- coding:

[Tutor] long int in list as argument for seek() function

2005-06-08 Thread lmac
Hi there, i want to use an long int from an list which i got from my function find_lineno(). But i got this error and i don't understand why i can not use this long as an argument. Where do i find a good documentation on errors so that i complete understand what the heck is going on. Many thanks