471,330 Members | 1,729 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Is it possible to use a instance property as a default value ?


I would like to use instance parameters as a default value, like this:

class PlotCanvas(wx.Window):
def __init__(self)
self.Buf_rp = 0
self.Buf_wp = 0

def Draw ( self, x1 = self.Buf_rp, x2 = self.Buf_wp ) :

is something like this possible ?

Stef Mientki
Nov 1 '07 #1
0 925

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

17 posts views Thread by bengamin | last post: by
2 posts views Thread by Andrzej Kaczmarczyk | last post: by
7 posts views Thread by Buddy Ackerman | last post: by
8 posts views Thread by Jordi Rico | last post: by
3 posts views Thread by Darren Dale | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.