[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-wrapt py-wrapt: updated to 1.11.1
user: adam <adam%pkgsrc.org@localhost>
date: Mon Jan 21 10:31:16 2019 +0000
py-wrapt: updated to 1.11.1
Fixed memory leak in C extension variant of PartialCallableObjectProxy class introduced in 1.11.0, when it was being used to perform binding, when a call of an instance method was made through the
class type, and the self object passed explicitly as first argument.
The C extension variant of the PartialCallableObjectProxy class introduced in 1.11.0, which is a version of functools.partial which correctly handles binding when applied to methods of classes,
couldn't be used when no positional arguments were supplied.
When the C extension variant of PartialCallableObjectProxy was used and multiple positional arguments were supplied, the first argument would be replicated and used to all arguments, instead of
correct values, when the partial was called.
When the C extension variant of PartialCallableObjectProxy was used and keyword arguments were supplied, it would fail as was incorrectly using the positional arguments where the keyword arguments
should have been used.
When using arithmetic operations through a proxy object, checks about the types of arguments were not being performed correctly, which could result in an exception being raised to indicate that a
proxy object had not been initialised when in fact the argument wasn't even an instance of a proxy object.
Because an incorrect cast in C level code was being performed and an attribute in memory checked on the basis of it being a type different to what it actually was, technically it may have resulted in
a process crash if the size of the object was smaller than the type being casted to.
The __complex__() special method wasn't implemented and using complex() on a proxy object would give wrong results or fail.
When using the C extension, if an exception was raised when using inplace or, ie., |=, the error condition wasn't being correctly propagated back which would result in an exception showing up as
wrong location in subsequent code.
Type of long was used instead of Py_hash_t for Python 3.3+. This caused compiler warnings on Windows, which depending on what locale was set to, would cause pip to fail when installing the package.
If calling Class.instancemethod and passing self explicitly, the ability to access __name__ and __module__ on the final bound method were not preserved. This was due to a partial being used for this
special case, and it doesn't preserve introspection.
Fixed typo in the getter property of ObjectProxy for accessing __annotations__. Appeared that it was still working as would fall back to using generic __getattr__() to access attribute on wrapped
devel/py-wrapt/Makefile | 4 ++--
devel/py-wrapt/PLIST | 5 +----
devel/py-wrapt/distinfo | 10 +++++-----
3 files changed, 8 insertions(+), 11 deletions(-)
diffs (44 lines):
diff -r 968d1df0be46 -r c0433157f95e devel/py-wrapt/Makefile
--- a/devel/py-wrapt/Makefile Mon Jan 21 10:15:20 2019 +0000
+++ b/devel/py-wrapt/Makefile Mon Jan 21 10:31:16 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2017/08/16 18:07:31 adam Exp $
+# $NetBSD: Makefile,v 1.6 2019/01/21 10:31:16 adam Exp $
CATEGORIES= devel python
diff -r 968d1df0be46 -r c0433157f95e devel/py-wrapt/PLIST
--- a/devel/py-wrapt/PLIST Mon Jan 21 10:15:20 2019 +0000
+++ b/devel/py-wrapt/PLIST Mon Jan 21 10:31:16 2019 +0000
@@ -1,12 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1 2016/05/05 11:15:33 richard Exp $
+@comment $NetBSD: PLIST,v 1.2 2019/01/21 10:31:16 adam Exp $
diff -r 968d1df0be46 -r c0433157f95e devel/py-wrapt/distinfo
--- a/devel/py-wrapt/distinfo Mon Jan 21 10:15:20 2019 +0000
+++ b/devel/py-wrapt/distinfo Mon Jan 21 10:31:16 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2017/08/16 18:07:31 adam Exp $
+$NetBSD: distinfo,v 1.4 2019/01/21 10:31:16 adam Exp $
-SHA1 (wrapt-1.10.11.tar.gz) = 64e4ab57330818c89bcd416a61dd892ccaaea9b0
-RMD160 (wrapt-1.10.11.tar.gz) = 351af35eda7ebdc61ab4bf11139d7331c628f2e4
-SHA512 (wrapt-1.10.11.tar.gz) = 75f171af7882de9ca8b8700b580004fadf6df9a1c4565c4a15c151c477c5e5e9f6f3bd81a26be97442bbcd93855d9831b566ea23a6574c72b9fdbab41e689c8d
-Size (wrapt-1.10.11.tar.gz) = 27402 bytes
+SHA1 (wrapt-1.11.1.tar.gz) = e40a3b628c9b5503d47160d08d1bf93a2c7471fe
+RMD160 (wrapt-1.11.1.tar.gz) = 3a61778530d5de6f4773fe671b111c82578c8859
+SHA512 (wrapt-1.11.1.tar.gz) = 82cf9a2113dd73d692033ed5b8d1c6475873c8676cb33bd42384a7a27bff1451809ff490f755d31e1753fc1f7eb8288474873753eed1c0c6a61cda6f7cff17b7
+Size (wrapt-1.11.1.tar.gz) = 27225 bytes
Main Index |
Thread Index |