AI library

Gabriel Genellina gagsl-py at yahoo.com.ar
Fri Dec 15 08:47:57 EST 2006


On 15 dic, 08:50, Felix Benner <felix.ben... at imail.de> wrote:

> I thought about an AI library for python. This is the possible
> structure I came up with. Are there any thoughts about it?

Without commenting about the library itself:
None, True and False are spelled this way.
None is a singleton, compare using "x is None" or "x is not None", dont
use ==
This is more stylish, but I prefer to use isxxx() or hasxxx() for
functions that return booleans.

-- 
Gabriel Genellina




More information about the Python-list mailing list