Skip to content

Releases: eliegoudout/paramclasses

v0.2.2

07 Jan 20:28
Compare
Choose a tag to compare

Full Changelog: v0.1.0...v0.2.2

  • Explicit expected behaviour:
Table of Expected Behaviour
Operation on
Class or instance
Parameters Non-Parameters
Protected Unprotected Protected Unprotected
getattr Bypass Descriptors* Bypass Descriptors Vanilla* Vanilla
setattr ProtectedError Bypass Descriptors ProtectedError Vanilla
delattr ProtectedError Bypass Descriptors ProtectedError Vanilla
*On `instance`, `getattr` should ignore and remove any `vars(instance)` entry.
  • Much more extensive tests for get/set/del (and fixed A.x not bypassing descriptors properly
  • Protected attributes: now mappingproxy with owner values. Much cleaner for ultiple inheritance (no value look-up)
  • More extensive readme
  • Breaking mappingproxy is a discovered way of breaking paramclasses
  • Introduced RawParamClass.

v0.1.0

01 Jan 18:57
Compare
Choose a tag to compare