boltons v16.4.0 Release Notes

  • (June 8, 2016)

    ๐Ÿš€ another significant release, thanks to the addition of funcutils.wraps and funcutils.FunctionBuilder. also iterutils.chunked speedup, and ๐Ÿ“œ tbutils.ParsedException.to_string.

    • [funcutils.wraps][funcutils.wraps]: Just like functools.wraps, but can preserve the function signature as well.
    • [funcutils.FunctionBuilder][funcutils.FunctionBuilder]: The basis for [funcutils.wraps][funcutils.wraps], this full-featured type enables programmatically creating functions, from scratch or from existing functions. Supports all Python 2 and 3 function features.
    • [ecoutils][ecoutils]: Python 2.4 and 2.5 support.
    • [iterutils][iterutils]: optimize [iterutils.chunked_iter][iterutils.chunked_iter] (2-5x faster depending on runtime). [See #79][i79].
    • [tbutils][tbutils]: add the [ParsedException.to_string][tbutils.ParsedException.to_string] method, to convert parsed exceptions back into strings, possibly after manipulation
    • switch FunctionBuilder on Python 2 to be congruent with Python 3 (keywords attribute renamed to varkw, preview users might have to adjust)