view src/testdir/test_channel_write.py @ 31549:6f1cbee3d652 v9.0.1107

patch 9.0.1107: float constant not recognized as float Commit: https://github.com/vim/vim/commit/73ade49c4b692e77d2c0b2ef0afbedbf55c5f946 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 27 20:54:41 2022 +0000 patch 9.0.1107: float constant not recognized as float Problem: Float constant not recognized as float. Solution: Check the vartype instead of comparing with t_float. (closes #11754)
author Bram Moolenaar <Bram@vim.org>
date Tue, 27 Dec 2022 22:00:05 +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