Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 4
0
 def assocEd(self, edit,  shift, hsh, key, val, addedLeaf):
     raise AbstractMethodCall(self)
Ejemplo n.º 5
0
 def cons(self, o):
     raise AbstractMethodCall(self)
Ejemplo n.º 6
0
 def empty(self):
     raise AbstractMethodCall(self)
Ejemplo n.º 7
0
 def __len__(self):
     raise AbstractMethodCall(self)
Ejemplo n.º 8
0
 def withMeta(self, meta):
     raise AbstractMethodCall(self)
Ejemplo n.º 9
0
 def doWithout(self, key):
     raise AbstractMethodCall(self)
Ejemplo n.º 10
0
 def __call__(self, *args):
     raise AbstractMethodCall(self)
Ejemplo n.º 11
0
 def __contains__(self, item):
     raise AbstractMethodCall(self)
Ejemplo n.º 12
0
 def disjoin(self, key):
     raise AbstractMethodCall(self)
Ejemplo n.º 13
0
 def seq(self):
     raise AbstractMethodCall(self)
Ejemplo n.º 14
0
 def hasheq(self):
     raise AbstractMethodCall(self)
Ejemplo n.º 15
0
 def withoutEd(self,  edit,  shift,  hsh,  key,  removedLeaf):
     raise AbstractMethodCall(self)
Ejemplo n.º 16
0
 def meta(self):
     raise AbstractMethodCall(self)
Ejemplo n.º 17
0
 def doPersistent(self):
     raise AbstractMethodCall(self)
Ejemplo n.º 18
0
 def ensureEditable(self):
     raise AbstractMethodCall(self)
Ejemplo n.º 19
0
 def __iter__(self):
     raise AbstractMethodCall(self)
Ejemplo n.º 20
0
 def valAt(self, key, notFound=None):
     raise AbstractMethodCall(self)
Ejemplo n.º 21
0
 def reduce(self, *args):
     raise AbstractMethodCall(self)
Ejemplo n.º 22
0
 def deref(self):
     raise AbstractMethodCall(self)
Ejemplo n.º 23
0
 def compare(self, a, b):
     raise AbstractMethodCall()
Ejemplo n.º 24
0
 def assoc(self, key, val):
     raise AbstractMethodCall(self)
Ejemplo n.º 25
0
 def assocN(self, i, val):
     raise AbstractMethodCall(self)
Ejemplo n.º 26
0
 def containsKey(self, key):
     raise AbstractMethodCall(self)
Ejemplo n.º 27
0
 def count(self):
     raise AbstractMethodCall(self)
Ejemplo n.º 28
0
 def entryAt(self, key):
     raise AbstractMethodCall(self)
Ejemplo n.º 29
0
 def compileSet(self, comp):
     raise AbstractMethodCall(self)
Ejemplo n.º 30
0
 def nodeSeq(self):
     raise AbstractMethodCall(self)