beginner, idiomatic python
- From: "bambam" <david@xxxxxxxxx>
- Date: Thu, 23 Aug 2007 19:45:47 +1000
Would someone like to suggest a replacement for this? It works ok,
but it doesn't look like any of the other code:
tempList = ['1','2','3','4','5','6','7','8']
sampleList=[]
for port in tempList:
pagefound = False
for i in range(self.parent.GetPageCount()):
page=self.parent.GetPage(i)
if hasattr(page, "port"):
if page.port == int(port):
pagefound=True
if not pagefound:
sampleList.append(port)
Thanks!
.
- Follow-Ups:
- Re: beginner, idiomatic python
- From: Zentrader
- Re: beginner, idiomatic python
- From: Scott David Daniels
- Re: beginner, idiomatic python
- Prev by Date: Re: Baby Steps, optionDB
- Next by Date: Socket recv(1) seems to block instead of returning end of file.
- Previous by thread: Question: wxpython and 3d engine example with model load ?
- Next by thread: Re: beginner, idiomatic python
- Index(es):