view src/testdir/test_channel_write.py @ 27904:7422add1afd1 v8.2.4477

patch 8.2.4477: crash when using fuzzy completion Commit: https://github.com/vim/vim/commit/29ab6ce9f36660cffaad3c8789e71162e5db5d2f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 26 15:52:08 2022 +0000 patch 8.2.4477: crash when using fuzzy completion Problem: Crash when using fuzzy completion. Solution: Temporary fix: put back regexp. (closes https://github.com/vim/vim/issues/9851)
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Feb 2022 17:00:04 +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