Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # encoding: utf-8
- #
- # Copyright (c) 2008 Doug Hellmann All rights reserved.
- #
- """
- """
- __version__ = "$Id$"
- #end_pymotw_header
- import readline
- readline.read_init_file('myreadline.rc')
- while True:
- line = raw_input('Prompt ("stop" to quit): ')
- if line == 'stop':
- break
- print 'ENTERED: "%s"' % line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement