On 10/12/20 10:18 PM, William Pickard wrote:
> Once against, need I remind you that Python doesn't support defining output 
> variables like C#/.NET does, the only way to do it is via the globals/locals 
> dict objects which must either be manually provided or fetched from the 
> stacktrace.

Python supports output variables in a limited fashion, you can pass in a
mutable object (like a list), that the function can mutate to return an
'output' value.

What Python can't do is rebind a name provide by the caller to a new
object, thus a parameter bound to an immutable object (like a number or
string) can't have its value changed.

-- 
Richard Damon
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/OUHNCBZT54Q7M52JWNYUHRNSG4R7UJM3/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to