FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add context manager protocol for .NET IDisposable types by Martin-Molinero · Pull Request #119 · QuantConnect/pythonnet · GitHub

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .cs  (1) .md  (2) .py  (2) .rst  (1) All 4 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion AUTHORS.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- Barton Cline ([@BartonCline](https://github.com/BartonCline))
- Brian Lloyd ([@brianlloyd](https://github.com/brianlloyd))
- David Anthoff ([@davidanthoff](https://github.com/davidanthoff))
- Denis Akhiyarov ([@denfromufa](https://github.com/denfromufa))
- Denis Akhiyarov ([@den-run-ai](https://github.com/den-run-ai))
- Tony Roberts ([@tonyroberts](https://github.com/tonyroberts))
- Victor Uriarte ([@vmuriart](https://github.com/vmuriart))

Expand Down
87 changes: 86 additions & 1 deletion CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,92 @@ project adheres to [Semantic Versioning][].

This document follows the conventions laid out in [Keep a CHANGELOG][].

## [Unreleased][]
## Unreleased

### Added

- Support `del obj[...]` for types derived from `IList<T>` and `IDictionary<K, V>`
- Support for .NET Framework 4.6.1 (#2701)
- Add context manager protocol for .NET IDisposable types, allowing use of `with` statements
for IDisposable objects (#2568)

### Changed
### Fixed

- Fixed crash when trying to `del clrObj[...]` for non-arrays
- ci: properly exclude job (#2542)

## [3.0.5](https://github.com/pythonnet/pythonnet/releases/tag/v3.0.5) - 2024-12-13

### Added

- Support for Python 3.13 (#2454)


## [3.0.4](https://github.com/pythonnet/pythonnet/releases/tag/v3.0.4) - 2024-09-19

### Added

- Added `ToPythonAs<T>()` extension method to allow for explicit conversion
using a specific type. ([#2311][i2311])
- Added `IComparable` and `IEquatable` implementations to `PyInt`, `PyFloat`,
and `PyString` to compare with primitive .NET types like `long`.

### Changed

- Added a `FormatterFactory` member in RuntimeData to create formatters with
parameters. For compatibility, the `FormatterType` member is still present
and has precedence when defining both `FormatterFactory` and `FormatterType`
- Added a post-serialization and a pre-deserialization step callbacks to
extend (de)serialization process
- Added an API to stash serialized data on Python capsules

### Fixed

- Fixed RecursionError for reverse operators on C# operable types from python. See #2240
- Fixed crash when .NET event has no `AddMethod`
- Fixed probing for assemblies in `sys.path` failing when a path in `sys.path`
has invalid characters. See #2376
- Fixed possible access violation exception on shutdown. See ([#1977][i1977])

## [3.0.3](https://github.com/pythonnet/pythonnet/releases/tag/v3.0.3) - 2023-10-11

### Added

- Support for Python 3.12

### Changed

- Use enum name in `repr`

## [3.0.2](https://github.com/pythonnet/pythonnet/releases/tag/v3.0.2) - 2023-08-29

### Fixed

- Fixed error occuring when inheriting a class containing a virtual generic method
- Make a second call to `pythonnet.load` a no-op, as it was intended
- Added support for multiple inheritance when inheriting from a class and/or multiple interfaces
- Fixed error occuring when calling `GetBuffer` for anything other than `PyBUF.SIMPLE`
- Bumped `clr_loader` dependency to incorporate patches

## [3.0.1](https://github.com/pythonnet/pythonnet/releases/tag/v3.0.1) - 2022-11-03

### Added

- Support for Python 3.11

### Changed

- Allow decoders to override conversion of types derived from primitive types

### Fixed

- Fixed objects leaking when Python attached event handlers to them even if they were later removed
- Fixed `PyInt` conversion to `BigInteger` and `System.String` produced incorrect result for values between 128 and 255.
- Fixed implementing a generic interface with a Python class


## [3.0.0](https://github.com/pythonnet/pythonnet/releases/tag/v3.0.0) - 2022-09-29

### Added

Expand Down
Loading
Loading

Back | FazBrowse Home | New Git URL