Hi,

Why does the "executable" parameter default to sys.executable? Yesterday I was 
surprised to see platform.architecture return "32bit" on a 64-bit system, just 
because a 32-bit Python interpreter was installed. Wouldn't this make more 
sense:

import sys, platform

pf = sys.platform.lower()[:3]
executable = "iexplore.exe" if pf[:3] == "win" else "/bin/ls"
arch = platform.architecture(executable)[0]
 

Regards, 
Albert-Jan 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
All right, but apart from the sanitation, the medicine, education, wine, public 
order, irrigation, roads, a 
fresh water system, and public health, what have the Romans ever done for us? 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to