Re: Retrieve keywords a internet domain name

2007-01-31 Thread Létező
> 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

Why don't have an object() instance a __dict__ attribute by default?

2007-01-30 Thread Létező
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 "",

Metaclasses are not called in subclasses. What did I wrong?

2006-10-28 Thread Létező
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

Metaclasses are not called in subclasses. What did I wrong?

2006-10-28 Thread Létező
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