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 Eric Snow
Tags:
Recipe 1 to 20 of 39
« Prev
1
2
Next »
10
k
views
2
score
A class decorator for creating named tuples
Python
/
metaprogramming
,
namedtuple
/
by
Eric Snow
(11 years ago, revision 3)
8
k
views
1
score
Class-only Methods
Python
/
metaprogramming
/
by
Eric Snow
(11 years ago)
5
k
views
1
score
A simple enum type
Python
/
enum
,
metaclass
/
by
Eric Snow
(11 years ago, revision 2)
4
k
views
1
score
A Class Decorator that Adds a copy() Method
Python
/
metaprogramming
/
by
Eric Snow
(11 years ago)
3
k
views
1
score
ChainedList and ChainedListView: Exposing Multiple Lists as a Single Sequence
Python
/
lists
,
wrapper
/
by
Eric Snow
(11 years ago)
5
k
views
1
score
A generic factory factory.
Python
/
factory
/
by
Eric Snow
(11 years ago)
4
k
views
2
score
A Simpler Namespace Class
Python
/
namespaces
,
object
/
by
Eric Snow
(11 years ago, revision 3)
4
k
views
1
score
Tracking and Manipulating the Python Import State
Python
/
import
/
by
Eric Snow
(12 years ago)
6
k
views
1
score
A MutableMapping that Can Use Unhashable Objects as Keys
Python
/ no tags /
by
Eric Snow
(12 years ago)
6
k
views
1
score
A Script that Adds a Directory to sys.path Permanently
Python
/
script
,
sys_path
/
by
Eric Snow
(12 years ago)
20
k
views
1
score
Inspect a PYC File
Python
/
bytecode
,
inspection
,
pyc
/
by
Eric Snow
(12 years ago, revision 3)
44
k
views
0
score
A Simple Namespace Class
Python
/
dict
,
namespaces
/
by
Eric Snow
(12 years ago, revision 3)
9
k
views
1
score
Emulate Keyword-Only Arguments in Python 2
Python
/
argument
,
keyword_only
,
kwonly
,
parameter
/
by
Eric Snow
(12 years ago)
9
k
views
1
score
Simple Abstract "Constants" to Use When @abstractproperty is Overkill or Misleading
Python
/
attributes
,
classes
/
by
Eric Snow
(12 years ago)
10
k
views
1
score
Simple Lock Classes Based on threading.Lock()
Python
/
lock
,
locking
/
by
Eric Snow
(12 years ago)
12
k
views
1
score
See What the Builtins Are
Python
/
builtins
/
by
Eric Snow
(12 years ago, revision 3)
7
k
views
1
score
A Protocol for Making Objects Immutable
Python
/
freeze
,
immutable
,
mutable
,
unfreeze
/
by
Eric Snow
(12 years ago)
11
k
views
1
score
Mixins by Inheritance vs. by Decorator...Let's Try Decorators
Python
/
decorators
,
mixins
/
by
Eric Snow
(12 years ago)
13
k
views
1
score
Apply decorators to all functions in a module
Python
/
decorators
,
import
,
modules
/
by
Eric Snow
(12 years ago, revision 2)
5
k
views
2
score
Make a Class Available in its Own Definition Body!
Python
/
class
,
metaclass
/
by
Eric Snow
(12 years ago)
Recipe 1 to 20 of 39
« Prev
1
2
Next »
View
popular
,
latest
,
top-rated
or
most viewed
Feed of the popular recipes by Eric Snow
Top-rated recipes
Smarter Default Arguments
(Python)
A class decorator for creating nam…
(Python)
A Simpler Namespace Class
(Python)
Make a Class Available in its Own …
(Python)
Make a Class's Name Available in i…
(Python)
Simple but Powerful Grouped Consta…
(Python)
Inherit Method Docstrings Using On…
(Python)
Mixin and Overlay
(Python)
Class-only Methods
(Python)
A Class Decorator that Adds a copy…
(Python)
x
Undo