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 Alex Martelli
Tags:
Recipe 1 to 20 of 27
« Prev
1
2
Next »
222
k
views
16
score
Singleton? We don't need no stinkin' singleton: the Borg design pattern
Python
/
oop
/
by
Alex Martelli
(22 years ago, revision 2)
133
k
views
10
score
The simple but handy "collector of a bunch of named stuff" class
Python
/
oop
/
by
Alex Martelli
(23 years ago, revision 2)
65
k
views
9
score
Determining Current Function Name
Python
/ no tags /
by
Alex Martelli
(22 years ago)
360
k
views
7
score
"To sort a dictionary"
Python
/
search
/
by
Alex Martelli
(23 years ago, revision 2)
79
k
views
7
score
Yet Another Python Templating Utility (YAPTU)
Python
/
text
/
by
Alex Martelli
(22 years ago, revision 6)
160
k
views
5
score
Add an entry to a dictionary, unless the entry is already there
Python
/
shortcuts
/
by
Alex Martelli
(22 years ago, revision 2)
151
k
views
5
score
"Static-methods" (aka "class-methods") in Python
Python
/
oop
/
by
Alex Martelli
(22 years ago, revision 3)
383
k
views
4
score
Constants in Python
Python
/
oop
/
by
Alex Martelli
(22 years ago, revision 2)
11
k
views
3
score
Expanding and Compressing Tabs
Python
/
text
/
by
Alex Martelli
(22 years ago, revision 2)
14
k
views
2
score
high-performance currying with instancemethod
Python
/
algorithms
/
by
Alex Martelli
(20 years ago)
60
k
views
2
score
IP address conversion functions with the builtin socket module
Python
/
network
/
by
Alex Martelli
(22 years ago)
19
k
views
2
score
A simple extension type for Python
Python
/
extending
/
by
Alex Martelli
(22 years ago, revision 2)
44
k
views
2
score
Reversing a String by Words or Characters
Python
/
text
/
by
Alex Martelli
(22 years ago)
17
k
views
2
score
Accessing Substrings
Python
/
text
/
by
Alex Martelli
(22 years ago)
45
k
views
2
score
"conditionals" in expressions
Python
/
algorithms
/
by
Alex Martelli
(23 years ago, revision 2)
31
k
views
2
score
Automatic delegation as an alternative to inheritance
Python
/
oop
/
by
Alex Martelli
(23 years ago, revision 2)
26
k
views
2
score
various idioms for "call my superclass's __init__ IF it has one"
Python
/
oop
/
by
Alex Martelli
(23 years ago, revision 2)
14
k
views
2
score
Parallel loop on index and sequence-item
Python
/ no tags /
by
Alex Martelli
(22 years ago, revision 3)
12
k
views
1
score
Fast copy of an object having a slow __init__
Python
/
oop
/
by
Alex Martelli
(22 years ago)
12
k
views
1
score
Reading Lines with Continuation Characters
Python
/
files
/
by
Alex Martelli
(22 years ago)
Recipe 1 to 20 of 27
« Prev
1
2
Next »
View
popular
,
latest
,
top-rated
or
most viewed
Feed of the top-rated recipes by Alex Martelli
x
Undo