Skip to content

Commit

Permalink
Correct review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mindw committed Dec 26, 2016
1 parent c518d08 commit 1ad8545
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 45 deletions.
68 changes: 33 additions & 35 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,51 +37,49 @@ 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,
- both old and new style classes,
- instances of old and new style classes,
- set, frozenset, array, functions, exceptions
* 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::
`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
* 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::
`dill` cannot yet pickle these standard types:

- frame, generator, traceback
* 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
- interactively diagnose pickling errors
* 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-%(relver)s`.
The latest released version of `dill` is available from:

The latest released version of `dill` is available from::
* http://trac.mystic.cacr.caltech.edu/project/pathos

http://trac.mystic.cacr.caltech.edu/project/pathos

or::
or:

https://github.com/uqfoundation/dill/releases
* https://github.com/uqfoundation/dill/releases

or also::
or also:

https://pypi.python.org/pypi/dill
* 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())
Expand All @@ -90,9 +88,9 @@ or also::
Development Version
===================

You can get the latest development version with all the shiny new features at::
You can get the latest development version with all the shiny new features at:

https://github.com/uqfoundation
* https://github.com/uqfoundation/dill/

If you have a new contribution, please submit a pull request.

Expand Down Expand Up @@ -120,15 +118,15 @@ Alternately, `dill` can be installed with `pip` or `easy_install`::
Requirements
============

`dill` requires::
`dill` requires:

- python2, version >= 2.5 *or* python3, version >= 3.1
- pyreadline, version >= 1.7.1 (on windows)
* python2, version >= 2.5 *or* python3, version >= 3.1
* pyreadline, version >= 1.7.1 (on windows)

Optional requirements::
Optional requirements:

- setuptools, version >= 0.6
- objgraph, version >= 1.7.2
* setuptools, version >= 0.6
* objgraph, version >= 1.7.2


More Information
Expand Down
4 changes: 2 additions & 2 deletions dill/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def extend(use_dill=True):

def license():
"""print license"""
print (__license__)
print(__license__)

def citation():
"""print citation"""
print (__doc__[-501:-123])
print(__doc__[-501:-123])

del odict
4 changes: 3 additions & 1 deletion dill/unpickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
# License: 3-clause BSD. The full license text is available at:
# - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE

from __future__ import print_function

def main():
import sys
from . import load
for file in sys.argv[1:]:
print load(open(file,'r'))
print(load(open(file,'r')))

if __name__ == '__main__':
main()
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
with open(path.join(_here, 'README.rst')) as f:
long_description = f.read()

install_requires = []

# build the 'setup' call
setup(
name='dill',
Expand All @@ -29,16 +27,13 @@
'local_scheme': 'dirty-tag',
'write_to': 'dill/_version.py'
},
setup_requires=['setuptools-scm>=1.6.0'],
description='serialize all of python',
long_description = long_description,
author_email = 'mmckerns at uqfoundation dot org',
maintainer = 'Mike McKerns',
maintainer_email = 'mmckerns at uqfoundation dot org',
license = '3-clause BSD',
platforms = ['Linux', 'Windows', 'Mac'],
url = 'http://www.cacr.caltech.edu/~mmckerns/dill.htm',
download_url = 'http://dev.danse.us/packages',
url = 'http://trac.mystic.cacr.caltech.edu/project/pathos/wiki/dill.html',
classifiers = (
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand All @@ -54,7 +49,8 @@
include_package_data=True,
package_data={'': ['LICENSE', '*.rst']},
zip_safe=False,
install_requires=install_requires,
install_requires=[],
setup_requires=['setuptools-scm>=1.6.0'],
extras_require={
'optional': [
'objgraph>=1.7.2',
Expand Down

0 comments on commit 1ad8545

Please sign in to comment.