Mercurial > vim
view src/testdir/test_channel_write.py @ 19350:76cb39bf1871 v8.2.0233
patch 8.2.0233: crash when using garbagecollect() in between rand()
Commit: https://github.com/vim/vim/commit/4f645c54efe33d7a11e314676e503118761f08a7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 8 16:40:39 2020 +0100
patch 8.2.0233: crash when using garbagecollect() in between rand()
Problem: Crash when using garbagecollect() in between rand().
Solution: Redesign the rand() and srand() implementation. (Yasuhiro
Matsumoto, closes #5587, closes #5588)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Feb 2020 16:45: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