diff options
author | luke.maurits <luke.maurits@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2009-05-30 04:49:49 +0000 |
---|---|---|
committer | luke.maurits <luke.maurits@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2009-05-30 04:49:49 +0000 |
commit | f1d57a6ecb6f74640fc99ef19f30df8bae7cceac (patch) | |
tree | 31454d1ea57b0b0230ab508a9fd90e44725549b5 | |
parent | 9725a03b05a92c6b9234d62b2e614b15ab21018f (diff) | |
download | python-prettytable-f1d57a6ecb6f74640fc99ef19f30df8bae7cceac.tar.gz |
Added copy method.
git-svn-id: http://prettytable.googlecode.com/svn/trunk@28 0f58610c-415a-11de-9c03-5d6cfad8e937
-rw-r--r-- | src/prettytable.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/prettytable.py b/src/prettytable.py index e5bc080..8a64ba3 100644 --- a/src/prettytable.py +++ b/src/prettytable.py @@ -599,6 +599,13 @@ class PrettyTable(object): self._widths = [] ############################## + # MISC PUBLIC METHODS # + ############################## + + def copy(self): + return copy.deepcopy(self) + + ############################## # MISC PRIVATE METHODS # ############################## |