> Hi Danny
>
> Thanks, it works - I must read the documentation more carefully!
>
> Would you mind if I knok on your door again with futher Python hick-ups?
Hi Danie,
It's probably a better idea to send your questions to Tutor. The reason
is to allow the community to get involved.
Also, I have
On Mon, 16 May 2005, Viljoen, Danie wrote:
> My Code:
>
> class MyObject:
> """A simple VO class"""
> def setName(self, newName):
> self.name=newName
>
> def getName(self):
> return self.name
>
> def main():
> list=[]
>
Hi Danie,
The enumerate() function takes a list of elements, and returns a list of
(index, element) pairs. For example:
##
>>> names = ["wilma", "fred", "betty", "barney"]
>>> for p in enumerate(names):
... print p
...
(0, 'wilma')
(1, 'fred')
(2, 'betty')
(3, 'barney')
##
Note th
Title: Objects in List
Hi
I'm new to python (have a java background). I'm trying to add object to a list, and afterwards manipulate the object again. How do a cast a object to another object
My Code:
class MyObject:
"""A simple VO class"""
def setName(self, newNa