Example #1
0
    def writeAsString(self, writer):
        """Write a user-friendly string to writer.

        writer -- a writable stream such as sys.stdout, StringIO, etc.

        This function mimics the Python __str__ method. If the printed
        representation is the same at the Python repl and at the clojure-py
        repl, this method could simply write str(self)."""
        raise AbstractMethodCall(self)
Example #2
0
    def withMeta(self, meta):
        """Attach meta data to a subclass instance.

        meta -- a PersistentHashMap

        Subclasses generally return a *new* instance of themselves with meta
        attached.

        This base raises AbstractMethodCall"""
        raise AbstractMethodCall(self)
Example #3
0
    def writeAsReplString(self, writer):
        """Write a string readable by the clojure-py reader to writer.

        writer -- a writable stream such as sys.stdout, StringIO, etc.

        This function mimics the Python __repl__ method. But, we're writing a
        clojure-py readable string, *not* a Python readable string. If the
        object is unreadable it must have the form:

        #<fully.qualified.Name object at 0xADDRESS foo>

        The last foo is optional and can be any string of printable
        characters.

        An example of this is the Python list. clojure-py has extended the
        IPrintable protocol to include these objectS.

        user=> sys/path
        #<__builtin__.list object at 0xdeadbeef>
        user=>"""
        raise AbstractMethodCall(self)
 def assocEd(self, edit,  shift, hsh, key, val, addedLeaf):
     raise AbstractMethodCall(self)
Example #5
0
 def cons(self, o):
     raise AbstractMethodCall(self)
Example #6
0
 def empty(self):
     raise AbstractMethodCall(self)
Example #7
0
 def __len__(self):
     raise AbstractMethodCall(self)
Example #8
0
 def withMeta(self, meta):
     raise AbstractMethodCall(self)
Example #9
0
 def doWithout(self, key):
     raise AbstractMethodCall(self)
Example #10
0
 def __call__(self, *args):
     raise AbstractMethodCall(self)
Example #11
0
 def __contains__(self, item):
     raise AbstractMethodCall(self)
Example #12
0
 def disjoin(self, key):
     raise AbstractMethodCall(self)
Example #13
0
 def seq(self):
     raise AbstractMethodCall(self)
Example #14
0
 def hasheq(self):
     raise AbstractMethodCall(self)
 def withoutEd(self,  edit,  shift,  hsh,  key,  removedLeaf):
     raise AbstractMethodCall(self)
Example #16
0
 def meta(self):
     raise AbstractMethodCall(self)
Example #17
0
 def doPersistent(self):
     raise AbstractMethodCall(self)
Example #18
0
 def ensureEditable(self):
     raise AbstractMethodCall(self)
Example #19
0
 def __iter__(self):
     raise AbstractMethodCall(self)
Example #20
0
 def valAt(self, key, notFound=None):
     raise AbstractMethodCall(self)
Example #21
0
 def reduce(self, *args):
     raise AbstractMethodCall(self)
Example #22
0
 def deref(self):
     raise AbstractMethodCall(self)
Example #23
0
 def compare(self, a, b):
     raise AbstractMethodCall()
Example #24
0
 def assoc(self, key, val):
     raise AbstractMethodCall(self)
Example #25
0
 def assocN(self, i, val):
     raise AbstractMethodCall(self)
Example #26
0
 def containsKey(self, key):
     raise AbstractMethodCall(self)
Example #27
0
 def count(self):
     raise AbstractMethodCall(self)
Example #28
0
 def entryAt(self, key):
     raise AbstractMethodCall(self)
Example #29
0
 def compileSet(self, comp):
     raise AbstractMethodCall(self)
 def nodeSeq(self):
     raise AbstractMethodCall(self)