On Monday, August 20, 2012 6:41:43 PM UTC+4, skeept wrote:
> On Thursday, August 16, 2012 8:47:38 AM UTC-4, Maxim Philippov wrote:
> 
> > Hi, vim_dev!
> 
> > 
> 
> > I'd like to offer a small patch for python interface, which allows to avoid 
> > inserting print call for every expression in order to see result.
> 
> > 
> 
> > Now:
> 
> > 
> 
> > :py 2 + 2
> 
> > :py dir.__doc__
> 
> > 
> 
> > After applying patch:
> 
> > 
> 
> > :py 2 + 2
> 
> > 4
> 
> > :py dir.__doc__
> 
> > dir([object]) -> list of strings...
> 
> > 
> 
> > So py/py3 commands are more REPL-like. See pyrepl.diff in attachment for 
> > details.
> 
> 
> 
> I think this only makes sense if there is an option that allows to 
> enable/disable it by default, say pythonverbose with the default value being 
> disabled.

But why not be a bit more verbose out of the box? I mean I could have just used 
one of the plugins listed by Vlad or script written by Roland, I admit these 
are good solutions, but I think default implementation is too much quiet. 

Now You may run ":py f = open("/some/file/doesn/t/exist")" and see no error at 
all, or ":py vim.current.line" without expected output.

Among other things I like vim because of its succinctness, so I can type less 
and get more, that's why I think this patch would fit perfectly well without 
option disabled by default.

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

Raspunde prin e-mail lui