Apr-30-2017, 04:31 AM
That's not what you're doing, though.
class colpage: def __init__(self,gutter=None,width=None,height=None): return self.geometry( gutter=gutter, width=width, height=height )It's just weird, not wrong. __init__ *can't* return anything, even if you want it to. So having
return
in an __init__ is just confusing to anyone reading the code, as it looks like you're trying to do something cryptic... when you're not, all you're doing is calling the function to setup some variables.