PHP 8.0.30
Preview: newmemoryview.py Size: 654 B
/opt/alt/python37/lib/python3.7/site-packages/future/types/newmemoryview.py

"""
A pretty lame implementation of a memoryview object for Python 2.6.
"""

from collections import Iterable
from numbers import Integral
import string

from future.utils import istext, isbytes, PY3, with_metaclass
from future.types import no, issubset


# class BaseNewBytes(type):
#     def __instancecheck__(cls, instance):
#         return isinstance(instance, _builtin_bytes)


class newmemoryview(object):   # with_metaclass(BaseNewBytes, _builtin_bytes)):
    """
    A pretty lame backport of the Python 2.7 and Python 3.x
    memoryviewview object to Py2.6.
    """
    def __init__(self, obj):
        return obj


__all__ = ['newmemoryview']

Directory Contents

Dirs: 1 × Files: 10

Name Size Perms Modified Actions
- drwxr-xr-x 2023-12-06 03:19:52
Edit Download
15.86 KB lrw-r--r-- 2018-10-25 22:21:01
Edit Download
3.03 KB lrw-r--r-- 2018-10-25 22:21:01
Edit Download
12.92 KB lrw-r--r-- 2018-10-25 22:21:01
Edit Download
2.23 KB lrw-r--r-- 2018-10-25 22:21:01
Edit Download
654 B lrw-r--r-- 2018-10-25 22:21:01
Edit Download
3.26 KB lrw-r--r-- 2018-10-25 22:21:01
Edit Download
810 B lrw-r--r-- 2018-10-25 22:21:01
Edit Download
5.07 KB lrw-r--r-- 2018-10-25 22:21:01
Edit Download
15.10 KB lrw-r--r-- 2018-10-25 22:21:01
Edit Download
6.67 KB lrw-r--r-- 2018-10-25 22:21:01
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).