comparison cmd2.py @ 242:d36ffc16f575

adjust docstring for windows
author catherine@dellzilla
date Tue, 24 Mar 2009 15:28:04 -0400
parents af17ead6449d
children de3e2a040279
comparison
equal deleted inserted replaced
241:af17ead6449d 242:d36ffc16f575
789 return 789 return
790 790
791 def do_py(self, arg): 791 def do_py(self, arg):
792 ''' 792 '''
793 py <command>: Executes a Python command. 793 py <command>: Executes a Python command.
794 py: Enters interactive Python mode; `Ctrl-D`, `quit()`, 'exit()` ends. 794 py: Enters interactive Python mode.
795 End with `Ctrl-D` (Unix) / `Ctrl-Z` (Windows), `quit()`, 'exit()`.
795 Non-python commands can be issued with `cmd("your command")`. 796 Non-python commands can be issued with `cmd("your command")`.
796 ''' 797 '''
797 if arg.strip(): 798 if arg.strip():
798 interp = InteractiveInterpreter(locals=self.pystate) 799 interp = InteractiveInterpreter(locals=self.pystate)
799 interp.runcode(arg) 800 interp.runcode(arg)