Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On windows xp and vim 7.3.1105 (Yongwei's build):

:py import vim
:py print(type(
<type 'str'> -- THIS

on ubuntu and vim 7.3.1020 (my own build):

:py import vim
:py print(type(
<type 'NoneType'> -- AND THIS

why this difference?

share|improve this question
What string does the Windows build give you? I think this is too localized to be honest, it really depends on the implementation of the vim module... Do you get this behaviour on any other operating systems? – Breakthrough Jun 19 '13 at 12:55
after ':tabnew', the is '' (windows) or None (ubuntu). – user232284 Jun 19 '13 at 14:37
That's what I suspected... I'd expect that Ubuntu would return a string if the buffer name was non-null, but it's just a blank string even on Windows. – Breakthrough Jun 19 '13 at 15:02

There have been many recent changes to the Python interface (mainly done by ZyX) in order to improve the Python interface. Python imports have been reworked, too.

Probably the discrepancy is due to the different Vim patch levels. Try again with identical Vim versions. If you have problems with the changed behavior, or detailed questions, please ask them on the vim_dev mailing list. As long as development towards Vim 7.4 is ongoing, the group is still very open to feedback and bug reports.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .