Why use Slot? from Peter Norvig's AI code

2007-12-04 Thread Davy
Hi all, When reading Python source code of Peter Norvig's AI book, I found it hard for me to understand the idea of slot (function nested in function). Please see program() nested in make_agent_program(), why not use program() directly? ## http://aima-python.googlecode.com/svn/trunk/agents.py

Re: Why use Slot? from Peter Norvig's AI code

2007-12-04 Thread Bruno Desthuilliers
Davy a écrit : Hi all, When reading Python source code of Peter Norvig's AI book, I found it hard for me to understand the idea of slot (function nested in function). First point : this code seems to be based on an older (way older) Python version, so some things would not be done that

Re: Why use Slot? from Peter Norvig's AI code

2007-12-04 Thread Terry Reedy
Davy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | Hi all, | | When reading Python source code of Peter Norvig's AI book, I found it | hard for me to understand the idea of slot (function nested in | function). Please see program() nested in make_agent_program(), | why not use