This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:33vstinnersetrecipients: + vstinner, barry, ncoghlan, jwilk, steven.daprano
2017-03-21 15:32:33vstinnersetmessageid: <1490110353.28.0.296729768618.issue29857@psf.upfronthosting.co.za>
2017-03-21 15:32:33vstinnerlinkissue29857 messages
2017-03-21 15:32:33vstinnercreate