daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 53 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. import sys
  2.  
  3. def pipe(func):
  4.     while True:
  5.         val = yield
  6.         func(val)
  7.  
  8.  
  9. x = pipe(sys.stdout.write)
  10.  
  11. x.next()
  12.  
  13. x.send("Hello, World!\n")
  14. x.send("This is fucking weird!\n")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top