summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-08-03 08:47:30 -0600
committerTavian Barnes <tavianator@gmail.com>2011-08-03 08:47:30 -0600
commitdc2aa37ea8bfc55dffd019bc95e3682af2b767a5 (patch)
tree4b71675a89ebecba552995a0a37702be2eb80041
parent5bb6d7edbf4edbc135a4d9aeda19cd7994cb7077 (diff)
downloaddimension-dc2aa37ea8bfc55dffd019bc95e3682af2b767a5.tar.xz
Take *args and **kwargs in Cylinder().
-rw-r--r--libdimension-python/dimension.pyx6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx
index a8f9cd8..996e288 100644
--- a/libdimension-python/dimension.pyx
+++ b/libdimension-python/dimension.pyx
@@ -1049,7 +1049,8 @@ cdef class Cone(Object):
cdef class Cylinder(Cone):
"""A cylinder."""
- def __init__(self, bottom, top, double radius, bool open not None = False):
+ def __init__(self, bottom, top, double radius, bool open not None = False,
+ *args, **kwargs):
"""
Create a Cylinder.
@@ -1064,7 +1065,8 @@ cdef class Cylinder(Cone):
Cone.__init__(self,
bottom = bottom, bottom_radius = radius,
top = top, top_radius = radius,
- open = open)
+ open = open,
+ *args, **kwargs)
cdef class Torus(Object):
"""A torus."""