Skip to content

Commit

Permalink
new: [dct] added deep_copy shortcut.
Browse files Browse the repository at this point in the history
This is to get all usefull dict related stuff without having to know
all package required. And to follow pep8 convention on variable/function
names (aka: deep_copy instead of deepcopy).
  • Loading branch information
vaab committed Feb 5, 2015
1 parent 17e69e6 commit f60561f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kids/data/dct.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

import copy
from itertools import chain


Expand All @@ -10,3 +11,6 @@ def merge(*args):
"""
return dict(chain(*[d.items() for d in args]))


deep_copy = copy.deepcopy

0 comments on commit f60561f

Please sign in to comment.