Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #9038 > unrolled thread

Re: Question- Getting Windows 64bits information Python 32bits

Started byPhilip Reynolds <phil@brassy.net>
First post2011-07-07 17:33 +0100
Last post2011-07-07 17:33 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Question- Getting Windows 64bits information Python 32bits Philip Reynolds <phil@brassy.net> - 2011-07-07 17:33 +0100

#9038 — Re: Question- Getting Windows 64bits information Python 32bits

FromPhilip Reynolds <phil@brassy.net>
Date2011-07-07 17:33 +0100
SubjectRe: Question- Getting Windows 64bits information Python 32bits
Message-ID<mailman.750.1310056729.1164.python-list@python.org>
On Thu, 07 Jul 2011, Andrew Berg wrote:

> On 2011.07.07 10:21 AM, António Rocha wrote:
> > I'm running Python (32b) in Windows7 (at 64bits) and I would like to
> > know how can I check if my machine is a 32b or 64b in Python. Is it
> > possible? I saw a few examples (like platform) but they only provide
> > information about Python not the machine.
> os.environ['processor_architecture']
> 
> os.environ is a dictionary of system environment variables. That exact
> key probably only exists on Windows, but I'm there is a similar key on
> other platforms.

$ python -c 'import platform; print platform.architecture()'
('64bit', 'ELF')

  http://docs.python.org/library/platform.html

Phil.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web