In message <mailman.850.1284782522.29448.python-l...@python.org>, Ned Deily wrote:
> try: > import readline > except ImportError: > print("Module readline not available.") > else: > import rlcompleter > readline.parse_and_bind("tab: complete") > > Note the print() form which works with either Python 2 or 3. You should be writing diagnostics to stderr, not stdout. -- http://mail.python.org/mailman/listinfo/python-list