python 2.1.2, Linux and 'os' library: bug or (bad) feature?
Pawel Oleksik
oleksik at awa.mat.agh.edu.pl
Tue Mar 19 05:53:35 EST 2002
Martin v. Loewis <martin at v.loewis.de> wrote:
>
> I think the is the doing of X itself: start the same program from the
> shell prompt, and you should observe the same behaviour.
>
> Regards,
> Martin
>
No way! And as I've written above: python 2.1.1, 2.1.0, and 2.0.1 work OK.
BTW. just for proof:
oleksik at awa:~> ps -A
PID TTY TIME CMD
1 ? 00:00:03 init
[...]
5592 ? 00:00:02 X
[...]
oleksik at awa:~> python
Python 2.1.1 (#1, Aug 23 2001, 13:52:32)
[GCC 2.95.4 20010619 (prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> open("/proc/5592/cmdline").read()
'X\x00:1\x00'
So, IMHO, 'os' library from python 2.1.2 has a BUG.
But I'm still iteresting in your opininion.
best regards
p.o.
More information about the Python-list
mailing list