Skip to content

Instantly share code, notes, and snippets.

View TheDeadOne's full-sized avatar

Sergey Gornostaev TheDeadOne

View GitHub Profile
from subprocess import PIPE, Popen
p = Popen(['ping', '-w', '3', '127.0.0.1'], stdout=PIPE, bufsize=1)
print('Я выполняюсь, хотя ping ещё не завершился!')
for line in p.stdout:
print(line, end='')
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.