Callable modules?

Paul Rubin phr-n2002b at NOSPAMnightsong.com
Mon Jul 22 21:48:48 EDT 2002


Chris Liechti <cliechti at gmx.net> writes:
> if a __call__ feature was added, it would of course only work in newer 
> versions of python. so every code that uses this not backwards compatible.

Every time a new feature is added to Python, it generally isn't
backwards compatible.  Maybe module.__call__ isn't important, but
feature X is important.  That means if feature X and module.__call__
both get added to some future Python version, and your program needs
feature X, it might as well also use module.__call__.




More information about the Python-list mailing list