[Patches] [ python-Patches-661583 ] Remove old code from lib\os.py

SourceForge.net noreply@sourceforge.net
Wed, 08 Jan 2003 12:54:06 -0800


Patches item #661583, was opened at 2003-01-03 13: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: Open
Resolution: None
Priority: 3
Submitted By: Andrew Wilkinson (andrew_j_w)
Assigned to: Nobody/Anonymous (nobody)
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: Andrew Wilkinson (andrew_j_w)
Date: 2003-01-08 20: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