view src/testdir/test_channel_write.py @ 21753:9ef7ae8ab51c v8.2.1426

patch 8.2.1426: Vim9: cannot call autoload function in :def function Commit: https://github.com/vim/vim/commit/a177344dc0c337e5b272c1c59d13964a8318bcfa Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 12 15:21:22 2020 +0200 patch 8.2.1426: Vim9: cannot call autoload function in :def function Problem: Vim9: cannot call autoload function in :def function. Solution: Load the autoload script. (closes https://github.com/vim/vim/issues/6690)
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Aug 2020 15:30:04 +0200
parents 5cd9ba96561d
children
line wrap: on
line source

#!/usr/bin/python
#
# Program that writes a number to stdout repeatedly
#
# This requires Python 2.6 or later.

from __future__ import print_function
import sys
import time

if __name__ == "__main__":

    done = 0
    while done < 10:
        done = done + 1
        print(done)
        sys.stdout.flush()
        time.sleep(0.05)  # sleep 50 msec