Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9038
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <phil@brassy.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '(at': 0.03; 'python.': 0.04; 'subject:Python': 0.06; 'python': 0.08; 'received:89.234': 0.09; 'variables.': 0.09; 'examples': 0.12; 'am,': 0.13; 'wrote:': 0.15; 'os.environ': 0.16; 'phil.': 0.16; 'platform)': 0.16; 'exists': 0.19; 'subject:Windows': 0.19; '(like': 0.21; 'header :In-Reply-To:1': 0.22; 'dictionary': 0.23; 'platforms.': 0.23; 'subject:Question': 0.25; 'subject:information': 0.25; "i'm": 0.27; 'thu,': 0.28; 'possible?': 0.29; 'environment': 0.29; 'subject:Getting': 0.30; 'url:library': 0.31; 'print': 0.32; 'andrew': 0.32; 'to:addr:python-list': 0.34; 'header:User- Agent:1': 0.34; 'there': 0.34; 'machine': 0.35; 'probably': 0.35; 'running': 0.35; 'similar': 0.37; 'url:python': 0.37; 'but': 0.37; 'url:org': 0.38; 'subject:: ': 0.38; 'url:docs': 0.39; 'to:addr:python.org': 0.39; 'skip:o 30': 0.63; 'saw': 0.64; 'received:89': 0.66; 'exact': 0.69; '10:21': 0.84 |
| Date | Thu, 7 Jul 2011 17:33:16 +0100 |
| From | Philip Reynolds <phil@brassy.net> |
| To | "comp.lang.python" <python-list@python.org> |
| Subject | Re: Question- Getting Windows 64bits information Python 32bits |
| References | <CAEwAFDN_Ryi65MezJyLfSzps=ZQYCvJM=r0pgZtstKHZ+x5LBg@mail.gmail.com> <4E15D4F0.5040408@gmail.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | 8bit |
| In-Reply-To | <4E15D4F0.5040408@gmail.com> |
| User-Agent | Mutt/1.5.18 (2008-05-17) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.750.1310056729.1164.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1310056729 news.xs4all.nl 21816 [2001:888:2000:d::a6]:59254 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:9038 |
Show key headers only | View raw
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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Question- Getting Windows 64bits information Python 32bits Philip Reynolds <phil@brassy.net> - 2011-07-07 17:33 +0100
csiph-web