The Python Oracle

Tell if Python is in interactive mode

This video explains
Tell if Python is in interactive mode

--

Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Thinking It Over

--

Chapters
00:00 Question
00:45 Accepted answer (Score 71)
01:09 Answer 2 (Score 38)
01:36 Answer 3 (Score 29)
01:51 Answer 4 (Score 15)
02:04 Thank you

--

Full question
https://stackoverflow.com/questions/2356...

Question links:
[tell whether python is in -i mode]: https://stackoverflow.com/questions/6403...

Answer 1 links:
[image]: https://i.stack.imgur.com/46JOY.png

Answer 2 links:
[sys.ps1]: http://docs.python.org/library/sys.html#...
[sys.ps2]: http://docs.python.org/library/sys.html#...

Answer 3 links:
[sys.flags]: http://docs.python.org/library/sys.html#...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #interactive #python2.5 #python2.x

#avk47