Re: [Python-ideas] Why does sys.flags have both .interactive and .inspect?

On 2015-08-23 20:26, Alexander Walters wrote:
I tested it, and they _can_ be different. sys.flags.interactive will be true if you include the -i switch. sys.flags.inspect will be true if you include the -i switch or set the PYTHONINSPECT environment variable. Thus, if you don't include the -i switch but _do_ set PYTHONINSPECT, sys.flags.interactive will be false and sys.flags.inspect will be true.

On Aug 24, 2015, at 00:07, Alexander Walters <tritium-list@sdamon.com> wrote:
Wouldn't it be better to write a more complete explanation of what "inspect" and "interactive" mean, so it's obvious that the one must imply the other but not vice-versa, instead of just saying that one implies the other and still leaving what they actually mean a mystery to anyone who doesn't read the C source?

On Aug 24, 2015, at 00:07, Alexander Walters <tritium-list@sdamon.com> wrote:
Wouldn't it be better to write a more complete explanation of what "inspect" and "interactive" mean, so it's obvious that the one must imply the other but not vice-versa, instead of just saying that one implies the other and still leaving what they actually mean a mystery to anyone who doesn't read the C source?
participants (3)
-
Alexander Walters
-
Andrew Barnert
-
MRAB