This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import subprocess | |
import readline | |
import select | |
import os | |
class Popen(subprocess.Popen): | |
def _communicate(self, input): | |
read_set = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__doc__ = "Add fly function to namespace where module is imported" | |
class RealWorldLevitation(Exception): | |
pass | |
def expose(obj): | |
import inspect | |
frame = inspect.currentframe() | |
frame.f_back.f_back.f_globals[obj.__name__] = obj | |
return obj |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import antigravity | |
>>> antigravity.start() | |
'http://xkcd.com/353/' | |
# the source of http://pypi.python.org/pypi/antigravity/0.1 | |
# is plain and there is no any magic of Python | |
#!/usr/bin/env python | |
STRIP_URL = "http://xkcd.com/353/" |
NewerOlder