view src/testdir/test_channel_write.py @ 23124:f8cd5a5e03c4 v8.2.2108

patch 8.2.2108: Vim9: no test to check for :let error Commit: https://github.com/vim/vim/commit/083966f671475ae1b67f746f0b3f5309a45dfd8f Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 8 11:29:40 2020 +0100 patch 8.2.2108: Vim9: no test to check for :let error Problem: Vim9: no test to check for :let error. Solution: Add a test. Rename tests from _let_ to _var_.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Dec 2020 11:30:06 +0100
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