X Tutup
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tminka/pythonnet
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: TestPythonTest
Choose a base ref
...
head repository: tminka/pythonnet
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 12 commits
  • 61 files changed
  • 6 contributors

Commits on Jan 5, 2021

  1. Merge pull request pythonnet#1341 from tminka/TestPythonTest

    Python tests can now be debugged by running them as embedded tests within NUnit
    
    Fixed import hook replacing import error message
    lostmsu authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    96cc739 View commit details
    Browse the repository at this point in the history
  2. Operator overloads support (pythonnet#1324)

    C# operator methods generate instance methods on the Python side like `__add__`. The arguments passed from Python are then processed by `MethodBinder`.
    
    Co-authored-by: Victor <lost@losttech.software>
    christabella and lostmsu authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    9f01ebb View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2021

  1. Configuration menu
    Copy the full SHA
    0c41273 View commit details
    Browse the repository at this point in the history
  2. Support changes to CLR code when domain reloads

    * Adds test cases for member changes during a domain reload
    
    * Rework the serialization of reflected types
    
    Serialization of System.Type, MemberInfo and MethodBase is now string
    based. At deserialization, use reflection to attempt to recreate the
    object, which may fail safely instead of throwing a
    SerializaitonException during the deserialization of the whoie data
    stream. Appropriate Exceptions will now be raised when the Maybe*'s
    Value property.
    
    ClassBase objects are now de-initialized and re-initialized in Reload
    mode so that it's tp_dict picks up newly added members and removed
    members no longer linger.
    
    ModuleObject clears it's cache and remove cached members from it's
    tp_dict.
    
    Minor refactoring and modernization of MethodObject and MethodBinder
    
    * Call PyType_Modified after modifying the type
    
    Changing a type's attribute causes problem with it's cache. Force the
    type to refresh itself when modifying it.
    
    * Refactor the member binding logic of ClassManager
    
    So that we can use that same logic when deserializing Maybe* types
    
    * Include info about why deserialization failed in Maybe*
    
    * Remove TestClassReference
    
    The test case is covered in test_domain_relaod
    
    Co-authored-by: Benedikt Reinartz <filmor@gmail.com>
    Co-authored-by: Victor Milovanov <lost@losttech.software>
    3 people authored Jan 7, 2021
    Configuration menu
    Copy the full SHA
    d6c0081 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2021

  1. Configuration menu
    Copy the full SHA
    ed6763c View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2021

  1. Configuration menu
    Copy the full SHA
    e44aa46 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2021

  1. Configuration menu
    Copy the full SHA
    0f33f71 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2021

  1. Add PythonEngine.Interrupt (pythonnet#1337)

    Also added GetPythonThreadID
    gpetrou authored Jan 21, 2021
    Configuration menu
    Copy the full SHA
    5fd77b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e7cbca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    32fdc9c View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2021

  1. Better error messages for method argument mismatch and others (python…

    …net#1361)
    
    Better error messages for method argument mismatch, Python to managed value conversion, and other problems.
    
    - Converter.ToManaged obeys setError consistently
    - PyObject_Hash and tp_hash return nint
    - MakeGenericType and MakeGenericMethod have try/catch
    - RaiseTypeError sets __cause__ instead of changing the message string
    - PythonException.Normalize throws if an error is set
    - AggregateExceptions print better from Python
    - For an overloaded method, MethodBinder.Bind collects all binding errors with PythonExceptions as the inner.inner exceptions.
    - ExceptionClassObject.tp_str calls Exception.ToString() instead of Exception.Message
    (for justification see https://stackoverflow.com/questions/2176707/exception-message-vs-exception-tostring )
    - Binding failures always have AggregateException as the cause, 
    - Disabled test_method_parameters_change
    tminka authored Jan 27, 2021
    Configuration menu
    Copy the full SHA
    92932fd View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2021

  1. Added the ability to implement delegates with ref and out paramet…

    …ers in Python, by returning the modified parameter values in a tuple.
    
    BREAKING: MethodBinder omits a void return type when returning a tuple of out parameters.
    DelegateManager unpacks a tuple of out parameters from Python (reversing the logic in MethodBinder) and sets the out parameters of the delegate.
    tminka authored and lostmsu committed Jan 28, 2021
    Configuration menu
    Copy the full SHA
    063a674 View commit details
    Browse the repository at this point in the history
Loading
X Tutup