)
--class _slotted(object):
-- __slots__ = ['a']
--
--
-# Do not use this tuple. It was never documented as a public API.
-# It will be removed. It has no obvious signs of users on github.
--DescriptorTypes = (
-- type(_slotted.a),
-- property,
--)
-
-
+ def _is_data_descriptor(obj):
+ # Data descriptors are Properties, slots, getsets and C data members.
+ return ((hasattr(obj, '__set__') or hasattr(obj, '__del__')) and
+ hasattr(obj, '__get__'))
def _get_signature_object(func, as_instance, eat_self):
Library
-------
- subclasses of property() and other data descriptors.
+ - Issue #26750: unittest.mock.create_autospec() now works properly for
++ subclasses of property() and other data descriptors. Removes the never
++ publicly used, never documented unittest.mock.DescriptorTypes tuple.
++
+- Issue #26754: Undocumented support of general bytes-like objects
+ as path in compile() and similar functions is now deprecated.
+
+- Issue #26800: Undocumented support of general bytes-like objects
+ as paths in os functions is now deprecated.
+
+- Issue #27661: Added tzinfo keyword argument to datetime.combine.
- Issue #27568: Prevent HTTPoxy attack (CVE-2016-1000110). Ignore the
HTTP_PROXY variable when REQUEST_METHOD environment is set, which indicates