Author pgacv2
Recipients docs@python, ncoghlan, pgacv2, r.david.murray
Date 2018-01-17.01:17:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
My first inclination would be no. An argv value of [''] means "zero command-line arguments" (not even a filename), which implies the following as far as I know:
1. Python was called as an executable rather than a library, because you can't pass command-line arguments to a library
2. No arguments were passed to the executable
3. You are running from inside the REPL

All three are false in an embedded context.

A not-much-better-but-maybe-worth-considering question might also be: should scripts be able to tell whether they are being run from an embedded interpreter? If so, do they have any other way of doing so if an initialization is forced for argv?
Date User Action Args
2018-01-17 01:17:42pgacv2setrecipients: + pgacv2, ncoghlan, r.david.murray, docs@python
2018-01-17 01:17:41pgacv2setmessageid: <>
2018-01-17 01:17:41pgacv2linkissue32573 messages
2018-01-17 01:17:39pgacv2create