Skip to content

Releases: pwwang/python-varname

0.6.0 (#39)

25 Jan 20:40
de05e95
Compare
Choose a tag to compare
  • Changed:
    • Wrapper, register and debug moved to varname.helpers
    • Argument caller changed to frame across all APIs
    • ignore accepting module, filename, function, (function, num_decorators), (module, qualname) and (filename, qualname)
  • Removed:
    • inject (Use helpers.regiester instead)
    • inject_varname (Use helpers.regiester instead)
    • namedtuple
  • Added:
    • Arguments frame and ignore to Wrapper
    • helpers.register as a decorator for functions

Pump to 0.5.6 (#38)

23 Dec 23:09
2e720fe
Compare
Choose a tag to compare
  • Add ignore argument to varname to ignore frames that will be ignored by caller
  • Deprecate inject_varname, use register instead

0.5.5: Deprecate inject and introduce register to register classes (#30)

11 Dec 18:59
e00c071
Compare
Choose a tag to compare
  • Deprecate inject and use inject_varname to decorate classes instead.

0.5.4

26 Nov 18:00
09498d8
Compare
Choose a tag to compare
  • Allow varname.varname to receive multiple variables on the left-hand side

0.5.3: Add a debug function to print variable name and value together. (#27)

06 Nov 17:02
1e8f051
Compare
Choose a tag to compare
  • Add debug function
  • Deprecate namedtuple (will be removed in 0.6.0)

pump to 0.5.2 (#26)

03 Nov 19:17
c2564ae
Compare
Choose a tag to compare
  • Move messaging of weird nameof calls from _bytecode_nameof to nameof.
  • Disallow full to be used when _bytecode_nameof needs to be invoked.

0.5.1

02 Nov 16:57
Compare
Choose a tag to compare
  • Add better messaging for weird nameof calls

0.5.0

29 Oct 19:56
Compare
Choose a tag to compare
  • Allow nameof to retrieve full name of chained attribute calls
  • Add __all__ to the module so that only desired APIs are exposed when from varname import *
  • Give more hints on nameof being called in a weird way when no soucecode available.