classmethod as self-creating object constructor
<p>'m working with code to manage objects on a remote store, which means I can either create objects as the result of a read from the store, or create objects which are sent to the store at creation time. The real goal here is to only create objects when the representation of the object on the remote store exists - if there's no representation on the remote store, no object gets created.</p>

<pre><code>class myClass:
  def __init__(self, parameter1, parameter2)
    self.param1 = parameter1
    self.param2 = parameter2

  @classmethod
  def create(parameter1, parameter2):
    if SendToRemoteStore(parameter1, parameter2) == True:
      return myClass(parameter1, parameter2)
    else:
      return None

  def __del__():
    DeleteFromRemoteStore(self)

# Two ways to create an instance
# As the result of a remote read:
data = GetFromRemoteStore()
object1 = myClass(data['foo'], data['bar'])

# Or if I'm creating the object here and 
# need to save it to store on creation:
object2 = myClass.create('baz', 'bar')
</code></pre>
