| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Added a unit test which consists ofa python class inheriting from a C# class which has a virtual generic method. In this version, this causes a InvalidProgramException to be thrown during class creation.
Previously an exception was thrown during class creation if the python class inherited from a class with a virtual generic method. This has been fixed by ignoring generic methods when creating overloads in the generated class. Note, this means that generic virtual methods cannot be overridden in python code.
- Changed the behavior so that a .NET is always created when the base type is also a .NET type.
- Added shortened Attribute aliases which just generates tuples. - More general CLR base class support - creating a class instance from C# is now more similar to creating one from python. - Added attribute decorator to clr.py. - Added testing for the various possibilities
- Fixed search bug in AssocAttribute - Added testing
… inside a .NET module.
Added support for specifying attributes on property-methods (eg. get/set attributes).
…eritGenericVirtualMethodFix2
Added a few cleanups and comments.
| if (!clsDict.HasKey("__namespace__")) | ||
| { | ||
| clsDict["__namespace__"] = | ||
| (clsDict["__module__"].ToString()).ToPython(); | ||
| } |
There was a problem hiding this comment.
Can't introduce breaking changes
Sorry, something went wrong.
| Python.Runtime.Runtime.PythonDLL = | ||
| "C:\\Python37.2\\python37.dll"; |
There was a problem hiding this comment.
clean up the history
Sorry, something went wrong.
| /// <summary> | ||
| /// Creates a new instance of PythonTypeAttribute. | ||
| /// </summary> | ||
| /// <param name="pyTypeModule"></param> | ||
| /// <param name="pyTypeName"></param> |
There was a problem hiding this comment.
This XML doc does not have any useful information.
Sorry, something went wrong.
|
@lostmsu, ok, I understand. I just want to make sure you agree with the intentions here before I spend a lot of work trying to separate things out. What about the support for Attributes and interfaces? Are you ok with adding something like that? Anyway, it sounds like you want #1774 implemented in a specific way? Maybe it is easier that it is not me who develops that then? I'll try to take #1776 and create a separate PR for it. |
Sorry, something went wrong.
Sorry, something went wrong.
|
Superseded by smaller changes |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR contains multiple improvements:
@attribute(DisplayName("X")) @method() def X(self): passClose #1776, #1774, #1768
Check all those that are applicable and complete.