Message289941
> If the embedding application doesn't call PySys_SetArgv or PySys_SetArgvEx, then there is no `argv` attribute defined in the sys module (I wasn't actually sure what happened in that case, so I went and checked the code).
Ok, so just don't define sys._raw_argv in that case. But it doesn't seem enough to me to justify to make the attribute private.
https://docs.python.org/dev/library/sys.html#sys.getallocatedblocks can be seen as an implementation detail.The method name has no underscore prefix, but a simple fallback: return 0 if the feature is is not implemented. |
|
Date |
User |
Action |
Args |
2017-03-21 15:32:33 | vstinner | set | recipients:
+ vstinner, barry, ncoghlan, jwilk, steven.daprano |
2017-03-21 15:32:33 | vstinner | set | messageid: <1490110353.28.0.296729768618.issue29857@psf.upfronthosting.co.za> |
2017-03-21 15:32:33 | vstinner | link | issue29857 messages |
2017-03-21 15:32:33 | vstinner | create | |
|