Jeroen Vermeulen <jtv@...> writes:

> 

> 
> I can think of two things to do about this:
> 
> (a) Create a separate, less flexible version of find() for this.
> 
> (b) Poke the profiling information in the Result that comes out.
> 
> Are there any other ways?  


(c) create a marker class for the first argument to find

  >>> class ReferenceLoad(tuple):
  ...   __slots__ = ()
  ... 
  >>> 
  >>> class MyStorm(object):
  ...   pass
  ... 
  >>> a=ReferenceLoad((MyStorm,))
  >>> a
  (<class '__main__.MyStorm'>,)
  >>> a[0]
  <class '__main__.MyStorm'>
  >>> isinstance(a,ReferenceLoad)
  True


Bozzo




-- 
storm mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/storm

Reply via email to