Created
April 15, 2020 13:10
-
-
Save Cyril-Pop/7e484fc92cad00ea0475eabd6ced3234 to your computer and use it in GitHub Desktop.
This file contains 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 System | |
import sys | |
pf_path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFilesX86) | |
sys.path.append('%s\IronPython 2.7\Lib' % pf_path) | |
from cStringIO import StringIO | |
sys.stdout = StringIO() | |
alphabet = [chr(i) for i in range(ord('a'),ord('z')+1)] | |
def funtest(): | |
global dict | |
for numb, alpha in zip(range(1,60,1), alphabet): | |
dict[numb] = alpha | |
dict = {} | |
print "Start Test" | |
funtest() | |
print dict | |
print "End Test" | |
sys.stdout.seek(0) | |
OUT = sys.stdout.read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment