Re: AI library

2006-12-15 Thread bearophileHUGS
Gabriel Genellina: > This is more stylish, but I prefer to use isxxx() or hasxxx() for > functions that return booleans. Lisp-like languages allow the ending ? or !, I think Ruby allows the ending ? too (allowing it with Python may be positive). Mathematica usually uses an ending uppercase Q, like

Re: AI library

2006-12-15 Thread Roberto Bonvallet
Felix Benner wrote: [...] >def a-star(self, nodeFrom, nodeTo): >"""searches the shortest path (minimal weight) from >nodeFrom to nodeTo.""" >pass >>> def a-star(self, nodeFrom, nodeTo): File "", line 1 def a-star(self, nodeFrom, nod

Re: AI library

2006-12-15 Thread Gabriel Genellina
On 15 dic, 08:50, Felix Benner <[EMAIL PROTECTED]> 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, comp