New upstream version 1.2
Andrej Shadura
5 years ago
0 | |
# Compiled stuff
|
1 | |
*.pyc
|
2 | |
*.pyo
|
3 | |
doc/_build
|
4 | |
|
5 | |
# Crap created by version control
|
6 | |
.orig
|
7 | |
.rej
|
8 | |
|
9 | |
# Files created by distutils
|
10 | |
MANIFEST
|
11 | |
dist
|
12 | |
*.egg-info
|
13 | |
.cache
|
14 | |
|
15 | |
# OS X
|
16 | |
.DS_Store
|
17 | |
|
18 | |
# Other *nix:es
|
19 | |
.~
|
|
0 |
Metadata-Version: 1.0
|
|
1 |
Name: frozendict
|
|
2 |
Version: 1.2
|
|
3 |
Summary: An immutable dictionary
|
|
4 |
Home-page: https://github.com/slezica/python-frozendict
|
|
5 |
Author: Santiago Lezica
|
|
6 |
Author-email: slezica89@gmail.com
|
|
7 |
License: MIT License
|
|
8 |
Description: ==========
|
|
9 |
frozendict
|
|
10 |
==========
|
|
11 |
|
|
12 |
``frozendict`` is an immutable wrapper around dictionaries that implements the
|
|
13 |
complete mapping interface. It can be used as a drop-in replacement for
|
|
14 |
dictionaries where immutability is desired.
|
|
15 |
|
|
16 |
Of course, this is ``python``, and you can still poke around the object's
|
|
17 |
internals if you want.
|
|
18 |
|
|
19 |
The ``frozendict`` constructor mimics ``dict``, and all of the expected
|
|
20 |
interfaces (``iter``, ``len``, ``repr``, ``hash``, ``getitem``) are provided.
|
|
21 |
Note that a ``frozendict`` does not guarantee the immutability of its values, so
|
|
22 |
the utility of ``hash`` method is restricted by usage.
|
|
23 |
|
|
24 |
The only difference is that the ``copy()`` method of ``frozendict`` takes
|
|
25 |
variable keyword arguments, which will be present as key/value pairs in the new,
|
|
26 |
immutable copy.
|
|
27 |
|
|
28 |
Example shell usage:
|
|
29 |
|
|
30 |
.. code-block:: python
|
|
31 |
|
|
32 |
from frozendict import frozendict
|
|
33 |
|
|
34 |
fd = frozendict({ 'hello': 'World' })
|
|
35 |
|
|
36 |
print fd
|
|
37 |
# <frozendict {'hello': 'World'}>
|
|
38 |
|
|
39 |
print fd['hello']
|
|
40 |
# 'World'
|
|
41 |
|
|
42 |
print fd.copy(another='key/value')
|
|
43 |
# <frozendict {'hello': 'World', 'another': 'key/value'}>
|
|
44 |
|
|
45 |
Platform: UNKNOWN
|
|
0 |
Metadata-Version: 1.0
|
|
1 |
Name: frozendict
|
|
2 |
Version: 1.2
|
|
3 |
Summary: An immutable dictionary
|
|
4 |
Home-page: https://github.com/slezica/python-frozendict
|
|
5 |
Author: Santiago Lezica
|
|
6 |
Author-email: slezica89@gmail.com
|
|
7 |
License: MIT License
|
|
8 |
Description: ==========
|
|
9 |
frozendict
|
|
10 |
==========
|
|
11 |
|
|
12 |
``frozendict`` is an immutable wrapper around dictionaries that implements the
|
|
13 |
complete mapping interface. It can be used as a drop-in replacement for
|
|
14 |
dictionaries where immutability is desired.
|
|
15 |
|
|
16 |
Of course, this is ``python``, and you can still poke around the object's
|
|
17 |
internals if you want.
|
|
18 |
|
|
19 |
The ``frozendict`` constructor mimics ``dict``, and all of the expected
|
|
20 |
interfaces (``iter``, ``len``, ``repr``, ``hash``, ``getitem``) are provided.
|
|
21 |
Note that a ``frozendict`` does not guarantee the immutability of its values, so
|
|
22 |
the utility of ``hash`` method is restricted by usage.
|
|
23 |
|
|
24 |
The only difference is that the ``copy()`` method of ``frozendict`` takes
|
|
25 |
variable keyword arguments, which will be present as key/value pairs in the new,
|
|
26 |
immutable copy.
|
|
27 |
|
|
28 |
Example shell usage:
|
|
29 |
|
|
30 |
.. code-block:: python
|
|
31 |
|
|
32 |
from frozendict import frozendict
|
|
33 |
|
|
34 |
fd = frozendict({ 'hello': 'World' })
|
|
35 |
|
|
36 |
print fd
|
|
37 |
# <frozendict {'hello': 'World'}>
|
|
38 |
|
|
39 |
print fd['hello']
|
|
40 |
# 'World'
|
|
41 |
|
|
42 |
print fd.copy(another='key/value')
|
|
43 |
# <frozendict {'hello': 'World', 'another': 'key/value'}>
|
|
44 |
|
|
45 |
Platform: UNKNOWN
|
|
0 |
LICENSE.txt
|
|
1 |
MANIFEST.in
|
|
2 |
README.rst
|
|
3 |
setup.py
|
|
4 |
frozendict/__init__.py
|
|
5 |
frozendict.egg-info/PKG-INFO
|
|
6 |
frozendict.egg-info/SOURCES.txt
|
|
7 |
frozendict.egg-info/dependency_links.txt
|
|
8 |
frozendict.egg-info/top_level.txt⏎
|
|
0 |
[egg_info]
|
|
1 |
tag_build =
|
|
2 |
tag_date = 0
|
|
3 |
tag_svn_revision = 0
|
|
4 |
|