This is an automated email letting you know that sources 
have recently been pushed out.  You can download these newer 
sources directly from 
http://ironpython.codeplex.com/SourceControl/changeset/view/50138.

ADDED SOURCES
        
$/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/NamespaceTrackerOps.cs

DELETED SOURCES
        
$/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/ReflectedPackageOps.cs

MODIFIED SOURCES
        
$/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/NamespaceTrackerOps.cs
        $/IronPython/IronPython_Main/Lib/iptest/test_env.py
        $/IronPython/IronPython_Main/Src/IronPython/Lib/iptest/test_env.py
        $/IronPython/IronPython_Main/Src/IronPython.Modules/_warnings.cs
        $/IronPython/IronPython_Main/Src/Tests/regressions.py
        
$/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonGetMemberBinder.cs
        
$/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonBinder.cs
        $/IronPython/IronPython_Main/Src/Tests/modules/_sha256.py
        $/IronPython/IronPython_Main/Src/Tests/modules/_sha512.py
        
$/IronPython/IronPython_Main/Src/IronPython/Runtime/Exceptions/PythonExceptions.cs
        
$/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/PythonOps.cs
        $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs
        $/IronPython/IronPython_Main/Src/IronPython/Runtime/Symbols.Generated.cs
        $/IronPython/IronPython_Main/Src/IronPython/Runtime/Builtin.cs
        $/IronPython/IronPython_Main/Src/IronPython/Runtime/Importer.cs
        $/IronPython/IronPython_Main/Src/Tests/test_str.py
        $/IronPython/IronPython_Main/Src/Tests/test_set.py
        $/IronPython/IronPython_Main/Src/Tests/test_namebinding.py
        $/IronPython/IronPython_Main/Src/Tests/test_methoddispatch.py
        $/IronPython/IronPython_Main/Src/Tests/test_imp.py
        $/IronPython/IronPython_Main/Src/Tests/test_doc.py
        $/IronPython/IronPython_Main/Src/IronPython.Modules/imp.cs
        $/IronPython/IronPython_Main/Src/Tests/test_cliclass.py
        $/IronPython/IronPython_Main/Src/Tests/test_binascii.py
        $/IronPython/IronPython_Main/Src/IronPython.Modules/binascii.cs
        $/IronPython/IronPython_Main/Src/IronPython/Properties/AssemblyInfo.cs
        $/IronPython/IronPython_Main/Src/Scripts/generate_symboltable.py
        $/IronPython/IronPython_Main/Tutorial/Tutorial.htm
        $/IronPython/IronPython_Main/Src/IronPython/Compiler/Parser.cs
        $/IronPython/IronPython_Main/Src/IronPython/IronPython.csproj

CHECKIN COMMENTS
--------------------------------------------------------------------------------
Changeset Id: 869226
Date: 5/12/2009 7:10:04 PM

(dfugate) * CP19675 (regressions.py) - extended regression
* test_cliclass.py - extended a regression
* test_doc.py - small refactoring and added a regression for CP21360
* test_methoddispatch.py - improved test_security_crypto a bit
* CP20956 (test_namebinding.py) - extended regression.  Not fixed
* test_set.py:
  - moved 'isPython25' definition to iptest.test_env
  - improved test_equality
* test_str.py - improved test_subclass_ctor


(Shelveset: CP58;REDMOND\dfugate | SNAP CheckinId: 8328)
--------------------------------------------------------------------------------
Changeset Id: 869126
Date: 5/12/2009 6:04:15 PM

(dinov) This fixes an import bug reported by Harry related to pygments – when 
we do an import we currently resolve the module and then return it.  We’re 
supposed to go back into sys.modules and lookup the module again.  This enables 
a module to publish a new object back into sys.modules under the modules name 
and have that object returned from the import machinery.  This change is the 
change in the importer where we’re tracking “finalName” and the final import 
look which used to be “now import the b.c” and is now “now import the a.b.c”.

Also adding support for __package__ (PEP 366 
http://www.python.org/dev/peps/pep-0366/, codeplex work item #19541 - 2.6: add 
__package__ attribute to modules).  This is automatically set when an explicit 
relative import happens and it is consulted when doing any form of a relative 
import.  It also gets set via imp.new_module and on built-in modules.

Tests in test_import are fixed as is CodePlex bug #21912 (Relative imports from 
functions should throw ValueError, not SyntaxError).  Test_import fixes include 
detecting recursive reload and “from .x import *” is now legal.

We also now match the exception CPython reports when trying to import a 
filename – this fixes 2.6 work item 19586 (2.6: __import__ shouldn't allow 
filenames).

To pass a reasonable amount of the test_import bugs I had to made some tweaks 
to _warnings.  First formatwarning/showwarning aren’t part of the C module so 
I’ve made these internal.  We still have an implementation of these simply for 
when we’re running w/o CPython’s warnings.py.  Today this still occurs w/ our 
test_warnings.py test.  Then I’ve changed it to look up showwarnings  in the 
actual warnings module.  Finally I needed to make PerformModuleReload only 
create it’s state once – Cpython’s test_warnings imports this multiple times 
and gets the same filters list.

Also renaming ReflectedPackageOps -> NamespaceTrackerOps.


(Shelveset: FixImportAndAddPackageFinal;REDMOND\dinov | SNAP CheckinId: 8326)

_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to