This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cben
Recipients belopolsky, cben, eric.araujo, lesmana, loewis, ned.deily, pitrou, r.david.murray, ronaldoussoren
Date 2011-09-05.18:29:38
SpamBayes Score 1.3350463e-07
Marked as misclassified No
Message-id <>
Easily detecting interactive mode is of general interest for customization.

1. What if C also set sys.flags.interactive in "python" mode,
   or exposed sys.flags.implicit_interactive (but with better name)?

2. It's more useful to have a hook called when entering interactive mode,
   rather than a flag that's set from the beginning:

   $ python -i -c 'import sys; print sys.flags.interactive'

   For this, importing _setupinteractive is a step forward;
   calling e.g. sys.__interactivehook__ sounds even better.
   ( would set it by default to a function that enables
   rlcompleter, user can always override...)

BTW, drawback of doing any such setup in "python -S" would 
be unfriendly!
Date User Action Args
2011-09-05 18:29:39cbensetrecipients: + cben, loewis, ronaldoussoren, belopolsky, pitrou, ned.deily, eric.araujo, r.david.murray, lesmana
2011-09-05 18:29:39cbensetmessageid: <>
2011-09-05 18:29:38cbenlinkissue5845 messages
2011-09-05 18:29:38cbencreate