scratchpad.py 707 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. import sys
  4. from functools import wraps
  5. from Naked.toolshed.types import XMaxHeap, XMinHeap
  6. def print_scratch(func):
  7. @wraps(func)
  8. def print_wrapper(*args, **kwargs):
  9. print(func(*args, **kwargs))
  10. return print_wrapper
  11. def run_scratchpad():
  12. # from Naked.toolshed.file import FileReader
  13. # from Naked.toolshed.types import XString, XUnicode
  14. # r = FileReader('/Users/ces/Desktop/code/naked/tests/testfiles/unicode.txt')
  15. # test1 = r.read_utf8()
  16. # test2 = XUnicode(test1, {'a': 'b'})
  17. # test3 = "Hey! It's Bengali ব য,and here is some more ২"
  18. # print(unicode(test2))
  19. if __name__ == '__main__':
  20. run_scratchpad()