[Patches] [ python-Patches-661583 ] Remove old code from lib\os.py
SourceForge.net
noreply@sourceforge.net
Wed, 08 Jan 2003 13:23:34 -0800
Patches item #661583, was opened at 2003-01-03 08:00
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=661583&group_id=5470
Category: Library (Lib)
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Andrew Wilkinson (andrew_j_w)
Assigned to: Tim Peters (tim_one)
Summary: Remove old code from lib\os.py
Initial Comment:
os.py contains exec statements for NT and CE that are
left over from Python 1.52b2.
They make it hard to statically anaylse python code os
is such a core module.
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2003-01-08 16:23
Message:
Logged In: YES
user_id=31435
Thanks, Andrew -- that code was bizarre. The patch has
been checkin in, as Lib/os.py rev 1.65, for 2.3a2.
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2003-01-08 16:10
Message:
Logged In: YES
user_id=31435
Assigned to me.
----------------------------------------------------------------------
Comment By: Andrew Wilkinson (andrew_j_w)
Date: 2003-01-08 15:54
Message:
Logged In: YES
user_id=295727
Just to make things a bit clearer...
In the standard module os there's a small amount of code (in
the windows nt and ce sections) that uses an exec statement
to load a single module. This was originally added in Python
1.52b2 but was very soon made obsolete. The exec
statement was left in however when it could quite easily be
removed to make things much clearer.
This patch makes those changes and would be completely
transparent to users of os.
The reason I ask for this is that I'm trying to statically anyalse
Python code, but I code anyalse exec or eval and having it in
such a core module, when it doesn't need to be there is
making life difficult me.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=661583&group_id=5470