Until an architecture that differs in more than just number of bits comes out, at which point 'os.architecture == 32' starts becoming awkward.
On Sun Dec 29 2013 at 12:34:09 PM, anatoly techtonik email@example.com wrote:
On Sun, Dec 29, 2013 at 3:15 PM, Chris Angelico firstname.lastname@example.org wrote:
On Sun, Dec 29, 2013 at 10:28 PM, anatoly techtonik email@example.com
if os.architecture == 32: download('http://www.libsdl.org/release/SDL2-2.0.1-win32-x86.zip') else: download('http://www.libsdl.org/release/SDL2-2.0.1-win32-x64.zip')
Could you get that info from platform.uname()?
If Python is about readability then looking at your example, I have two questions:
- What is platform - hardware, CPU, OS, Python flavor?
- What is uname()?
For os.architecture I have only one question - what is the returned value? And it is easy to remember once you get it. It is also easy to debug. -- anatoly t. _______________________________________________ Python-ideas mailing list Pythonfirstname.lastname@example.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/