Skip to Search
Skip to Navigation
Skip to Content
Community
|
Code
|
Docs
|
Downloads
▼
Perl
Python
Tcl
Komodo IDE
|
more
▼
Lists
Support
PPM Index
PyPM Index
Welcome, guest
|
Sign In
|
My Account
|
Store
|
Cart
ActiveState Code
»
Recipes
Languages
Tags
Authors
Sets
Top-rated recipes by Oren Tirosh
Tags:
80
k
views
6
score
Probably the fastest memoization decorator in the world
Python
/
cache
,
decorator
,
memo
,
memoization
/
by
Oren Tirosh
(11 years ago)
9
k
views
5
score
One-liner to show the caller of the current function.
Python
/
_getframe
/
by
Oren Tirosh
(11 years ago)
27
k
views
5
score
Frozen dictionaries
Python
/
algorithms
/
by
Oren Tirosh
(18 years ago)
7
k
views
3
score
Mixin for pickling objects with __slots__
Python
/
pickle
,
unpickle
,
__slots__
/
by
Oren Tirosh
(11 years ago)
14
k
views
3
score
Code to source and back
Python
/
ast
,
decompile
,
recompile
,
uncompile
/
by
Oren Tirosh
(11 years ago)
7
k
views
3
score
Immutable class decorator
Python
/
decorator
,
immutable
/
by
Oren Tirosh
(11 years ago)
8
k
views
3
score
Context manager to atomically replace a file
Python
/
atomic
,
contextmanager
,
file
,
replace
/
by
Oren Tirosh
(11 years ago, revision 3)
26
k
views
3
score
Retry loop
Python
/
exception
,
generator
,
loop
,
retry
,
timeout
/
by
Oren Tirosh
(10 years ago, revision 4)
5
k
views
3
score
Context manager to prevent calling code from catching exceptions
Python
/
context_manager
,
exception
/
by
Oren Tirosh
(11 years ago)
8
k
views
2
score
ctypes CDLL with automatic errno checking
Python
/ no tags /
by
Oren Tirosh
(7 years ago)
6
k
views
2
score
Monotonic local time. And sandwich.
Python
/
daylight
,
dst
,
time
/
by
Oren Tirosh
(11 years ago)
18
k
views
2
score
Pickle the interactive interpreter state
Python
/
sysadmin
/
by
Oren Tirosh
(15 years ago, revision 2)
23
k
views
2
score
Finding the last item in a loop
Python
/
algorithms
/
by
Oren Tirosh
(19 years ago)
16
k
views
1
score
How to read millions of hexadecimal numbers into a numpy array quickly
Python
/
numpy
/
by
Oren Tirosh
(11 years ago)
7
k
views
1
score
Teach the hashbang header new tricks using a dual mode shell/python script
Python
/
hashbang
,
interpreter
,
options
,
python
,
sh
,
shell
/
by
Oren Tirosh
(12 years ago)
6
k
views
1
score
Unicode repr
Python
/ no tags /
by
Oren Tirosh
(16 years ago)
View
popular
,
latest
,
top-rated
or
most viewed
Feed of the top-rated recipes by Oren Tirosh
x
Undo