Einspect

Latest version: v0.5.16

Safety actively analyzes 638437 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 7

0.4.6a1

Added `MutableSequence` protocols for TupleView:
- `__delitem__` (index / slice)
- `__setitem__` (index / slice)
- `__iadd__`
- `append`
- `clear`
- `extend`
- `insert`
- `pop`
- `remove`
- `reverse`

These new methods will not require an unsafe context normally as they check the allocated memory bounds before any resize operation. If resizing will be beyond allocated memory for the tuple, an `UnsafeError` is raised.

An unsafe context can be entered to bypass this allocated memory check.


**Full Changelog**: https://github.com/ionite34/einspect/compare/v0.4.5...v0.4.6a1

0.4.5

Adds
- `View.mem_allocated` (property)
Provides the allocated memory size of an object, as `mem_size` rounded up to the nearest alignment boundary.
- Full formatting support in `DictView.info()`

Fixes
- `TupleView.mem_size` now uses more accurate implementation from `PyTupleObject`

Docs
- Added docs for structs

**Full Changelog**: https://github.com/ionite34/einspect/compare/v0.4.4...v0.4.5

0.4.4

New Structs
- `PyGC_Head`

New methods for PyObject
- `is_gc`
- `as_gc`
- `gc_is_tracked`
- `gc_may_be_tracked`

New methods for View
- `is_gc`
- `gc_is_tracked`
- `gc_may_be_tracked`

**Full Changelog**: https://github.com/ionite34/einspect/compare/v0.4.3...v0.4.4

0.4.3

New
* Add `impl` decorator for built-in type attribute overrides, and `orig` proxy to get original attributes by ionite34 in https://github.com/ionite34/einspect/pull/16


**Full Changelog**: https://github.com/ionite34/einspect/compare/v0.4.2...v0.4.3

0.4.2

Fixes
* Fix DictView iter and delitem methods for MutableMapping protocol by ionite34 in https://github.com/ionite34/einspect/pull/15

Docs
* Package metadata - Revert lower bound python requirement to 3.8.0 by ionite34 in https://github.com/ionite34/einspect/pull/14


**Full Changelog**: https://github.com/ionite34/einspect/compare/v0.4.1...v0.4.2

0.4.1.post1

Docs and Metadata
* Package metadata - Revert lower bound python requirement to 3.8.0 by ionite34 in https://github.com/ionite34/einspect/pull/14

**Full Changelog**: https://github.com/ionite34/einspect/compare/v0.4.1...v0.4.1.post1

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.