Re: Python, VIM: namespace, scope, life of a python object stuck in a << HERE

2014-11-04 Thread Peter Otten
Veek M wrote: > If i have two functions: > > function! foo() > python3 << HERE > import mylib > pass > HERE > > function! bar() > python3 << HERE > import mylib > pass > HERE > > The src says: > > 1. Python interpreter main program > 3. Implementation of the Vim module for Python > > So

Python, VIM: namespace, scope, life of a python object stuck in a << HERE

2014-11-04 Thread Veek M
If i have two functions: function! foo() python3 << HERE import mylib pass HERE function! bar() python3 << HERE import mylib pass HERE The src says: 1. Python interpreter main program 3. Implementation of the Vim module for Python So, is the python interpreter embedded in vim AND additio