Message289941
| Author |
vstinner |
| Recipients |
barry, jwilk, ncoghlan, steven.daprano, vstinner |
| Date |
2017年03月21日.15:32:33 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1490110353.28.0.296729768618.issue29857@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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. |
|
History
|
|---|
| 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 |
|