view src/testdir/test_channel_write.py @ 25733:4b2616ffe32b v8.2.3402

patch 8.2.3402: invalid memory access when using :retab with large value Commit: https://github.com/vim/vim/commit/b7081e135a16091c93f6f5f7525a5c58fb7ca9f9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 4 18:47:28 2021 +0200 patch 8.2.3402: invalid memory access when using :retab with large value Problem: Invalid memory access when using :retab with large value. Solution: Check the number is positive.
author Bram Moolenaar <Bram@vim.org>
date Sat, 04 Sep 2021 19:00:03 +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