Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ZyX-I
Copy link

@ZyX-I ZyX-I commented Apr 6, 2016

No description provided.

@ZyX-I
Copy link
Author

ZyX-I commented Apr 6, 2016

Current solution simply turns VimL partial into non-partial funcref. This one allows using partials in Python like partials.

Using Python after this PR will also be the only way to query partial’s self dictionary and argument list AFAIK.

@brammool
Copy link
Contributor

brammool commented Apr 7, 2016

Nikolai Pavlov wrote:

You can view, comment on, or merge this pull request online at:

#734

-- Commit Summary --

  • Use vim.Function for partials in Python

Thanks!

"Marriage is when a man and woman become as one; the trouble starts
when they try to decide which one"

/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\ an exciting new programming language -- http://www.Zimbu.org ///
\ help me help AIDS victims -- http://ICCF-Holland.org ///

@brammool brammool closed this in 8110a09 Apr 14, 2016
micbou added a commit to micbou/vim that referenced this pull request Apr 14, 2016
- 7.4.1727: Cannot detect a crash in tests when caused by
  garbagecollect(). Add garbagecollect_for_testing(). Do not free a job
  if is still useful.
- 7.4.1728: The help for functions require a space after the "(". Make
  CTRL-] on a function name ignore the arguments. (Hirohito Higashi)
- 7.4.1729: The Perl interface cannot use 'print' operator for writing
  directly in standard IO. Add a minimal implementation of PerlIO Layer
  feature and try to use it for STDOUT/STDERR. (Damien)
- 7.4.1730: It is not easy to get a character out of a string. Add
  strgetchar() and strcharpart().
- 7.4.1731: Python: turns partial into simple funcref. Use partials like
  partials. (Nikolai Pavlov, closes vim#734)
- 7.4.1732: Folds may close when using autocomplete. (Anmol Sethi)
  Increment/decrement disable_fold. (Christian Brabandt, closes vim#643)
- 7.4.1733: "make install" doesn't know about cross-compiling.
  (Christian Neukirchen) Add CROSS_COMPILING. (closes vim#740)
- 7.4.1734: Test fails when not using utf-8. Split test in regularand
  utf-8 part.
- 7.4.1735: It is not possible to only see part of the message history.
  It is not possible to clear messages. Add a count to ":messages" and a
  clear argument. (Yasuhiro Matsumoto)
- 7.4.1736: Unused variable. Remove it. (Yasuhiro Matsumoto)
- 7.4.1737: Argument marked as unused is used. Remove UNUSED.
micbou added a commit to micbou/vim that referenced this pull request Apr 14, 2016
- 7.4.1727: Cannot detect a crash in tests when caused by
  garbagecollect(). Add garbagecollect_for_testing(). Do not free a job
  if is still useful.
- 7.4.1728: The help for functions require a space after the "(". Make
  CTRL-] on a function name ignore the arguments. (Hirohito Higashi)
- 7.4.1729: The Perl interface cannot use 'print' operator for writing
  directly in standard IO. Add a minimal implementation of PerlIO Layer
  feature and try to use it for STDOUT/STDERR. (Damien)
- 7.4.1730: It is not easy to get a character out of a string. Add
  strgetchar() and strcharpart().
- 7.4.1731: Python: turns partial into simple funcref. Use partials like
  partials. (Nikolai Pavlov, closes vim#734)
- 7.4.1732: Folds may close when using autocomplete. (Anmol Sethi)
  Increment/decrement disable_fold. (Christian Brabandt, closes vim#643)
- 7.4.1733: "make install" doesn't know about cross-compiling.
  (Christian Neukirchen) Add CROSS_COMPILING. (closes vim#740)
- 7.4.1734: Test fails when not using utf-8. Split test in regularand
  utf-8 part.
- 7.4.1735: It is not possible to only see part of the message history.
  It is not possible to clear messages. Add a count to ":messages" and a
  clear argument. (Yasuhiro Matsumoto)
- 7.4.1736: Unused variable. Remove it. (Yasuhiro Matsumoto)
- 7.4.1737: Argument marked as unused is used. Remove UNUSED.
- 7.4.1738: Count for ":messages" depends on number of lines. Add
  ADDR_OTHER address type.
- 7.4.1739: Messages test fails on MS-Windows. Adjust the asserts. Skip
  the "messages maintainer" line if not showing all messages.
- 7.4.1740: syn-cchar defined with matchadd() does not appear if there
  are no other syntax definitions which matches buffer text. Check for
  startcol. (Ozaki Kiichi, haya14busa, closes vim#757)
- 7.4.1741: Not testing utf-8 characters. Move the right asserts to the
  test_expr_utf8 test.
- 7.4.1742: strgetchar() does not work correctly. use mb_cptr2len(). Add
  a test. (Naruhiko Nishino)
- 7.4.1743: Clang warns for uninitialzed variable. (Michael Jarvis)
  Initialize it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants