Releases: smarie/python-makefun
Releases · smarie/python-makefun
1.15.2 - bugfix
- Fixed
SyntaxError
happening when the name of a native coroutine function to create contains'return'
.
Fixes #96.
See documentation page for details.
1.15.1 - bugfixes
- Fixed
ValueError: Invalid co_name
happening on python 2 when the name of a function to create starts or ends with
_
or contains a double__
. Fixes #91
See documentation page for details.
1.15.0 - More PEP-compliant `wraps`
wraps
now always sets the__wrapped__
attribute, and also sets the__signature__
attribute when the signature changes, as specified by PEP 362. PR by #86 by lucaswiman.
See documentation page for details.
1.14.0 - Support for lambda functions
create_wrapper
,create_function
,wraps
andwith_signature
now support lambda functions. They also accept a new parameterco_name
to define the name to be used in the compiled code. PR #80 by andrewcleveland.
See documentation page for details.
1.13.1 - Fixed regression with generators in python 3.5
- Fixed an issue where using
partial
on a generator function in python 3.5 was raising aSyntaxError
. Fixed #79
See documentation page for details.
1.13.0 - Support for async generator functions
- async generator functions are now supported (See PEP525). Fixed #77. PR#78 by broglep-work.
See documentation page for details.
1.12.1 - Bugfix
- Fixed
TypeError
when afunc
attribute is present on the function provided tocreate_function
. Fixed #76
See documentation page for details.
1.12.0 - Refactoring and consistency improvement
- Fixed
partial
so that : - Removed
pytest-cases
dependency as it was a circular one. Fixed #68 - Now using
flake8
for qualimetry andgenbadge
for badges. Fixed #71 - Restructured project so that tests are truly independent, to ease rpm/apt/etc. packaging. Fixed #69
See documentation page for details.
1.11.3 - bugfix with default values representable but not evaluable
- When a default value
v
in a signature is representable but itseval(repr(v))
raises an exception, created signatures would raise an exception instead of automatically protecting the symbol. PR #67 by gcalmettes.
See documentation page for details.
1.11.2 - bugfix with chained `@wraps`
- Fixed issue where
@wraps
does not remove the__wrapped__
attribute when it wraps an already-wrapped function, and modifies its signature. Fixes #66
See documentation page for details.