Wayne wrote:
On Tue, Aug 11, 2009 at 7:17 AM, wrote:
hi i am currently doing the 'livewires' python tutorial lesson 5. i am
making a little game that makes a few squares chase a circle around a little
grid. i can get the 1 square acting on 1 variable to come up, but the
tutorial now wants
if u want to add new attributes into ur list
u need to import list object in ur class
class customlist(list):
x = 'your val'
c = customlist()
>>> dir(c)
['__add__', '__class__', '__contains__', '__delattr__', '__delitem__',
'__delslice__', '__dict__', '__doc__', '__eq__', '__ge__',
'__getattr
On Tue, Aug 11, 2009 at 7:17 AM, wrote:
> hi i am currently doing the 'livewires' python tutorial lesson 5. i am
> making a little game that makes a few squares chase a circle around a little
> grid. i can get the 1 square acting on 1 variable to come up, but the
> tutorial now wants me to creat
On Tue, Aug 11, 2009 at 5:47 PM, wrote:
> hi i am currently doing the 'livewires' python tutorial lesson 5. i am
> making a little game that makes a few squares chase a circle around a little
> grid. i can get the 1 square acting on 1 variable to come up, but the
> tutorial now wants me to creat
On Mon, 19 Dec 2005, Ed Singleton wrote:
> On 19/12/05, Ed Singleton <[EMAIL PROTECTED]> wrote:
> >
> > list2 = list.copy()
> >
> > Slices create a copy, so a shortcut is:
> >
> > list2 = list[:]
>
> Sorry, you need to:
>
> from copy import copy
>
> before you can use copy.
It should also be,
On 19/12/05, Ed Singleton <[EMAIL PROTECTED]> wrote:
> On 19/12/05, Øyvind <[EMAIL PROTECTED]> wrote:
> > I have one function that finds some values. Then I want that function to
> > find new values based on the values it found first. However, by just
> > looping, it starts on an eternal job.
> >
>
On 19/12/05, Øyvind <[EMAIL PROTECTED]> wrote:
> I have one function that finds some values. Then I want that function to
> find new values based on the values it found first. However, by just
> looping, it starts on an eternal job.
>
> As illustrated in:
> >>> list = [1,2,3]
> >>> list2 = list
> >