[Python-ideas] os.architecture
Chris Angelico
rosuav at gmail.com
Mon Dec 30 01:08:16 CET 2013
On Mon, Dec 30, 2013 at 10:57 AM, anatoly techtonik <techtonik at gmail.com> wrote:
> On Mon, Dec 30, 2013 at 2:42 AM, Chris Angelico <rosuav at gmail.com> wrote:
>> 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.
>
> I write code for aliens. They might be confused that x86 < x64.
Who cares? You're building up a URL and going and downloading it. The
user needn't even be aware of it. You're actually writing code for
code, here.
ChrisA
More information about the Python-ideas
mailing list