Skip to content

Instantly share code, notes, and snippets.

@stubb
Created July 26, 2012 20:39
Show Gist options
  • Save stubb/3184367 to your computer and use it in GitHub Desktop.
Save stubb/3184367 to your computer and use it in GitHub Desktop.
if point is not None:
self.x, self.y = point.x, point.y
else:
self.x, self.y = None, None
@enno4uh
Copy link

enno4uh commented Jul 26, 2012

    self.x, self.y = None, None
    if point is not None:
        self.x, self.y = point.x, point.y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment