[Python-bugs-list] [Bug #115676] repr(__builtin__.license) reads from stdin

noreply@sourceforge.net noreply@sourceforge.net
Fri, 29 Sep 2000 21:40:11 -0700


Bug #115676, was updated on 2000-Sep-29 10:47
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Open
Resolution: None
Bug Group: None
Priority: 7
Summary: repr(__builtin__.license) reads from stdin

Details: Invoking repr or str on __builtin__.license invokes the site._Printer's __repr__ mthod which interacts with the console.  This causes problems for tools, such as a debugger, that use repr to inspect the environment and might set a bad precedent  for definition of __repr__, which is documented to return a string representation of the value.  I realize that _Printer is used to provide a pager for the license in an interactive interpreter session.  Could it only be used when the session is interactive and disabled when running a scipt from a file?  I realize that individual tools can work around this, but it seems odd to have to special case this.

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=115676&group_id=5470