view src/testdir/test_channel_write.py @ 31002:a09404dad917 v9.0.0836

patch 9.0.0836: wrong error when using extend() with funcref Commit: https://github.com/vim/vim/commit/91c75d18d9cdc32df57e648640de7476fbcb4d76 Author: zeertzjq <zeertzjq@outlook.com> Date: Sat Nov 5 20:21:58 2022 +0000 patch 9.0.0836: wrong error when using extend() with funcref Problem: Wrong error when using extend() with funcref. Solution: Better check the variable type. (closes https://github.com/vim/vim/issues/11468, closes https://github.com/vim/vim/issues/11455)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Nov 2022 21:30: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