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

MRAB python at mrabarnett.plus.com
Sun Aug 23 21:20:37 CEST 2015


On 2015-08-23 19:30, Alexander Walters wrote:
> The sys.flags structure has both .interactive and .inspect for when
> python is run with -i.  I cannot figure out a way to make one 'True' and
> the other 'False'.  Are they both needed?  Can one be removed? If they
> cannot be removed, and they can indeed be different values, can it be
> documented what the difference between them is?
>
Here's an answer on StackOverflow:

http://stackoverflow.com/questions/1145428/difference-between-inspect-and-interactive-command-line-flags-in-python



More information about the Python-ideas mailing list