diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2019-11-30 00:51:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-30 00:51:13 +0000 |
commit | 0fbaec6b4f1bdfa462df62aac19e9b23465f2fe8 (patch) | |
tree | ba5f10b418ff07b1c20e20ec762dd3b54172d47b /numpy/compat/py3k.py | |
parent | 0725a58415e68eab9fa7d7389cdb40716447a4fb (diff) | |
parent | e55fa7fa5e564a28e151b9602f1ef9e3d6d47158 (diff) | |
download | numpy-0fbaec6b4f1bdfa462df62aac19e9b23465f2fe8.tar.gz |
Merge pull request #15014 from hmaarrfk/compat_comment_1.18
DOC: add a more useful comment to compat.py3k.py
Diffstat (limited to 'numpy/compat/py3k.py')
-rw-r--r-- | numpy/compat/py3k.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/numpy/compat/py3k.py b/numpy/compat/py3k.py index c9ed9d52c..90e17d6d6 100644 --- a/numpy/compat/py3k.py +++ b/numpy/compat/py3k.py @@ -1,9 +1,15 @@ """ -Python 3 compatibility tools. +Python 3.X compatibility tools. -""" -from __future__ import division, absolute_import, print_function +While this file was originally intented for Python 2 -> 3 transition, +it is now used to create a compatibility layer between different +minor versions of Python 3. +While the active version of numpy may not support a given version of python, we +allow downstream libraries to continue to use these shims for forward +compatibility with numpy while they transition their code to newer versions of +Python. +""" __all__ = ['bytes', 'asbytes', 'isfileobj', 'getexception', 'strchar', 'unicode', 'asunicode', 'asbytes_nested', 'asunicode_nested', 'asstr', 'open_latin1', 'long', 'basestring', 'sixu', |