Talin wrote: > Jim Jewett <jimjjewett <at> gmail.com> writes: > >> It has not yet been specified what would happen to additional >> positional arguments that get passed in anyway. (Swallow or raise an >> Exception?) > > Additional positional arguments would be treated exactly as if you attempted > to pass too many positional arguments to a function that took a fixed number > of arguments. In other words, raise TypeError. > Does calling with wrong arguments deserve a more specific Exception, e.g., ArgumentsError(TypeError)? The main motivation would be greater clarity and precision in the exception itself, but it would also enable dirt-simple function overloading.
Michael _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
