Skip to content

Releases: eriknw/innerscope

0.7.0

17 Feb 22:07
a88e3e6
Compare
Choose a tag to compare

Add support for Python 3.12,

  • Only "trace" method is currently supported in Python 3.12
  • We will make another release once "bytecode" method is supported

0.7.0a0

17 Feb 19:24
85eb91d
Compare
Choose a tag to compare
0.7.0a0 Pre-release
Pre-release

this is a pre-release

Add support for Python 3.12, which only supports the "trace" method. We will make another release once "bytecode" method is supported.

0.6.0

12 Jun 19:54
Compare
Choose a tag to compare
  • Add support for Python 3.11 (#17)
  • Drop support for Python 3.7 (#19)
  • Misc maintenance (#19):
    • Use setuptools-git-versioning instead of versioneer.py for versioning
    • Move package metadata to pyproject.toml
    • Add git pre-commit hooks for linting
    • Add more linting, including ruff

0.6.0a0

12 Jun 17:50
4289aec
Compare
Choose a tag to compare
0.6.0a0 Pre-release
Pre-release

this is a pre-release

  • Add support for Python 3.11 (#17)
  • Drop support for Python 3.7 (#19)
  • Misc maintenance (#19):
    • Use setuptools-git-versioning instead of versioneer.py for versioning
    • Move package metadata to pyproject.toml
    • Add git pre-commit hooks for linting
    • Add more linting, including ruff

0.5.1

28 Jan 04:31
d291d7f
Compare
Choose a tag to compare
  • Add support for Python 3.10 (bytecode changes)
    • Bytecode jump offsets are now scaled by a factor of 2
    • Not all functions end with RETURN_VALUE bytecode

0.5.0

21 Jul 05:17
Compare
Choose a tag to compare
  • Warn, don't raise, if there are missing names when a scoped function is called.
  • Don't pickle code objects when pickling scoped functions.

Release 0.4.1

21 Sep 01:39
Compare
Choose a tag to compare
  • Minor bugfix release for innerself. Check types more explicitly in scoped_function.

Release 0.4.0

20 Sep 18:11
Compare
Choose a tag to compare
  • Support generators.
  • Escape repr text in html_repr.
  • Raise if trying to wrap coroutine or async generator function.
  • Support ScopedFunction as class method (added __get__).
  • Add builtin_names attribute to ScopedFunction objects.
  • More efficient reuse of data when binding variables to an existing ScopedFunction.

Release 0.3.0

17 Sep 02:37
3b3cae9
Compare
Choose a tag to compare

Add support for PyPy! Who else is surprised by this?

Add alternative method for getting the inner scope. Select with method="trace" in scoped_func. This may be useful when the default method fails for some reason. Generally, though, the default method (method="bytecode") is still preferred. The "trace" method uses sys.settrace, so it will be slow and may cause havoc if there is another tracer (such as when debugging).

Release 0.2.0

09 Sep 20:40
a0b923e
Compare
Choose a tag to compare
  • Add support for Python 3.6 and 3.7.
  • Support func keyword argument in call and scope.call.
  • From 0.1.0, support defining classes and functions inside a function wrapped by innerscope.