"Michele Simionato" <michele.simionato at gmail.com> wrote in message news:loom.20060601T112347-75 at post.gmane.org... > No, that check would match generator objects, not generators tout court. tout court?? is not English or commonly used at least in America > On a related notes, inspect.isfunction gives True on a generator, such > as > > def g(): yield None Ok, you mean generator function, which produces generators, not generators themselves. So what you want is a new isgenfunc function. That makes more sense, in a sense, since I can see that you would want to wrap genfuncs differently from regular funcs. But then I wonder why you don't use a different decorator since you know when you are writing a generator function. tjr
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4