[IronPython] IronPython 2.6 CodePlex Source Update

merllab at microsoft.com merllab at microsoft.com
Thu May 28 17:53:35 CEST 2009


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/53083.

MODIFIED SOURCES
	$/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/PointerType.cs
	$/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/MemoryHolder.cs
	$/IronPython/IronPython_Main/Src/IronPython.Modules/_struct.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/MetaPythonType.Calls.cs
	$/IronPython/IronPython_Main/Src/IronPython.Modules/nt.cs
	$/IronPython/IronPython_Main/Src/IronPython.Modules/gc.cs
	$/IronPython/IronPython_Main/Src/IronPython.Modules/codecs.cs
	$/IronPython/IronPython_Main/Src/IronPython/Hosting/PythonOptionsParser.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/WithStatement.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Parser.cs
	$/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Actions/TypeTracker.cs
	$/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Actions/TypeGroup.cs
	$/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Interpreter/LightCompiler.cs
	$/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Generation/CompilerHelpers.cs
	$/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Interpreter/Instruction.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/BuiltinFunction.Generated.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonGetMemberBinder.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonInvokeBinder.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonSetMemberBinder.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/BuiltinFunction.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/PythonType.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/PythonOps.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/LiteralParser.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonBuffer.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Builtin.cs
	$/IronPython/IronPython_Main/Src/Tests/Modes/ConsoleFlags.ps1
	$/IronPython/IronPython_Main/Src/Tests/interop/com/apps/excel.py
	$/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Runtime/ExceptionHelpers.cs
	$/IronPython/IronPython_Main/Src/Tests/regressions.py
	$/IronPython/IronPython_Main/Src/Tests/specialcontext/Consoleless.ps1
	$/IronPython/IronPython_Main/Src/Tests/test_cliclass.py
	$/IronPython/IronPython_Main/Src/Tests/test_buffer.py
	$/IronPython/IronPython_Main/Src/Scripts/generate_calls.py
	$/IronPython/IronPython_Main/Src/Tests/test_nt.py
	$/IronPython/IronPython_Main/Src/Tests/test_stdconsole.py
	$/IronPython/IronPython_Main/Src/Tests/test_gc.py
	$/IronPython/IronPython_Main/Src/Tests/test_codecs.py
	$/IronPython/IronPython_Main/Src/Tests/test_superconsole.py
	$/IronPython/IronPython_Main/Src/Tests/test_traceback.py

CHECKIN COMMENTS
--------------------------------------------------------------------------------
Changeset Id: 918179
Date: 5/27/2009 10:36:35 AM

(dfugate) Renamed "IPY_OPTIONS" environment variable to "TEST_OPTIONS" which is a bit more IronRuby friendly.


(Shelveset: TEST_OPTIONS;REDMOND\dfugate | SNAP CheckinId: m9247)
--------------------------------------------------------------------------------
Changeset Id: 918178
Date: 5/27/2009 10:35:23 AM

(dinov) Tfpt review /shelveset:LotsOfPythonBugs;dinov

Python + 1 DLR Interpreter Change

First the DLR interpreter change – this is fixing a stack trace issue reported by Curt.  When we have a mixed interpreted/compiled stack we’re getting the wrong result.  This is because of few reasons:
1.	We need to clear the stack back trace we’ve calculated for Python when we re-throw the exception otherwise we’ll re-use it.  I’ve made the rethrow in WithStatement now throw through our helper and updated the interpreter to do nothing special w/ repros making it closer to the compiled code path.
2.	Over in ExceptionHelpers we are combining the saved stacks + the new stacks in the incorrect order when reverse frames is true.  This causes us to get confused and lose frames.

20634 hex_codec needs to be imported before hex decode can happen  
15428 ".". does not generate a SyntaxError in interactive sessions  
15348 TypeError thrown for IronPython.Compiler.Ast.ErrorExpression cast failure in interactive sessions  
20302 codecs.lookup errors with uppercase encoding names  
20051 Re-raising exception causes loss of traceback  
22259 len(buffer) is incorrect  
4565 Support all encodings CPython does for _codecs.encode and _codecs.decode  
21929 os.listdir does not accept empty path  
20603 Trivial: os.walk(‘’) doesn’t work
2169 test_isinstance incompatibilities with CPython  
17235 dir(System.ArgIterator) broken  
20039 struct.pack('L', -1) is stricter than in CPython 
19484 Error with timeit.py module 
19005 Strange issues with BOM?  
10816 -X:MaxRecursion N<=1 broken  
19278 Confusing Error Message when using in operator
13912 TypeError: Could not create instance of <type 'Visual'>	Improve the error message – we now include that the type is abstract

Also assigning to MemoryHolder’s size as caught in code review, fixing build.bat to run w/ frames enabled.


(Shelveset: LotsOfPythonBugsFinal2;REDMOND\dinov | SNAP CheckinId: m9247)



More information about the Ironpython-users mailing list