Exemplo n.º 1
0
 def to_str(self):
     if self._name is None:
         try:
             self._name = '%s%s(%r %r)' % (hex(
                 id(self)), core_inspection.get_full_name(
                     self.fn), self.args, self.kwargs)
         except RuntimeError:
             self._name = str(hex(
                 id(self))) + core_inspection.get_full_name(self.fn)
     return self._name
Exemplo n.º 2
0
 def to_str(self):
     if self._name is None:
         try:
             self._name = '%06d.%s(%r %r)' % (
                 self._id, core_inspection.get_full_name(
                     self.fn), self.args, self.kwargs)
         except RuntimeError:
             self._name = '%06d.%s' % (
                 self._id, core_inspection.get_full_name(self.fn))
     return self._name
Exemplo n.º 3
0
 def __str__(self):
     return "%s (%s, %i items)" % (
         core_inspection.get_full_name(type(self)),
         "cancelled"
         if self.is_cancelled()
         else "flushed"
         if self.is_flushed()
         else "pending",
         len(self.items),
     )
Exemplo n.º 4
0
 def __str__(self):
     return '%s (%s, %i items)' % (core_inspection.get_full_name(
         type(self)), 'cancelled' if self.is_cancelled() else 'flushed'
                                   if self.is_flushed() else 'pending',
                                   len(self.items))