Author ncoghlan
Recipients docs@python, ncoghlan, pgacv2, r.david.murray
Date 2018-01-17.05:27:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516166848.42.0.467229070634.issue32573@psf.upfronthosting.co.za>
In-reply-to
Content
There are actually 3 attributes that may be absent when CPython itself isn't managing the C level entry point: sys.argv, sys.warnoptions, and sys._xoptions.

I'd be more inclined to make the implementation match the docs though, and have these all be empty lists in the not-configured case, rather than absent entirely. (Accessing sys.argv[0] would still be an error in that situation, just an IndexError instead of an AttributeError)
History
Date User Action Args
2018-01-17 05:27:28ncoghlansetrecipients: + ncoghlan, r.david.murray, docs@python, pgacv2
2018-01-17 05:27:28ncoghlansetmessageid: <1516166848.42.0.467229070634.issue32573@psf.upfronthosting.co.za>
2018-01-17 05:27:28ncoghlanlinkissue32573 messages
2018-01-17 05:27:28ncoghlancreate