view src/testdir/test_channel_write.py @ 22454:849c6f766b19 v8.2.1775

patch 8.2.1775: MS-Windows: adding a long quickfix list is slow Commit: https://github.com/vim/vim/commit/8ec92c977976d9e9225183e36a80e6b0cdbf1f51 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 29 22:47:03 2020 +0200 patch 8.2.1775: MS-Windows: adding a long quickfix list is slow Problem: MS-Windows: adding a long quickfix list is slow. Solution: Shorten the buffer name only for the first entry. (Yegappan Lakshmanan, closes #7039, closes #7033)
author Bram Moolenaar <Bram@vim.org>
date Tue, 29 Sep 2020 23: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