Mercurial > vim
view src/testdir/test_short_sleep.py @ 20281:ab8c8fd0f868 v8.2.0696
patch 8.2.0696: Vim9: nested function does not work properly
Commit: https://github.com/vim/vim/commit/0e65d3de0aeff00aa42ea899f1afd11f8b22b93e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 5 17:53:16 2020 +0200
patch 8.2.0696: Vim9: nested function does not work properly
Problem: Vim9: nested function does not work properly
Solution: Create a function reference. Check argument count.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 05 May 2020 18:00:04 +0200 |
parents | 191ccece2f5d |
children |
line wrap: on
line source
#!/usr/bin/python # # Program that sleeps for 100 msec # # This requires Python 2.6 or later. import time if __name__ == "__main__": time.sleep(0.1) # sleep 100 msec