Changelog¶
1.4.2 (2016年05月10日)¶
- Fix forgotten debug prints.
1.4.1 (2016年05月06日)¶
- Fixed weaving of objects that don’t live on root-level modules.
1.4.0 (2016年04月09日)¶
- Corrected weaving of methods, the weaved function should be unbound.
- Rolling back only applies undos once.
- Added a convenience weave fixture for pytest.
1.3.3 (2015年10月02日)¶
- Fixed typo in
ABSOLUTELLY_ALL_METHODSname (nowABSOLUTELY_ALL_METHODS). Old name is still there for backwards compatibility.
1.3.2 (2015年09月22日)¶
- Fixed another tricky bug in the generator advising wrappers - result was not returned if only Proceed was yielded.
1.3.1 (2015年09月12日)¶
- Corrected result handling when using Aspects on generators.
1.3.0 (2015年06月06日)¶
- Added
messagesproperty toaspectlib.test.LogCapture. Changecallto have level name instead of number. - Fixed a bogus warning from
aspectlib.patch_module`()when patching methods on old style classes.
1.2.2 (2014年11月25日)¶
- Added support for weakrefs in the
__logged__wrapper fromaspectlib.debug.logdecorator.
1.2.1 (2014年10月15日)¶
- Don’t raise exceptions from
Replay.__exit__if there would be an error (makes original cause hard to debug).
1.2.0 (2014年06月24日)¶
- Fixed weaving methods that were defined in some baseclass (and not on the target class).
- Fixed wrong qualname beeing used in the Story/Replay recording. Now used the alias given to the weaver instead of whatever is the realname on the current platform.
1.1.1 (2014年06月14日)¶
- Use
ASPECTLIB_DEBUGfor every logger inaspectlib.
1.1.0 (2014年06月13日)¶
- Added a bind option to
aspectlib.Aspectso you can access the cutpoint from the advisor. - Replaced automatic importing in
aspectlib.test.Replaywith extraction of context variables (locals and globals from the callingaspectlib.test.Story). Works better than the previous inference of module from AST of the result. - All the methods on the replay are now properties:
aspectlib.test.Story.diff,aspectlib.test.Story.unexpectedandaspectlib.test.Story.missing. - Added
aspectlib.test.Story.actualandaspectlib.test.Story.expected. - Added an
ASPECTLIB_DEBUGenvironment variable option to switch on debug logging inaspectlib’s internals.
1.0.0 (2014年05月03日)¶
- Reworked the internals
aspectlib.test.Storyto keep call ordering, to allow dependencies and improved the serialization (used in the diffs and the missing/unexpected lists).
0.9.0 (2014年04月16日)¶
Changed
aspectlib.test.record:- Renamed history option to calls.
- Renamed call option to iscalled.
- Added callback option.
- Added extended option.
Changed
aspectlib.weave:- Allow weaving everything in a module.
- Allow weaving instances of new-style classes.
Added
aspectlib.test.Storyclass for capture-replay and stub/mock testing.
0.8.1 (2014年04月01日)¶
- Use simpler import for the py3support.
0.8.0 (2014年03月31日)¶
- Change
aspectlib.debug.logto useAspectand work as expected with coroutines or generators. - Fixed
aspectlib.debug.logto work on Python 3.4. - Remove the undocumented
aspectlib.Yieldadvice. It was only usable when decorating generators.
0.7.0 (2014年03月28日)¶
- Add support for decorating generators and coroutines in
Aspect. - Made aspectlib raise better exceptions.
0.6.1 (2014年03月22日)¶
- Fix checks inside
aspectlib.debug.logthat would inadvertently call__bool__/__nonzero.
0.6.0 (2014年03月17日)¶
- Don’t include __getattribute__ in ALL_METHODS - it’s too dangerous dangerous dangerous dangerous dangerous dangerous ... ;)
- Do a more reliable check for old-style classes in debug.log
- When weaving a class don’t weave attributes that are callable but are not actually routines (functions, methods etc)
0.5.0 (2014年03月16日)¶
Changed
aspectlib.debug.log:- Renamed arguments to call_args.
- Renamed arguments_repr to call_args_repr.
- Added call option.
- Fixed issue with logging from old-style methods (object name was a generic "instance").
Fixed issues with weaving some types of builtin methods.
Allow to apply multiple aspects at the same time.
Validate string targets before weaving.
aspectlib.weave('mod.invalid name', aspect)now gives a clear error (invalid nameis not a valid identifier)Various documentation improvements and examples.
0.4.1 (2014年03月08日)¶
- Remove junk from 0.4.0’s source distribution.
0.4.0 (2014年03月08日)¶
Changed
aspectlib.weave:- Replaced only_methods, skip_methods, skip_magicmethods options with methods.
- Renamed on_init option to lazy.
- Added aliases option.
- Replaced skip_subclasses option with subclasses.
Fixed weaving methods from a string target.
0.3.1 (2014年03月05日)¶
- ???
0.3.0 (2014年03月05日)¶
- First public release.