Skip to content

Instantly share code, notes, and snippets.

@Cyril-Pop
Created April 15, 2020 13:10
Show Gist options
  • Save Cyril-Pop/7e484fc92cad00ea0475eabd6ced3234 to your computer and use it in GitHub Desktop.
Save Cyril-Pop/7e484fc92cad00ea0475eabd6ced3234 to your computer and use it in GitHub Desktop.
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