Skip to content

Releases: smarie/python-makefun

1.15.2 - bugfix

09 Nov 21:52
Compare
Choose a tag to compare
  • 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

23 Feb 10:43
3407739
Compare
Choose a tag to compare
  • 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`

08 Sep 09:19
Compare
Choose a tag to compare
  • 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

21 Jun 21:27
Compare
Choose a tag to compare
  • create_wrapper, create_function, wraps and with_signature now support lambda functions. They also accept a new parameter co_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

07 Jan 14:37
Compare
Choose a tag to compare
  • Fixed an issue where using partial on a generator function in python 3.5 was raising a SyntaxError. Fixed #79

See documentation page for details.

1.13.0 - Support for async generator functions

04 Jan 20:25
Compare
Choose a tag to compare

See documentation page for details.

1.12.1 - Bugfix

08 Oct 10:13
Compare
Choose a tag to compare
  • Fixed TypeError when a func attribute is present on the function provided to create_function. Fixed #76

See documentation page for details.

1.12.0 - Refactoring and consistency improvement

08 Oct 08:22
Compare
Choose a tag to compare
  • Fixed partial so that :
    • when no argument is provided, it is equivalent to wraps(f)(f). That is, the __wrapped__ attribute is set. Fixed #73
    • it sets the func attribute just as functools.partial does. Fixed #75
  • Removed pytest-cases dependency as it was a circular one. Fixed #68
  • Now using flake8 for qualimetry and genbadge 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

08 Apr 09:11
Compare
Choose a tag to compare
  • When a default value v in a signature is representable but its eval(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`

17 Mar 17:23
Compare
Choose a tag to compare
  • 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.