[Patches] [ python-Patches-921793 ] Rewrite of site.py

SourceForge.net noreply at sourceforge.net
Tue Mar 23 12:44:22 EST 2004


Patches item #921793, was opened at 2004-03-23 07:05
Message generated for change (Comment added) made by bcannon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=921793&group_id=5470

Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 3
Submitted By: Brett Cannon (bcannon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Rewrite of site.py

Initial Comment:
Brought to you by the PyCon core sprint, I rewrote Lib/site.py to 
clean it up and modernize it.  The biggest change is putting all the 
code into appropriate functions and defining a main() function that 
gets executed at import.  Cleans up the code and allows others to 
run the functions after import in case they want the functionality.

Also modernized it by using sets and universal newlines.

A new test suite is also being included in this tracker item.  You  
can partially run it against the original site.py, but some tests will 
fail since they call new functions.

----------------------------------------------------------------------

>Comment By: Brett Cannon (bcannon)
Date: 2004-03-23 09:44

Message:
Logged In: YES 
user_id=357491

OK, now the test passes.  Problem test was not matching what the code 
did by creating a normalized, absolute path of what was in sys.path .

----------------------------------------------------------------------

Comment By: Brett Cannon (bcannon)
Date: 2004-03-23 09:37

Message:
Logged In: YES 
user_id=357491

Just discovered one of  the regression tests fails if you run all the tests 
with regrtest.py.  Trying to fix now since it is a bug in the test.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=921793&group_id=5470



More information about the Patches mailing list