消息 [310139]
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) |
|
| 日期 |
用户 |
动作 |
参数 |
| 2018-01-17 05:27:28 | ncoghlan | 修改 | recipients:
+ ncoghlan, r.david.murray, docs@python, pgacv2 |
| 2018-01-17 05:27:28 | ncoghlan | 修改 | messageid: <1516166848.42.0.467229070634.issue32573@psf.upfronthosting.co.za> |
| 2018-01-17 05:27:28 | ncoghlan | 链接 | issue32573 messages |
| 2018-01-17 05:27:28 | ncoghlan | 创建 | |
|