Re: [Python-ideas] Jump to function as an an alternative to call function

2018-08-17 Thread Jacob Solinsky
rly impossible to justify adding a > new feature to Python. This discussion is unlikely to lead to any > meaningful action otherwise. > > On Thu, Aug 16, 2018 at 4:37 PM, Jacob Solinsky > wrote: > >> So when getx is executed inside a let form, if it tries to read/write the

Re: [Python-ideas] Jump to function as an an alternative to call function

2018-08-16 Thread Jacob Solinsky
So when getx is executed inside a let form, if it tries to read/write the value of X it interacts with the X entry in the let form's symbol table before moving to find X in the global environment, right? That is similar to what I was trying to accomplish in python, but with the local symbol table o

Re: [Python-ideas] Jump to function as an an alternative to call function

2018-08-16 Thread Jacob Solinsky
On Thu, 16 Aug 2018, 12:44 Jacob Solinsky, wrote: > I wanted the called, jumped to function to change state in the caller. > From what I tried to do, passing locals() cannot accomplish this. I have > made it happen in other languages though. > In the R language, one can do

Re: [Python-ideas] Jump to function as an an alternative to call function

2018-08-15 Thread Jacob Solinsky
ct or pass that object to > functions instead of the large number of variables that it encapsulates. > You just use 'self' as a sort-of back-pack that carries around what you > need. > > It's difficult to see what you're after from your Verb and Morpheme > exampl

[Python-ideas] Jump to function as an an alternative to call function

2018-08-15 Thread Jacob Solinsky
-Jumping to a function as opposed to calling a function When a function is jumped to, it inherits the variables in the caller’s local namespace and is free to modify them or add new local variables, unlike a normal function call, wherein the caller’s namespace is inaccesible. At present, the on