[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#981742: ITP: python-makefun -- Small library to dynamically create Python functions



Package: wnpp
Severity: wishlist
Owner: nicoo <nicoo@debian.org>
X-Debbugs-Cc: debian-devel@lists.debian.org
Control: block 981428 by -1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

* Package name    : python-makefun
  Version         : 1.9.5
  Upstream Author : Sylvain Marié
* URL             : https://smarie.github.io/python-makefun/
* License         : BSD-3
  Programming Lang: Python
  Description     : Small library to dynamically create Python functions

makefun helps one create functions dynamically, with the signature of their
choice. It was largely inspired by decorator and functools, and created mainly
to cover some of their limitations.

Its typical use cases are:

- - creating signature-preserving function wrappers - just like functools.wraps
  but with accurate TypeError exception raising when user-provided arguments are
  wrong, and with a very convenient way to access argument values;

- - creating function wrappers that have more or less arguments that the function
  they wrap;

- - more generally, creating functions with a signature derived from a reference
  signature;

- - or even creating functions with a signature completely defined at runtime.


This is a dependency of yubikey-manager 4.x, and necessary for closing an RC bug.

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEU7EqA8ZVHYoLJhPE5vmO4pLV7MsFAmAaplQRHG5pY29vQGRl
Ymlhbi5vcmcACgkQ5vmO4pLV7MtJahAAiuro6wg0+jn1Nk8n7CwAdUHtBSohvWFA
TydC7DW+V5sk5VR8bUyklDOHhkLVlPNisZkkQn2b8Z4LYE16Q7p5ZXJPbybLJKEK
I6VQmTdLiPT7w+ySgSAtNtDZiZQAbxgdFThwolMqhNhkHZg0cP3tSWcDeO8oUxed
OeqiBUgkjcQO6HAyR2tB3bgx8t1ejOZkxwgGfDbOZec+/uooiz9Mbigu1vs8EjuD
8wCjUifVwCcvQlUMZR62ugFzp7eo9p0XBw1KKGroBgWxYvJgKaPYMnvXlt6t69KS
flBi9L8QRMpm9tJ+kMGdUF73ZAvzNWozxKvkUxiIIsSVTUmLx558NVSaVN70iAT8
I/6JjfI0IpVMSQEHcsmQjilyDr6A6FowC/H9A0rQxnrMW0D0KiNgX8D9aFiCZrqZ
fEQ3Qm6P4MOFCg7SDFPKGMzNlS9nFfWGUmknoDtEn/abOGnRpl6EjCBc2Q1ThYMR
+pYrLvApegw2iulbHsUJwfuaG/ZBvJFjWC0aWMuOzbxKM0g86ejW2ZLIwUbWCXHH
0dKqm4qYfs8FrDYXAALtnAyuxuTV+M7PHZAV8YSgr8eT9r8P0C9yZbFN8v5ejrt2
8noeLqazFWCLlB18w3eHtAEC9bo16Nu/DejPBjjJW3AoPg2HSoSJQQYJnmz7cAX+
G3X1zRnqNQ8=
=sNX4
-----END PGP SIGNATURE-----

Reply to: