[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-16 Thread Ammar Askar

Ammar Askar  added the comment:

Thanks for your understanding Boštjan, closing this as requested.

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-16 Thread Boštjan Mejak

Boštjan Mejak  added the comment:

Thanks for letting me know about py-cpuinfo. It is a very good tool. It solves 
my problem. This Python issue can now be closed as "Won't fix".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-15 Thread Ammar Askar


Ammar Askar  added the comment:

Your best bet then is probably using a library built for this purpose like 
https://github.com/workhorsy/py-cpuinfo

Like Christian said, exposing this information in the standard library would be 
a fairly large maintenance burden for a feature that can't really be actioned 
upon from pure Python code.

--
nosy: +ammar2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-14 Thread Boštjan Mejak

Boštjan Mejak  added the comment:

Unfortunately, I don't know C, only Python.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-14 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think your best bet will be to write a small C extension to find out what's 
supported by the processor.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-12 Thread Boštjan Mejak

Boštjan Mejak  added the comment:

This feature is needed for a chess GUI application because the Stockfish chess 
engine is offered in different builds: a build that supports the POPCNT 
processor instruction and a build that doesn't, a build that supports the 
BMI/BMI2 processor instruction set, a 32-bit build and a 64-bit build, also a 
Windows build and a Linux build.

Then the chess GUI application can check if the processor supports the POPCNT 
instruction or the BMI/BMI2 processor instruction set and can load an 
appropriate Stockfish build to analyze a chess game or play against a human 
chess player by using the appropriate Stockfish build for the machine the chess 
GUI application is running on.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-12 Thread Eric V. Smith


Eric V. Smith  added the comment:

What would you use this information for, if it were available from Python code?

--
nosy: +eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-12 Thread Christian Heimes


Christian Heimes  added the comment:

Python's standard library doesn't aim to solve all problems. Python also 
supports a lot of platforms and CPU architectures. We'd have to implement this 
on major platforms like BSD, Linux, and Windows as well as other supported 
platforms like AIX or VMS multiplied by all support CPUs architectures like 
X86, X86_64, multiple ARMs, ...

This sounds like a feature that can be implemented in a PyPI package.

--
nosy: +christian.heimes
versions:  -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-12 Thread Boštjan Mejak

New submission from Boštjan Mejak :

The platform module does not offer to check whether a processor supports the 
POPCNT or BMI/BMI2 processor instructions. Am I missing something or is it 
actually missing this feature?

--
components: Library (Lib)
messages: 373563
nosy: PedanticHacker
priority: normal
severity: normal
status: open
title: Built-in platform module does not offer to check for processor 
instructions
type: enhancement
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com