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
Popular 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)
14
k
views
2
score
high-performance currying with instancemethod
Python
/
algorithms
/
by
Alex Martelli
(20 years ago)
383
k
views
4
score
Constants in Python
Python
/
oop
/
by
Alex Martelli
(22 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)
65
k
views
9
score
Determining Current Function Name
Python
/ no tags /
by
Alex Martelli
(22 years ago)
60
k
views
2
score
IP address conversion functions with the builtin socket module
Python
/
network
/
by
Alex Martelli
(22 years ago)
13
k
views
1
score
The Auxiliary-Dictionary idiom for sequences with frequent 'in' tests
Python
/
search
/
by
Alex Martelli
(23 years ago, revision 2)
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)
37
k
views
1
score
Read a text file by-paragraph
Python
/
files
/
by
Alex Martelli
(22 years ago, revision 2)
360
k
views
7
score
"To sort a dictionary"
Python
/
search
/
by
Alex Martelli
(23 years ago, revision 2)
36
k
views
1
score
Assign and test
Python
/ no tags /
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)
12
k
views
1
score
Fast copy of an object having a slow __init__
Python
/
oop
/
by
Alex Martelli
(22 years ago)
44
k
views
2
score
Reversing a String by Words or Characters
Python
/
text
/
by
Alex Martelli
(22 years ago)
12
k
views
1
score
Reading Lines with Continuation Characters
Python
/
files
/
by
Alex Martelli
(22 years ago)
11
k
views
3
score
Expanding and Compressing Tabs
Python
/
text
/
by
Alex Martelli
(22 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)
17
k
views
2
score
Accessing Substrings
Python
/
text
/
by
Alex Martelli
(22 years ago)
151
k
views
5
score
"Static-methods" (aka "class-methods") in Python
Python
/
oop
/
by
Alex Martelli
(22 years ago, revision 3)
Recipe 1 to 20 of 27
« Prev
1
2
Next »
View
popular
,
latest
,
top-rated
or
most viewed
Feed of the popular recipes by Alex Martelli
Top-rated recipes
Singleton? We don't need no stinki…
(Python)
The simple but handy "collector of…
(Python)
Determining Current Function Name
(Python)
"To sort a dictionary"
(Python)
Yet Another Python Templating Util…
(Python)
Add an entry to a dictionary, unle…
(Python)
"Static-methods" (aka "class-metho…
(Python)
Constants in Python
(Python)
Expanding and Compressing Tabs
(Python)
high-performance currying with ins…
(Python)
x
Undo