> Also, does anyone know where I can find a decent dictionary that I can
> use to verify if a word is a valid English word?
Debian packages such as openoffice, ispell, aspell may contain a word list.
You can search google for +english +"word list" or something similar.
Viktor
--
http://mail.pyt
I use Python 2.5, Win32 MSI release.
Setting attributes on an empty object does not work:
>>> a=object()
>>> a.x=1
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'object' object has no attribute 'x'
>>> setattr(a, 'x', 1)
Traceback (most recent call last):
File "",
I use Python 2.4.4. Please read the code below:
---
from new import classobj
def mymeta(name,bases,clsdict):
print 'meta: %s'%name
return classobj(name,bases,clsdict)
class A(object):
__metaclass__=mymeta
class B(A):
pass
I use Python 2.4.4. Please read the code below:
---
from new import classobj
def mymeta(name,bases,clsdict):
print 'meta: %s'%name
return classobj(name,bases,clsdict)
class A(object):
__metaclass__=mymeta
class B(A):
pass