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
Most viewed recipes by Alex Martelli
Tags:
Recipe 1 to 20 of 27
« Prev
1
2
Next »
383
k
views
4
score
Constants in Python
Python
/
oop
/
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)
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)
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)
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)
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)
45
k
views
2
score
"conditionals" in expressions
Python
/
algorithms
/
by
Alex Martelli
(23 years ago, revision 2)
44
k
views
2
score
Reversing a String by Words or Characters
Python
/
text
/
by
Alex Martelli
(22 years ago)
37
k
views
1
score
Read a text file by-paragraph
Python
/
files
/
by
Alex Martelli
(22 years ago, revision 2)
36
k
views
1
score
Assign and test
Python
/ no tags /
by
Alex Martelli
(22 years ago)
31
k
views
2
score
Automatic delegation as an alternative to inheritance
Python
/
oop
/
by
Alex Martelli
(23 years ago, revision 2)
27
k
views
1
score
To 'return None' from your Python-callable C function
Python
/
extending
/
by
Alex Martelli
(23 years ago)
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)
25
k
views
1
score
guaranteed-stable sort with the decorate-sort-undecorate idiom (aka Schwartzian transform)
Python
/
search
/
by
Alex Martelli
(22 years ago, revision 2)
19
k
views
2
score
A simple extension type for Python
Python
/
extending
/
by
Alex Martelli
(22 years ago, revision 2)
17
k
views
2
score
Accessing Substrings
Python
/
text
/
by
Alex Martelli
(22 years ago)
15
k
views
1
score
calling a superclass's implementation of a method
Python
/
oop
/
by
Alex Martelli
(23 years ago)
Recipe 1 to 20 of 27
« Prev
1
2
Next »
View
popular
,
latest
,
top-rated
or
most viewed
Feed of the most viewed 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