Hi All.<br>I was wondering why defining a __call__ attribute for a module doesn't make it actually callable.<br><br>I don't have any reason for doing so, I was just wondering if it worked, and found out it didn't.<br><br>$ cat 
mod.py<br>"""<br>Test callable module<br>"""<br>def __call__():<br>    return "in mod.__call__"<br><br><br>>>> import mod<br>>>> mod()<br>Traceback (most recent call last):
<br>  File "<stdin>", line 1, in ?<br>TypeError: 'module' object is not callable<br>>>> mod.__call__()<br>'in mod.__call__'<br><br><br>Thanks for any replies, Adam.<br><br>