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 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
welcome to Tutor:)
On Tue, Jul 28, 2009 at 8:18 PM, Eduardo Vieira wrote:
> Hello, this is just a test. I have posted 2 different messages and
> they have never reached this list.
>
> Eduardo
> ___
> Tutor maillist - Tutor@python.org
> http://mail
its a open source
u need to delete the installed package or rename the package
y have full flexibility
On Sun, Jul 12, 2009 at 8:12 AM, wcyee wrote:
> Hi, When I am able to find and install a windows package distributed
> as an exe file, I can just go to "Add & Remove Programs" in th
Hi All,
I have been using komodo from last two yrs.
Its really very good open source editor.
we can use this editor to edit python, php, Ruby, html
On Sat, Jun 13, 2009 at 9:52 PM, wrote:
>>> The current release of Pyscripter is not stable. Drop back one release and
>>> you'll find a very
>>> l = [4, 6, 'word','a', 3, 9]
>>> l.sort()
>>> l
[3, 4, 6, 9, 'a', 'word']
>>> k = [each for each in l if type(each) == type(int())]
>>> k
[3, 4, 6, 9]
>>> kex = [each for each in l if type(each) != type(int())]
>>> kex
['a', 'word']
>>> kex+k
['a', 'word', 3, 4, 6, 9]
On Wed, May 13, 2009 at