summaryrefslogtreecommitdiffstats
path: root/Objects/funcobject.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2003-02-18 17:02:15 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2003-02-18 17:02:15 (GMT)
commitff71c98449c7fd2499d51474dbf690eb7f98dabf (patch)
tree0a51f930c9c98e5cb451edd891f93e7e2392eb75 /Objects/funcobject.c
parente2052ab82aad273fa547fb91e09d63a15b3be305 (diff)
downloadcpython-ff71c98449c7fd2499d51474dbf690eb7f98dabf.zip
cpython-ff71c98449c7fd2499d51474dbf690eb7f98dabf.tar.gz
cpython-ff71c98449c7fd2499d51474dbf690eb7f98dabf.tar.bz2
Make __module__ settable on functions and methods.
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r--Objects/funcobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index b162fdf..fa24131 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -159,7 +159,7 @@ static PyMemberDef func_memberlist[] = {
RESTRICTED|READONLY},
{"func_name", T_OBJECT, OFF(func_name), READONLY},
{"__name__", T_OBJECT, OFF(func_name), READONLY},
- {"__module__", T_OBJECT, OFF(func_module), READONLY},
+ {"__module__", T_OBJECT, OFF(func_module)},
{NULL} /* Sentinel */
};