view src/testdir/test_channel_write.py @ 17871:521ce0d887e5 v8.1.1932

patch 8.1.1932: ml_get errors after using append() Commit: https://github.com/vim/vim/commit/d20070274c47668560e02db184e1f8e456c3c326 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 27 21:56:06 2019 +0200 patch 8.1.1932: ml_get errors after using append() Problem: Ml_get errors after using append(). (Alex Genco) Solution: Do not update the cursor twice. (closes https://github.com/vim/vim/issues/1737)
author Bram Moolenaar <Bram@vim.org>
date Tue, 27 Aug 2019 22:00: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