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 Windson Yang, lemburg, ronaldoussoren, serhiy.storchaka, vstinner
Date 2018-12-18.11:12:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545131579.29.0.788709270274.issue35348@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, I closed my PR 11186 which modified architecture() to only return struct.calcsize('P') if the executable argument is equal to sys.executable.

> please read the doc-string of the platform.architecture() function (or ask the person who wrote most of the module). It clearly refers to inspecting a specific executable and only uses the Python interpreter as default. The running process can provide some sane defaults, but is not necessarily using the same values as the given executable.

I see the platform module as a module to get info about the operating system and Python, but it seems like I misunderstood the purpose of the specific case of the architecture() function.

I propose a small addition to the doc to avoid confusion:
https://github.com/python/cpython/pull/11208/files
History
Date User Action Args
2018-12-18 11:12:59vstinnersetrecipients: + vstinner, lemburg, ronaldoussoren, serhiy.storchaka, Windson Yang
2018-12-18 11:12:59vstinnersetmessageid: <1545131579.29.0.788709270274.issue35348@psf.upfronthosting.co.za>
2018-12-18 11:12:59vstinnerlinkissue35348 messages
2018-12-18 11:12:59vstinnercreate