Kirby that notion if eater is an interesting metaphor i haven't year heard to explain the concept. <br><br>I'm fascinated by how the words we use highlight or hide certain aspects of the concepts we seek to explain.<br><br>Likewise, language and metaphor play a huge role in teaching and learning. How many times have idea been circularly explained? Eg<br>"A callable is something that can be called." Haha. <br><br>PS you are in Portland? I suspect your couch, guest bedrooms, and all available floor space will be full in about 10 months from now. :)<br><div class="gmail_quote">On Wed, May 27, 2015 at 12:17 AM kirby urner <<a href="mailto:kirby.urner@gmail.com">kirby.urner@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">Python has a clear notion of "callable" as "those objects which eat" i.e. "have a mouth" (how I start with beginners sometimes).</div><div class="gmail_extra"><br></div><div class="gmail_extra">Our callables aren't just functions, but types as well. In Python 3.x, range() and enumerate() are type calls, not function calls.</div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Of course a function is just another type e.g. FunctionType or <class 'function'>.</div><div><br></div><div>So in another sense callables are all types as everything is an object and all objects have type.</div><div><br></div><div>Just next( ) and iter( ) are more the builtin functions whereas we also have a more general type object of type type.</div><div><br></div><div>>>> type (int)</div><div><class 'type'></div><div>>>> type (str)</div><div><class 'type'></div><div>>>> def F(): pass</div><div>>>> type(F)</div><div><class 'function'> </div><div><br></div><div>(using 3.4)</div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Kirby</div><div><br></div><div><br></div></div></div></div>
_______________________________________________<br>
Chicago mailing list<br>
<a href="mailto:Chicago@python.org" target="_blank">Chicago@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/chicago" target="_blank">https://mail.python.org/mailman/listinfo/chicago</a><br>
</blockquote></div>