annotate Lib/struct.py @ 87690:66c1c9f32567 default tip

Add use_weakref option to functools.lru_cache The use_weakref option makes lru_cache create weak references to the function arguments when creating the cache key, which prevents them from staying in the memory forever even after all other references to them are gone. This is a proof of concept for http://bugs.python.org/issue19859
author Radomir Dopieralski <devel@sheep.art.pl>
date Tue, 03 Dec 2013 16:02:48 +0100
parents d232cff25bbd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
62296
bd86bba5ed33 Issue #8973: Add __all__ to struct module, so that help(struct) correctly
Mark Dickinson <dickinsm@gmail.com>
parents: 56418
diff changeset
1 __all__ = [
bd86bba5ed33 Issue #8973: Add __all__ to struct module, so that help(struct) correctly
Mark Dickinson <dickinsm@gmail.com>
parents: 56418
diff changeset
2 # Functions
67833
4f94873846a3 Issue #11081: Fixed struct.__all__. Reviewed by Georg Brandl.
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents: 62296
diff changeset
3 'calcsize', 'pack', 'pack_into', 'unpack', 'unpack_from',
83524
d232cff25bbd Issue #17804: New function ``struct.iter_unpack`` allows for streaming struct unpacking.
Antoine Pitrou <solipsis@pitrou.net>
parents: 67833
diff changeset
4 'iter_unpack',
62296
bd86bba5ed33 Issue #8973: Add __all__ to struct module, so that help(struct) correctly
Mark Dickinson <dickinsm@gmail.com>
parents: 56418
diff changeset
5
bd86bba5ed33 Issue #8973: Add __all__ to struct module, so that help(struct) correctly
Mark Dickinson <dickinsm@gmail.com>
parents: 56418
diff changeset
6 # Classes
bd86bba5ed33 Issue #8973: Add __all__ to struct module, so that help(struct) correctly
Mark Dickinson <dickinsm@gmail.com>
parents: 56418
diff changeset
7 'Struct',
bd86bba5ed33 Issue #8973: Add __all__ to struct module, so that help(struct) correctly
Mark Dickinson <dickinsm@gmail.com>
parents: 56418
diff changeset
8
bd86bba5ed33 Issue #8973: Add __all__ to struct module, so that help(struct) correctly
Mark Dickinson <dickinsm@gmail.com>
parents: 56418
diff changeset
9 # Exceptions
bd86bba5ed33 Issue #8973: Add __all__ to struct module, so that help(struct) correctly
Mark Dickinson <dickinsm@gmail.com>
parents: 56418
diff changeset
10 'error'
bd86bba5ed33 Issue #8973: Add __all__ to struct module, so that help(struct) correctly
Mark Dickinson <dickinsm@gmail.com>
parents: 56418
diff changeset
11 ]
bd86bba5ed33 Issue #8973: Add __all__ to struct module, so that help(struct) correctly
Mark Dickinson <dickinsm@gmail.com>
parents: 56418
diff changeset
12
44461
61c164f25435 Merged revisions 59696-59702 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43777
diff changeset
13 from _struct import *
61c164f25435 Merged revisions 59696-59702 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43777
diff changeset
14 from _struct import _clearcache
56418
dd94f1d8c9a5 Merged revisions 75284 via svnmerge from
Mark Dickinson <dickinsm@gmail.com>
parents: 44461
diff changeset
15 from _struct import __doc__