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