32 OS on 64-bit machine

MrJean1 MrJean1 at gmail.com
Thu May 3 10:58:19 EDT 2007


$ python
Python 2.5c1 (r25c1:51305, Sep 12 2006, 08:39:50)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> print platform.processor()
x86_64
>>> print platform.architecture()
('64bit', 'ELF')
>>>

This is an Opteron box running 64-bit RedHat Enterprise Lunix release
3 update 7, not 32-bit.

$ uname -a
Linux localhost.localdomain 2.4.21-40.EL #1 Thu Feb 2 22:20:41 EST
2006 x86_64 x86_64 x86_64 GNU/Linux

/Jean Brouwers



On May 3, 2:10 am, SamG <mad.vi... at gmail.com> wrote:
> If anyone has a x86_64 machine and is running a 32bit OS on top of
> that.... could you tell me what output would you get for the following
> program
>
> #======================
> import platform
> print platform.processor()
> print platform.architecture()
> #======================
>
> Thanks in advance
> : )~




More information about the Python-list mailing list