[h5py] 184/455: Revert setdefault
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.
commit 64e31b8cc10d21959a85f4ce64511cc8798c1b2a
Author: andrewcollette <andrew.collette at gmail.com>
Date: Mon Dec 15 20:32:21 2008 +0000
Revert setdefault
---
h5py/highlevel.py | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/h5py/highlevel.py b/h5py/highlevel.py
index e09df83..1806915 100644
--- a/h5py/highlevel.py
+++ b/h5py/highlevel.py
@@ -166,25 +166,6 @@ class _DictCompat(object):
return self[name]
return default
- def setdefault(self, name, default):
- """ Retrieve the member, setting it to default if it doesn't exist.
-
- Be careful; unlike the get() method, the returned object is *not*
- generally the provided default object. The equivalent operation is:
-
- obj[name] = default
- return obj[name]
-
- For groups, the returned object is always a Group, Dataset or
- Datatype. For attributes, the returned object is always a NumPy
- scalar or array.
-
- Consider using Group.require_group or Group.require_dataset instead.
- """
- with self._lock:
- if not name in self:
- self[name] = default
- return self[name]
class Group(HLObject, _DictCompat):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git
More information about the debian-science-commits
mailing list