Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Mach-O linkage detection in Lib/platform.py #114490

Closed
aidenfoxivey opened this issue Jan 23, 2024 · 0 comments
Closed

Add support for Mach-O linkage detection in Lib/platform.py #114490

aidenfoxivey opened this issue Jan 23, 2024 · 0 comments
Labels
OS-mac type-feature A feature request or enhancement

Comments

@aidenfoxivey
Copy link
Contributor

aidenfoxivey commented Jan 23, 2024

Feature or enhancement

Proposal:

Proposed behaviour on MacOS.

>>> import platform
>>> platform.architecture()
('64bit', 'Mach-O')

Current behaviour as tested with Python 3.11.7 on 24.05.20240115.e062961+darwin4.44a6ec1.

>>> import platform
>>> platform.architecture()
('64bit', '')

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

@aidenfoxivey aidenfoxivey added the type-feature A feature request or enhancement label Jan 23, 2024
ronaldoussoren pushed a commit that referenced this issue Jan 26, 2024
``platform.architecture()`` now returns the format of binaries (e.g. Mach-O) instead of the default empty string.

Co-authored-by: AN Long <aisk@users.noreply.github.com>
aisk added a commit to aisk/cpython that referenced this issue Feb 11, 2024
…hon#114491)

``platform.architecture()`` now returns the format of binaries (e.g. Mach-O) instead of the default empty string.

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-mac type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants