You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My VIM is compiled with +python3, but code-completion with rope does not work (but it works when using Python 2.7). So I think, the issue is, that the rope library included in python-mode is not intended to be used with Python 3.
Since Python 3 is already out for a while, it would be nice, if python-mode supports it.
2 WARNING:
3 Python-mode required vim compiled with +python.
4 "lint, rope, run, doc, virtualenv" features disabled.
5
6 Pymode variables:
7 -------------------
I am starting work on python3 support. Here are some thoughts regarding re-usability of current structure, will appreciate any thoughts and comments.
Replace calls to :python or :py with pymode#Execute function, the function will wrap python and python3 behavior
Move all blocks of inline python code python << EOF to pymode python library or replace with vim function wrappers
Introduce boolean variable pymode_py3k which will enable plugins for python3 and use python 3 executable
Adjust sys.path to refer these components: a) pylibs-core for all versions, and one of b) pylibs if python 2 or, c) pylibs3 if python 3. Typical user setup will have (a) + (b) or (a) + (c).
For the moment, pylibs\pymode will move out to pylibs-core\pymode. We will patch pymode to work in both python 2 and 3
We will pick up python 3 versions of rope and push it to pylibs3
@codito The very nice idea. I think about python3 support and pylama library (code checking in pymode) already have it. I like your suggestions, except #3. I suggest pymode_py2k variable, that way we will have less troubles when python4 comes :)
Let me make a minor release of the plugin and create branch for next big release with python3 support.
Should be supported in last develop version. Vim should be have +python3 (python3-dyn) support. Use let g:pymode_python = 'python3' to force python interpreter.
Activity
jacobmerson commentedon May 29, 2013
+1
jgosmann commentedon Jun 10, 2013
+1
john9631 commentedon Jun 13, 2013
+1 also :)
proycon commentedon Jun 21, 2013
+1
codito commentedon Aug 17, 2013
I am starting work on python3 support. Here are some thoughts regarding re-usability of current structure, will appreciate any thoughts and comments.
:python or :pywithpymode#Executefunction, the function will wrap python and python3 behaviorpython << EOFtopymodepython library or replace with vim function wrapperspymode_py3kwhich will enable plugins for python3 and use python 3 executablesys.pathto refer these components: a)pylibs-corefor all versions, and one of b)pylibsif python 2 or, c)pylibs3if python 3. Typical user setup will have (a) + (b) or (a) + (c).pylibs\pymodewill move out topylibs-core\pymode. We will patch pymode to work in both python 2 and 3ropeand push it topylibs3@klen do you think this structure will work out?
klen commentedon Aug 19, 2013
@codito The very nice idea. I think about python3 support and
pylamalibrary (code checking in pymode) already have it. I like your suggestions, except #3. I suggestpymode_py2kvariable, that way we will have less troubles when python4 comes :)Let me make a minor release of the plugin and create branch for next big release with python3 support.
klen commentedon Dec 1, 2013
Should be supported in last develop version. Vim should be have +python3 (python3-dyn) support. Use
let g:pymode_python = 'python3'to force python interpreter.use pymode even for python3
use pymode even for python3
use pymode even for python3