[Python-ideas] os.architecture

Chris Angelico rosuav at gmail.com
Mon Dec 30 00:42:42 CET 2013


On Mon, Dec 30, 2013 at 10:39 AM, anatoly techtonik <techtonik at gmail.com> wrote:
>> download('http://www.libsdl.org/release/SDL2-2.0.1-win32-'+uname()[4])+'.zip')
>
> Nothing personal, but that code is awful.

You're right, it's buggy because I didn't test it. Superfluous close
parenthesis there. But my point is that the architecture is right
there in the name, so you can save yourself the trouble and just use
what comes from uname directly.

ChrisA


More information about the Python-ideas mailing list