Issue3762
Created on 2008-09-03 07:04 by ocean-city, last changed 2008-09-04 11:25 by ocean-city.
|
msg72376 - (view) |
Author: Hirokazu Yamamoto (ocean-city) |
Date: 2008-09-03 07:04 |
|
I created symbolic link to python.exe as dummy.exe on cygwin.
But I noticed platform.architecture() printed ('32bit', '')
$ ./dummy
Python 2.6b3+ (trunk:66166M, Sep 3 2008, 06:43:59)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform._follow_symlinks("dummy.exe")
'/home/WhiteRabbit/python-dev/trunk/dummy.exe/python.exe'
>>>
Is this _follow_symlinks's intended behavior? If no, I hope attached
patch will fix problem. Now platform.architecture() prints
('32bit', 'WindowsPE')
|
|
msg72377 - (view) |
Author: Hirokazu Yamamoto (ocean-city) |
Date: 2008-09-03 07:05 |
|
- But I noticed platform.architecture() printed ('32bit', '')
+ But I noticed platform.architecture() printed ('32bit', '')
when I lanched python via dummy.exe
|
|
msg72378 - (view) |
Author: Hirokazu Yamamoto (ocean-city) |
Date: 2008-09-03 09:15 |
|
This sliped out of my mind. :-(
[issue3719]
>Python versions and must at least support Python 2.1.
os.path.realpath is new feature in Python2.2, so probably this cannot be
used. I attached another patch platform_v2.patch.
|
|
msg72488 - (view) |
Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) |
Date: 2008-09-04 09:26 |
|
The problem shows up on other platforms as well.
The following comes from a standard Debian 64bit:
$ /usr/bin/python -c "import platform; print platform.architecture()"
('64bit', '')
$ /usr/bin/python2.4 -c "import platform; print platform.architecture()"
('64bit', 'ELF')
And the patch corrects this.
|
|
msg72493 - (view) |
Author: Hirokazu Yamamoto (ocean-city) |
Date: 2008-09-04 11:25 |
|
Thanks, fixed in r66213(trunk), r66214(release-maint25), r66216(py3k).
|
|
| Date |
User |
Action |
Args |
| 2008-09-04 11:25:14 | ocean-city | set | status: open -> closed resolution: accepted -> fixed messages:
+ msg72493 |
| 2008-09-04 09:26:32 | amaury.forgeotdarc | set | keywords:
- needs review resolution: accepted messages:
+ msg72488 nosy:
+ amaury.forgeotdarc |
| 2008-09-04 01:36:08 | ocean-city | set | keywords:
+ easy, needs review |
| 2008-09-03 09:21:45 | ocean-city | set | files:
+ platform.patch |
| 2008-09-03 09:15:45 | ocean-city | set | files:
+ platform_v2.patch keywords:
+ patch messages:
+ msg72378 |
| 2008-09-03 07:05:49 | ocean-city | set | messages:
+ msg72377 components:
+ Library (Lib) |
| 2008-09-03 07:04:22 | ocean-city | create | |
|