Message310139
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) |
|
Date |
User |
Action |
Args |
2018-01-17 05:27:28 | ncoghlan | set | recipients:
+ ncoghlan, r.david.murray, docs@python, pgacv2 |
2018-01-17 05:27:28 | ncoghlan | set | messageid: <1516166848.42.0.467229070634.issue32573@psf.upfronthosting.co.za> |
2018-01-17 05:27:28 | ncoghlan | link | issue32573 messages |
2018-01-17 05:27:28 | ncoghlan | create | |
|