[IronPython] IronPython 2.6 CodePlex Source Update
merllab at microsoft.com
merllab at microsoft.com
Thu Jun 18 17:52:18 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/55001.
Changeset Id: 950981
Date: 6/17/2009 2:10:25 PM
(dinov) Implements support for generic method type inference. Mostly a DLR outer layer change with some tweaks to IronPython and IronRuby.
We no longer need to eagerly detect when we’re calling a method w/ only generics. We also add support for inferring types for Lambda arguments based upon a Python Function’s arity. Finally there’s one fix where we make sure to create the correct kind DMO instead of just the base DynamicMetaObject type. A few tests are also updated as there are some minor changes in results when overloaded by both a generic method and a non-generic method. Finally lots of new tests are added.
Ruby’s MethodGroupInfo was doing MakeGenericMethod and then returning the generic method. But the types it’s passing in are all generic parameters – so the end result is Ruby produces a method for which .IsGenericMethodDefinition is false but it contains all of the original generic method parameters. Now we return the original target so IsGenericMethodDefinition remains true. Also updated MissingBlockArgBuilder so we can know that it doesn’t really prodive any parameters. Finally the small set of tests verifying exceptions are throw are updated to expect successful inference.
This is the bulk of the changes. Added a new TypeInferer class which performs the actual type inference. Added a new CallFailureReason for noting when we failed to perform type inference. Updated the ArgBuilder’s so we can clone them w/ a new ParameterInfo. This is used for replacing the existing ArgBuilder’s built for the generic method w/ new ArgBuilders which have been specialized to the specific generic type. Fixed a couple of spots where we were creating base DynamicMetaObject’s instead of getting them from their values. Added support for MethodCandidate’s to track additional restrictions with themselves – this is necessary because the type inference can result in new type checks when inferring based ...
(Shelveset: GenericMethodTypeInferenceFinal2;REDMOND\dinov | SNAP CheckinId: 8720)
More information about the Ironpython-users