Excerpts from James McCoy's message of Fri May 31 18:39:13 +0200 2013:
> This is only true if you don't support older versions of Python 2.x. Such a
> suggestion was already discussed in this thread:
> http://thread.gmane.org/gmane.editors.vim.devel/38261

I didn't see a clear winner. We have py and py3, so people can choose
whatever they like.

Things like
  let dir = 'foo
  pyx 'import shutils; shutils.rmtree(vim.eval(dir))'

do work with python 2 and 3 flawlessly. I also expect users to do this:

pyx 'if sys.version == 2 then import python-2-implmentation else import 
python-3-implementeation'

if both implementation support the same interface you can continue using
pyx for all of your mappings without this if has(..) else do the same
nonsense.

I agree that this only makes sense using python 2.6,2.7 or newer which I
think is very common today.

Marc Weber

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui