On Thu, 13 Aug 2015, Nathann Cohen wrote:

What about *input* integers? I have many functions that take integers
as input. Will the new standard enforce that those must be Integers
too? If this is the case, then not only "return 1" gets forbidden, but
also "my_function(1)".

"Be liberal what you receive and conservative what you send." -- old saying about character encodings fits also to this.

And I don't think that we are talking about *standard*, about something that everyone must obey in all cases. I think that this is like a default rule: at least when writing a new function that counts something, you must explain the reason if you return python int.

--
Jori Mäntysalo

Reply via email to