[pybank] Remove lots of useless prints



commit 84a45d79a30eacc92e58cb1dc05f531fc01a9d29
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date:   Tue May 12 10:35:46 2009 +0200

    Remove lots of useless prints
---
 bank/btypes.py |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/bank/btypes.py b/bank/btypes.py
index c0ffa1c..6ee24f9 100644
--- a/bank/btypes.py
+++ b/bank/btypes.py
@@ -86,7 +86,6 @@ class Callable(object):
             raise NotImplementedError('type checking for tag %d' % tag)
 
     def __call__(self, *args, **kwargs):
-        print '__call__ %r %r %r' % (self, args, self.call_type)
         infoArgs = list(self.info.getArgs())
         requiredArgs = 0
         for arg in infoArgs:
@@ -112,7 +111,6 @@ class Callable(object):
                 name = infoArg.getName()
                 self.type_check(name, value, argType)
 
-        print "invoke with args %r" % (args,)
         retval = self.info.invoke(*args)
 
         if self.info.isConstructor():
@@ -167,15 +165,11 @@ class Method(Callable):
 
 class PyBankMeta(gobject.GObjectMeta):
     def __init__(cls, name, bases, dict_):
-        print 'PyBankMeta() %r' % ((cls, name, bases, dict_),)
-
         gobject.GObjectMeta.__init__(cls, name, bases, dict_)
 
         needs_constructor = not '__init__' in dict_
         cls._setup_methods(needs_constructor)
 
-        print 'dir(%s): %r' % (name, dir(cls))
-
     def _setup_methods(cls, needs_constructor):
         info = cls.__info__
         constructors = []
@@ -206,7 +200,7 @@ class PyBankMeta(gobject.GObjectMeta):
             func.__name__ = '__init__'
             func.__orig_name__ = winner.getName()
             cls.__init__ = new.instancemethod(func, None, cls)
-            print 'setting up %s as constructor of %s' % (winner.getName(), cls.__name__)
+            # TODO: do we want the constructor as a static method?
             #constructors.remove(winner)
 
         static_methods.extend(constructors)
@@ -256,7 +250,6 @@ class BaseBlob(object):
         return self.__info__.getValue(self.__dict__['__buffer__'], name)
 
     def __setattr__(self, name, value):
-        print "__setattr__ %r %r %r" % (self, name, value)
         self.__info__.setValue(self.__dict__['__buffer__'], name, value)
 
     def __eq__(self, other):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]