On Wed, May 29, 2013 at 6:22 PM, Andrei Olsen <[email protected]>wrote:

> On Wednesday, May 29, 2013 7:11:13 PM UTC+2, Axel Bender wrote:
> > I'm using gvim 7.3 (64 bits, 1036) with dynamic python 2.7 support on
> Windows 7 (64 bits). Python 2.7 (64 bits) works from the command line.
> >
> > :py print "hello" gives me
>

Windows 7 64.

:ver
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 29 2013 18:37:51)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-1053
 +python3/dyn

Python 3.3.0

I have never used python before.

:py print "hello"
E319: Sorry, the command is not available in this version

:py3 print "hello"
  File "<string>", line 1
    print "hello"
                ^
SyntaxError: invalid syntax


Not sure if this is expected or not.

An aside question, if you are compiled with +python3/dyn, why wouldn't :py
just do what :py3 does?  After all, there are not 2 versions available?

:h :py, should probably also say, see :py3 if you are using python 3 as a
first time user wouldn't really understand why it didn't work.

But maybe this is obvious to python users.

David

-- 
-- 
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