[Python-modules-commits] [dill] 01/10: Import dill_0.2.7.orig.tar.gz
Josué Ortega
josue at moszumanska.debian.org
Sun Jul 16 19:38:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
josue pushed a commit to branch master
in repository dill.
commit c2d618870e42c2013c6ee2691c9349a7b3c1f3f5
Author: Josue Ortega <josue at debian.org>
Date: Sun Jul 16 11:59:59 2017 -0600
Import dill_0.2.7.orig.tar.gz
---
.gitignore | 4 +
.travis.yml | 37 ++++
DEV_NOTES | 100 ++++++++++
LICENSE | 13 +-
MANIFEST | 41 ----
MANIFEST.in | 5 +
PKG-INFO | 185 -----------------
README | 65 +++---
README.md | 51 +++--
dill.egg-info/PKG-INFO | 89 +++++----
dill.egg-info/SOURCES.txt | 10 +-
dill/__diff.py | 10 +-
dill/__init__.py | 3 +-
dill/_objects.py | 29 ++-
dill/detect.py | 18 +-
dill/dill.py | 317 +++++++++++++++++++++---------
dill/info.py | 82 ++++----
dill/objtypes.py | 1 +
dill/pointers.py | 1 +
dill/settings.py | 1 +
dill/source.py | 1 +
dill/temp.py | 1 +
scripts/{unpickle.py => dill_unpickle.py} | 3 +-
scripts/get_objgraph.py | 1 +
setup.cfg | 7 +-
setup.py | 89 +++++----
tests/__init__.py | 0
tests/dill_bugs.py | 67 -------
tests/test_check.py | 52 +++--
tests/test_classdef.py | 214 +++++++++++---------
tests/test_detect.py | 179 ++++++++++-------
tests/test_diff.py | 171 ++++++++--------
tests/test_extendpickle.py | 28 ++-
tests/test_file.py | 54 +++--
tests/test_functors.py | 26 ++-
tests/test_mixins.py | 19 +-
tests/test_module.py | 25 ++-
tests/test_moduledict.py | 16 +-
tests/test_nested.py | 62 +++---
tests/test_objects.py | 17 +-
tests/test_properties.py | 62 +++---
tests/test_recursive.py | 36 ++++
tests/test_selected.py | 99 ++++++++++
tests/test_source.py | 172 ++++++++--------
tests/test_temp.py | 73 ++++---
tests/test_weakref.py | 74 ++++---
tox.ini | 23 +++
47 files changed, 1534 insertions(+), 1099 deletions(-)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a1eb928
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+.tox/
+.cache/
+*.egg-info/
+*.pyc
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..5b43b22
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,37 @@
+language: python
+
+sudo: false
+
+matrix:
+ include:
+ - python: '2.5'
+ - python: '2.6'
+ - python: '2.7'
+ - python: '3.1'
+ - python: '3.2'
+ - python: '3.3'
+ - python: '3.4'
+ - python: '3.5'
+ - python: '3.6'
+ - python: 'nightly'
+ - python: 'pypy'
+ - python: 'pypy3'
+ allow_failures:
+ - python: '2.5'
+ - python: '3.1'
+ - python: 'nightly'
+ - python: 'pypy'
+ - python: 'pypy3'
+ fast_finish: true
+
+cache:
+ pip: true
+
+before_install:
+ - set -e # fail on any error
+
+install:
+ - python setup.py build && python setup.py install
+
+script:
+ - for test in tests/*.py; do echo $test ; python $test > /dev/null ; done
diff --git a/DEV_NOTES b/DEV_NOTES
new file mode 100644
index 0000000..de7fc5d
--- /dev/null
+++ b/DEV_NOTES
@@ -0,0 +1,100 @@
+create a weakref:
+
+>>> import dill
+>>> import weakref
+>>> class Object:
+... pass
+...
+>>> o = Object()
+>>> r = weakref.ref(o) #XXX: type: weakref.ReferenceType
+
+>>> r
+<weakref at 0xb12f60; to 'instance' at 0xb23080>
+>>> o
+<__main__.Object instance at 0xb23080>
+>>> r()
+<__main__.Object instance at 0xb23080>
+>>> r.__call__()
+<__main__.Object instance at 0xb23080>
+>>> r.__hash__()
+11677824
+>>> id(o)
+11677824
+
+
+>>> o2 = Object()
+>>> r2 = weakref.ref(o2)
+>>> del o2
+
+>>> r2
+<weakref at 0xb306f0; dead>
+>>> r2()
+>>> r2.__call__()
+>>> r2.__hash__()
+Traceback (most recent call last):
+ File "<stdin>", line 1, in <module>
+TypeError: weak object has gone away
+
+
+>>> o3 = Object()
+>>> r3 = weakref.proxy(o3) #XXX: type: weakref.ProxyType
+
+>>> r3
+<weakproxy at 0x85b10 to instance at 0x8d530>
+>>> o3
+<__main__.Object instance at 0x8d530>
+>>> r3.__class__
+<class __main__.Object at 0x6aa50>
+>>> o3.__class__
+<class __main__.Object at 0x6aa50>
+
+>>> del o3
+>>> r3
+<weakproxy at 0x85b10 to NoneType at 0x4f1aa0>
+>>> r3.__class__
+Traceback (most recent call last):
+ File "<stdin>", line 1, in <module>
+ReferenceError: weakly-referenced object no longer exists
+
+
+>>> class Object2:
+... def __call__(self):
+... pass
+...
+>>> oo = Object2()
+>>> oo
+<__main__.Object instance at 0x8ca30>
+>>> oo()
+>>> rr = weakref.proxy(oo) #XXX: type: weakref.CallableProxyType
+>>> rr
+<weakproxy at 0x82930 to instance at 0x8ca30>
+>>> rr()
+>>> rr.__call__
+<bound method Object.__call__ of <__main__.Object instance at 0x8ca30>>
+>>> rr.__call__()
+>>>
+
+
+
+########################################
+approach to pickling weakrefs:
+
+*) register the weakref types ? (see line ~228 of dill.py)
+
+*) use hash to create hard copy of ref object
+ then upon unpickle, create new weakref
+
+*) propose that pickling a weakref will always provide a dead reference
+ unless the reference object is pickled along with the weakref
+
+########################################
+pickling generators:
+
+*) need to avoid the "new" method for FrameTypes...
+don't see how to do that, without going into C to get the GID Thread.
+
+*) currently inspecting: Objects/object.c Objects/dictobject.c Objects/genobject.c Objects/frameobject.c Python/pystate.c Python/thread.c Python/pythonrun.c
+
+*) the package "generator_tools" may have the answer.
+
+########################################
diff --git a/LICENSE b/LICENSE
index 47e842e..3c86e9c 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,7 +1,10 @@
-This software is part of the open-source mystic project at the California
-Institute of Technology, and is available subject to the conditions and
-terms laid out below. By downloading and using this software you are
-agreeing to the following conditions.
+Copyright (c) 2004-2016 California Institute of Technology.
+Copyright (c) 2016-2017 The Uncertainty Quantification Foundation.
+All rights reserved.
+
+This software is available subject to the conditions and terms laid
+out below. By downloading and using this software you are agreeing
+to the following conditions.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
@@ -31,5 +34,3 @@ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-Copyright (c) 2016 California Institute of Technology. All rights reserved.
-
diff --git a/MANIFEST b/MANIFEST
deleted file mode 100644
index b579b34..0000000
--- a/MANIFEST
+++ /dev/null
@@ -1,41 +0,0 @@
-LICENSE
-MANIFEST
-README
-README.md
-setup.cfg
-setup.py
-dill/__diff.py
-dill/__init__.py
-dill/_objects.py
-dill/detect.py
-dill/dill.py
-dill/info.py
-dill/objtypes.py
-dill/pointers.py
-dill/settings.py
-dill/source.py
-dill/temp.py
-dill.egg-info/PKG-INFO
-dill.egg-info/SOURCES.txt
-dill.egg-info/dependency_links.txt
-dill.egg-info/not-zip-safe
-dill.egg-info/top_level.txt
-scripts/get_objgraph.py
-scripts/unpickle.py
-tests/dill_bugs.py
-tests/test_check.py
-tests/test_classdef.py
-tests/test_detect.py
-tests/test_diff.py
-tests/test_extendpickle.py
-tests/test_file.py
-tests/test_functors.py
-tests/test_mixins.py
-tests/test_module.py
-tests/test_moduledict.py
-tests/test_nested.py
-tests/test_objects.py
-tests/test_properties.py
-tests/test_source.py
-tests/test_temp.py
-tests/test_weakref.py
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..2f0d7df
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,5 @@
+include LICENSE
+include README
+include tox.ini
+include scripts/*py
+include tests/*py
diff --git a/PKG-INFO b/PKG-INFO
deleted file mode 100644
index 32c0af0..0000000
--- a/PKG-INFO
+++ /dev/null
@@ -1,185 +0,0 @@
-Metadata-Version: 1.1
-Name: dill
-Version: 0.2.5
-Summary: a utility for serialization of python objects
-Home-page: http://www.cacr.caltech.edu/~mmckerns
-Author: Mike McKerns
-Author-email: mmckerns at caltech.edu
-License: BSD
-Description: -----------------------------
- dill: serialize all of python
- -----------------------------
-
- About Dill
- ==========
-
- Dill extends python's 'pickle' module for serializing and de-serializing
- python objects to the majority of the built-in python types. Serialization
- is the process of converting an object to a byte stream, and the inverse
- of which is converting a byte stream back to on python object hierarchy.
-
- Dill provides the user the same interface as the 'pickle' module, and
- also includes some additional features. In addition to pickling python
- objects, dill provides the ability to save the state of an interpreter
- session in a single command. Hence, it would be feasable to save a
- interpreter session, close the interpreter, ship the pickled file to
- another computer, open a new interpreter, unpickle the session and
- thus continue from the 'saved' state of the original interpreter
- session.
-
- Dill can be used to store python objects to a file, but the primary
- usage is to send python objects across the network as a byte stream.
- Dill is quite flexible, and allows arbitrary user defined classes
- and funcitons to be serialized. Thus dill is not intended to be
- secure against erroneously or maliciously constructed data. It is
- left to the user to decide whether the data they unpickle is from
- a trustworthy source.
-
- Dill is part of pathos, a python framework for heterogeneous computing.
- Dill is in active development, so any user feedback, bug reports, comments,
- or suggestions are highly appreciated. A list of known issues is maintained
- at http://trac.mystic.cacr.caltech.edu/project/pathos/query, with a public
- ticket list at https://github.com/uqfoundation/dill/issues.
-
-
- Major Features
- ==============
-
- Dill can pickle the following standard types::
-
- - none, type, bool, int, long, float, complex, str, unicode,
- - tuple, list, dict, file, buffer, builtin,
- - both old and new style classes,
- - instances of old and new style classes,
- - set, frozenset, array, functions, exceptions
-
- Dill can also pickle more 'exotic' standard types::
-
- - functions with yields, nested functions, lambdas,
- - cell, method, unboundmethod, module, code, methodwrapper,
- - dictproxy, methoddescriptor, getsetdescriptor, memberdescriptor,
- - wrapperdescriptor, xrange, slice,
- - notimplemented, ellipsis, quit
-
- Dill cannot yet pickle these standard types::
-
- - frame, generator, traceback
-
- Dill also provides the capability to::
-
- - save and load python interpreter sessions
- - save and extract the source code from functions and classes
- - interactively diagnose pickling errors
-
-
- Current Release
- ===============
-
- This version is dill-0.2.5.
-
- The latest stable version of dill is available from::
-
- http://trac.mystic.cacr.caltech.edu/project/pathos
-
- or::
-
- https://github.com/uqfoundation/dill/releases
-
- or also::
-
- https://pypi.python.org/pypi/dill
-
- Dill is distributed under a 3-clause BSD license.
-
- >>> import dill
- >>> print (dill.license())
-
-
- Development Version
- ===================
-
- You can get the latest development version with all the shiny new features at::
-
- https://github.com/uqfoundation
-
- Feel free to fork the github mirror of our svn trunk. If you have a new
- contribution, please submit a pull request.
-
-
- Installation
- ============
-
- Dill is packaged to install from source, so you must
- download the tarball, unzip, and run the installer::
-
- [download]
- $ tar -xvzf dill-0.2.5.tgz
- $ cd dill-0.2.5
- $ python setup py build
- $ python setup py install
-
- You will be warned of any missing dependencies and/or settings
- after you run the "build" step above.
-
- Alternately, dill can be installed with pip or easy_install::
-
- $ pip install dill
-
-
- Requirements
- ============
-
- Dill requires::
-
- - python2, version >= 2.5 *or* python3, version >= 3.1
- - pyreadline, version >= 1.7.1 (on windows)
-
- Optional requirements::
-
- - setuptools, version >= 0.6
- - objgraph, version >= 1.7.2
-
-
- More Information
- ================
-
- Probably the best way to get started is to look at the tests that are
- provided within dill. See `dill.tests` for a set of scripts that demonstrate
- dill's ability to serialize different python objects. Since dill conforms
- to the 'pickle' interface, the examples and documentation at
- http://docs.python.org/library/pickle.html also apply to dill if one will
- `import dill as pickle`. The source code is also generally well
- documented, so further questions may be resolved by inspecting the code
- itself. Please also feel free to submit a ticket on github, or ask a
- question on stackoverflow (@Mike McKerns).
-
- Dill is an active research tool. There are a growing number of publications
- and presentations that discuss real-world examples and new features of dill
- in greater detail than presented in the user's guide. If you would like to
- share how you use dill in your work, please post a link or send an email
- (to mmckerns at caltech dot edu).
-
-
- Citation
- ========
-
- If you use dill to do research that leads to publication, we ask that you
- acknowledge use of dill by citing the following in your publication::
-
- M.M. McKerns, L. Strand, T. Sullivan, A. Fang, M.A.G. Aivazis,
- "Building a framework for predictive science", Proceedings of
- the 10th Python in Science Conference, 2011;
- http://arxiv.org/pdf/1202.1056
-
- Michael McKerns and Michael Aivazis,
- "pathos: a framework for heterogeneous computing", 2010- ;
- http://trac.mystic.cacr.caltech.edu/project/pathos
-
- Please see http://trac.mystic.cacr.caltech.edu/project/pathos or
- http://arxiv.org/pdf/1202.1056 for further information.
-
-
-Platform: any
-Classifier: Intended Audience :: Developers
-Classifier: Programming Language :: Python
-Classifier: Topic :: Physics Programming
diff --git a/README b/README
index 89ccc00..bba6495 100644
--- a/README
+++ b/README
@@ -5,30 +5,30 @@ dill: serialize all of python
About Dill
==========
-Dill extends python's 'pickle' module for serializing and de-serializing
+`dill` extends python's `pickle` module for serializing and de-serializing
python objects to the majority of the built-in python types. Serialization
is the process of converting an object to a byte stream, and the inverse
of which is converting a byte stream back to on python object hierarchy.
-Dill provides the user the same interface as the 'pickle' module, and
+`dill` provides the user the same interface as the `pickle` module, and
also includes some additional features. In addition to pickling python
-objects, dill provides the ability to save the state of an interpreter
+objects, `dill` provides the ability to save the state of an interpreter
session in a single command. Hence, it would be feasable to save a
interpreter session, close the interpreter, ship the pickled file to
another computer, open a new interpreter, unpickle the session and
thus continue from the 'saved' state of the original interpreter
session.
-Dill can be used to store python objects to a file, but the primary
+`dill` can be used to store python objects to a file, but the primary
usage is to send python objects across the network as a byte stream.
-Dill is quite flexible, and allows arbitrary user defined classes
-and funcitons to be serialized. Thus dill is not intended to be
+`dill` is quite flexible, and allows arbitrary user defined classes
+and functions to be serialized. Thus `dill` is not intended to be
secure against erroneously or maliciously constructed data. It is
left to the user to decide whether the data they unpickle is from
a trustworthy source.
-Dill is part of pathos, a python framework for heterogeneous computing.
-Dill is in active development, so any user feedback, bug reports, comments,
+`dill` is part of `pathos`, a python framework for heterogeneous computing.
+`dill` is in active development, so any user feedback, bug reports, comments,
or suggestions are highly appreciated. A list of known issues is maintained
at http://trac.mystic.cacr.caltech.edu/project/pathos/query, with a public
ticket list at https://github.com/uqfoundation/dill/issues.
@@ -37,7 +37,7 @@ ticket list at https://github.com/uqfoundation/dill/issues.
Major Features
==============
-Dill can pickle the following standard types::
+`dill` can pickle the following standard types::
- none, type, bool, int, long, float, complex, str, unicode,
- tuple, list, dict, file, buffer, builtin,
@@ -45,7 +45,7 @@ Dill can pickle the following standard types::
- instances of old and new style classes,
- set, frozenset, array, functions, exceptions
-Dill can also pickle more 'exotic' standard types::
+`dill` can also pickle more 'exotic' standard types::
- functions with yields, nested functions, lambdas,
- cell, method, unboundmethod, module, code, methodwrapper,
@@ -53,11 +53,11 @@ Dill can also pickle more 'exotic' standard types::
- wrapperdescriptor, xrange, slice,
- notimplemented, ellipsis, quit
-Dill cannot yet pickle these standard types::
+`dill` cannot yet pickle these standard types::
- frame, generator, traceback
-Dill also provides the capability to::
+`dill` also provides the capability to::
- save and load python interpreter sessions
- save and extract the source code from functions and classes
@@ -67,9 +67,9 @@ Dill also provides the capability to::
Current Release
===============
-This version is dill-0.2.5.
+This version is `dill-0.2.7`.
-The latest stable version of dill is available from::
+The latest released version of `dill` is available from::
http://trac.mystic.cacr.caltech.edu/project/pathos
@@ -81,7 +81,7 @@ or also::
https://pypi.python.org/pypi/dill
-Dill is distributed under a 3-clause BSD license.
+`dill` is distributed under a 3-clause BSD license.
>>> import dill
>>> print (dill.license())
@@ -94,26 +94,25 @@ You can get the latest development version with all the shiny new features at::
https://github.com/uqfoundation
-Feel free to fork the github mirror of our svn trunk. If you have a new
-contribution, please submit a pull request.
+If you have a new contribution, please submit a pull request.
Installation
============
-Dill is packaged to install from source, so you must
+`dill` is packaged to install from source, so you must
download the tarball, unzip, and run the installer::
[download]
- $ tar -xvzf dill-0.2.5.tgz
- $ cd dill-0.2.5
+ $ tar -xvzf dill-0.2.7.tgz
+ $ cd dill-0.2.7
$ python setup py build
$ python setup py install
You will be warned of any missing dependencies and/or settings
after you run the "build" step above.
-Alternately, dill can be installed with pip or easy_install::
+Alternately, `dill` can be installed with `pip` or `easy_install`::
$ pip install dill
@@ -121,9 +120,9 @@ Alternately, dill can be installed with pip or easy_install::
Requirements
============
-Dill requires::
+`dill` requires::
- - python2, version >= 2.5 *or* python3, version >= 3.1
+ - python2, version >= 2.5 *or* python3, version >= 3.1 *or* pypy
- pyreadline, version >= 1.7.1 (on windows)
Optional requirements::
@@ -136,27 +135,27 @@ More Information
================
Probably the best way to get started is to look at the tests that are
-provided within dill. See `dill.tests` for a set of scripts that demonstrate
-dill's ability to serialize different python objects. Since dill conforms
-to the 'pickle' interface, the examples and documentation at
-http://docs.python.org/library/pickle.html also apply to dill if one will
+provided within `dill`. See `dill.tests` for a set of scripts that demonstrate
+how `dill` can serialize different python objects. Since `dill` conforms
+to the `pickle` interface, the examples and documentation at
+http://docs.python.org/library/pickle.html also apply to `dill` if one will
`import dill as pickle`. The source code is also generally well
documented, so further questions may be resolved by inspecting the code
itself. Please also feel free to submit a ticket on github, or ask a
question on stackoverflow (@Mike McKerns).
-Dill is an active research tool. There are a growing number of publications
-and presentations that discuss real-world examples and new features of dill
+`dill` is an active research tool. There are a growing number of publications
+and presentations that discuss real-world examples and new features of `dill`
in greater detail than presented in the user's guide. If you would like to
-share how you use dill in your work, please post a link or send an email
-(to mmckerns at caltech dot edu).
+share how you use `dill` in your work, please post a link or send an email
+(to mmckerns at uqfoundation dot org).
Citation
========
-If you use dill to do research that leads to publication, we ask that you
-acknowledge use of dill by citing the following in your publication::
+If you use `dill` to do research that leads to publication, we ask that you
+acknowledge use of `dill` by citing the following in your publication::
M.M. McKerns, L. Strand, T. Sullivan, A. Fang, M.A.G. Aivazis,
"Building a framework for predictive science", Proceedings of
diff --git a/README.md b/README.md
index 985035a..7b490a8 100644
--- a/README.md
+++ b/README.md
@@ -4,30 +4,30 @@ serialize all of python
About Dill
----------
-Dill extends python's 'pickle' module for serializing and de-serializing
+`dill` extends python's `pickle` module for serializing and de-serializing
python objects to the majority of the built-in python types. Serialization
is the process of converting an object to a byte stream, and the inverse
of which is converting a byte stream back to on python object hierarchy.
-Dill provides the user the same interface as the 'pickle' module, and
+`dill` provides the user the same interface as the `pickle` module, and
also includes some additional features. In addition to pickling python
-objects, dill provides the ability to save the state of an interpreter
+objects, `dill` provides the ability to save the state of an interpreter
session in a single command. Hence, it would be feasable to save a
interpreter session, close the interpreter, ship the pickled file to
another computer, open a new interpreter, unpickle the session and
thus continue from the 'saved' state of the original interpreter
session.
-Dill can be used to store python objects to a file, but the primary
+`dill` can be used to store python objects to a file, but the primary
usage is to send python objects across the network as a byte stream.
-Dill is quite flexible, and allows arbitrary user defined classes
-and funcitons to be serialized. Thus dill is not intended to be
+`dill` is quite flexible, and allows arbitrary user defined classes
+and functions to be serialized. Thus `dill` is not intended to be
secure against erroneously or maliciously constructed data. It is
left to the user to decide whether the data they unpickle is from
a trustworthy source.
-Dill is part of pathos, a python framework for heterogeneous computing.
-Dill is in active development, so any user feedback, bug reports, comments,
+`dill` is part of `pathos`, a python framework for heterogeneous computing.
+`dill` is in active development, so any user feedback, bug reports, comments,
or suggestions are highly appreciated. A list of known issues is maintained
at http://trac.mystic.cacr.caltech.edu/project/pathos/query, with a public
ticket list at https://github.com/uqfoundation/dill/issues.
@@ -35,7 +35,7 @@ ticket list at https://github.com/uqfoundation/dill/issues.
Major Features
--------------
-Dill can pickle the following standard types::
+`dill` can pickle the following standard types::
* none, type, bool, int, long, float, complex, str, unicode,
* tuple, list, dict, file, buffer, builtin,
@@ -43,7 +43,7 @@ Dill can pickle the following standard types::
* instances of old and new style classes,
* set, frozenset, array, functions, exceptions
-Dill can also pickle more 'exotic' standard types::
+`dill` can also pickle more 'exotic' standard types::
* functions with yields, nested functions, lambdas
* cell, method, unboundmethod, module, code, methodwrapper,
@@ -51,11 +51,11 @@ Dill can also pickle more 'exotic' standard types::
* wrapperdescriptor, xrange, slice,
* notimplemented, ellipsis, quit
-Dill cannot yet pickle these standard types::
+`dill` cannot yet pickle these standard types::
* frame, generator, traceback
-Dill also provides the capability to::
+`dill` also provides the capability to::
* save and load python interpreter sessions
* save and extract the source code from functions and classes
@@ -64,7 +64,7 @@ Dill also provides the capability to::
Current Release
---------------
-The latest stable release of dill is available from::
+The latest released version of `dill` is available from::
http://trac.mystic.cacr.caltech.edu/project/pathos
or::
@@ -73,7 +73,7 @@ or::
or also::
https://pypi.python.org/pypi/dill
-Dill is distributed under a 3-clause BSD license.
+`dill` is distributed under a 3-clause BSD license.
Development Version
@@ -81,33 +81,32 @@ Development Version
You can get the latest development version with all the shiny new features at::
https://github.com/uqfoundation
-Feel free to fork the github mirror of our svn trunk. If you have a new
-contribution, please submit a pull request.
+If you have a new contribution, please submit a pull request.
More Information
----------------
Probably the best way to get started is to look at the tests that are
-provide within dill. See `dill.tests` for a set of scripts that demonstrate
-dill's ability to serialize different python objects. Since dill conforms
-to the 'pickle' interface, the examples and documentation at
-http://docs.python.org/library/pickle.html also apply to dill if one will
+provide within `dill`. See `dill.tests` for a set of scripts that demonstrate
+how `dill` can serialize different python objects. Since `dill` conforms
+to the `pickle` interface, the examples and documentation at
+http://docs.python.org/library/pickle.html also apply to `dill` if one will
`import dill as pickle`. The source code is also generally well documented,
so further questions may be resolved by inspecting the code itself. Please
also feel free to submit a ticket on github, or ask a question on
stackoverflow (@Mike McKerns).
-Dill is an active research tool. There are a growing number of publications
-and presentations that discuss real-world examples and new features of dill
+`dill` is an active research tool. There are a growing number of publications
+and presentations that discuss real-world examples and new features of `dill`
in greater detail than presented in the user's guide. If you would like to
-share how you use dill in your work, please post a link or send an email
-(to mmckerns at caltech dot edu).
+share how you use `dill` in your work, please post a link or send an email
+(to mmckerns at uqfoundation dot org).
Citation
--------
-If you use dill to do research that leads to publication, we ask that you
-acknowledge use of dill by citing the following in your publication::
+If you use `dill` to do research that leads to publication, we ask that you
+acknowledge use of `dill` by citing the following in your publication::
M.M. McKerns, L. Strand, T. Sullivan, A. Fang, M.A.G. Aivazis,
"Building a framework for predictive science", Proceedings of
diff --git a/dill.egg-info/PKG-INFO b/dill.egg-info/PKG-INFO
index 32c0af0..3f664cf 100644
--- a/dill.egg-info/PKG-INFO
+++ b/dill.egg-info/PKG-INFO
@@ -1,11 +1,12 @@
Metadata-Version: 1.1
Name: dill
-Version: 0.2.5
-Summary: a utility for serialization of python objects
-Home-page: http://www.cacr.caltech.edu/~mmckerns
+Version: 0.2.7
+Summary: serialize all of python
+Home-page: http://www.cacr.caltech.edu/~mmckerns/dill.htm
Author: Mike McKerns
-Author-email: mmckerns at caltech.edu
-License: BSD
+Author-email: UNKNOWN
+License: 3-clause BSD
+Download-URL: http://dev.danse.us/packages
Description: -----------------------------
dill: serialize all of python
-----------------------------
@@ -13,30 +14,30 @@ Description: -----------------------------
About Dill
==========
- Dill extends python's 'pickle' module for serializing and de-serializing
+ `dill` extends python's `pickle` module for serializing and de-serializing
python objects to the majority of the built-in python types. Serialization
is the process of converting an object to a byte stream, and the inverse
of which is converting a byte stream back to on python object hierarchy.
- Dill provides the user the same interface as the 'pickle' module, and
+ `dill` provides the user the same interface as the `pickle` module, and
also includes some additional features. In addition to pickling python
- objects, dill provides the ability to save the state of an interpreter
+ objects, `dill` provides the ability to save the state of an interpreter
session in a single command. Hence, it would be feasable to save a
interpreter session, close the interpreter, ship the pickled file to
another computer, open a new interpreter, unpickle the session and
thus continue from the 'saved' state of the original interpreter
session.
- Dill can be used to store python objects to a file, but the primary
+ `dill` can be used to store python objects to a file, but the primary
usage is to send python objects across the network as a byte stream.
- Dill is quite flexible, and allows arbitrary user defined classes
- and funcitons to be serialized. Thus dill is not intended to be
+ `dill` is quite flexible, and allows arbitrary user defined classes
+ and functions to be serialized. Thus `dill` is not intended to be
secure against erroneously or maliciously constructed data. It is
left to the user to decide whether the data they unpickle is from
a trustworthy source.
- Dill is part of pathos, a python framework for heterogeneous computing.
- Dill is in active development, so any user feedback, bug reports, comments,
+ `dill` is part of `pathos`, a python framework for heterogeneous computing.
+ `dill` is in active development, so any user feedback, bug reports, comments,
or suggestions are highly appreciated. A list of known issues is maintained
at http://trac.mystic.cacr.caltech.edu/project/pathos/query, with a public
ticket list at https://github.com/uqfoundation/dill/issues.
@@ -45,7 +46,7 @@ Description: -----------------------------
Major Features
==============
- Dill can pickle the following standard types::
+ `dill` can pickle the following standard types::
- none, type, bool, int, long, float, complex, str, unicode,
- tuple, list, dict, file, buffer, builtin,
@@ -53,7 +54,7 @@ Description: -----------------------------
- instances of old and new style classes,
- set, frozenset, array, functions, exceptions
- Dill can also pickle more 'exotic' standard types::
+ `dill` can also pickle more 'exotic' standard types::
- functions with yields, nested functions, lambdas,
- cell, method, unboundmethod, module, code, methodwrapper,
@@ -61,11 +62,11 @@ Description: -----------------------------
- wrapperdescriptor, xrange, slice,
- notimplemented, ellipsis, quit
- Dill cannot yet pickle these standard types::
+ `dill` cannot yet pickle these standard types::
- frame, generator, traceback
- Dill also provides the capability to::
+ `dill` also provides the capability to::
- save and load python interpreter sessions
- save and extract the source code from functions and classes
@@ -75,9 +76,9 @@ Description: -----------------------------
Current Release
===============
- This version is dill-0.2.5.
+ This version is `dill-0.2.7`.
- The latest stable version of dill is available from::
+ The latest released version of `dill` is available from::
http://trac.mystic.cacr.caltech.edu/project/pathos
@@ -89,7 +90,7 @@ Description: -----------------------------
https://pypi.python.org/pypi/dill
- Dill is distributed under a 3-clause BSD license.
+ `dill` is distributed under a 3-clause BSD license.
>>> import dill
>>> print (dill.license())
@@ -102,26 +103,25 @@ Description: -----------------------------
https://github.com/uqfoundation
- Feel free to fork the github mirror of our svn trunk. If you have a new
- contribution, please submit a pull request.
+ If you have a new contribution, please submit a pull request.
Installation
============
- Dill is packaged to install from source, so you must
+ `dill` is packaged to install from source, so you must
download the tarball, unzip, and run the installer::
[download]
- $ tar -xvzf dill-0.2.5.tgz
- $ cd dill-0.2.5
+ $ tar -xvzf dill-0.2.7.tgz
+ $ cd dill-0.2.7
$ python setup py build
$ python setup py install
You will be warned of any missing dependencies and/or settings
after you run the "build" step above.
- Alternately, dill can be installed with pip or easy_install::
+ Alternately, `dill` can be installed with `pip` or `easy_install`::
$ pip install dill
@@ -129,9 +129,9 @@ Description: -----------------------------
Requirements
============
- Dill requires::
+ `dill` requires::
- - python2, version >= 2.5 *or* python3, version >= 3.1
+ - python2, version >= 2.5 *or* python3, version >= 3.1 *or* pypy
- pyreadline, version >= 1.7.1 (on windows)
Optional requirements::
@@ -144,27 +144,27 @@ Description: -----------------------------
================
Probably the best way to get started is to look at the tests that are
- provided within dill. See `dill.tests` for a set of scripts that demonstrate
- dill's ability to serialize different python objects. Since dill conforms
- to the 'pickle' interface, the examples and documentation at
- http://docs.python.org/library/pickle.html also apply to dill if one will
+ provided within `dill`. See `dill.tests` for a set of scripts that demonstrate
+ how `dill` can serialize different python objects. Since `dill` conforms
+ to the `pickle` interface, the examples and documentation at
+ http://docs.python.org/library/pickle.html also apply to `dill` if one will
`import dill as pickle`. The source code is also generally well
documented, so further questions may be resolved by inspecting the code
itself. Please also feel free to submit a ticket on github, or ask a
question on stackoverflow (@Mike McKerns).
- Dill is an active research tool. There are a growing number of publications
- and presentations that discuss real-world examples and new features of dill
+ `dill` is an active research tool. There are a growing number of publications
+ and presentations that discuss real-world examples and new features of `dill`
in greater detail than presented in the user's guide. If you would like to
- share how you use dill in your work, please post a link or send an email
- (to mmckerns at caltech dot edu).
+ share how you use `dill` in your work, please post a link or send an email
+ (to mmckerns at uqfoundation dot org).
Citation
========
- If you use dill to do research that leads to publication, we ask that you
- acknowledge use of dill by citing the following in your publication::
+ If you use `dill` to do research that leads to publication, we ask that you
+ acknowledge use of `dill` by citing the following in your publication::
M.M. McKerns, L. Strand, T. Sullivan, A. Fang, M.A.G. Aivazis,
"Building a framework for predictive science", Proceedings of
... 3456 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/dill.git
More information about the Python-modules-commits
mailing list