Gary Bernhardt

Results 52 comments of Gary Bernhardt

I want to deprecate "returner"; it's confusing anyway.

The patch in question: ``` diff -r 2c96882a32d1 dingus.py --- a/dingus.py Sat May 29 15:16:50 2010 -0700 +++ b/dingus.py Fri Jun 04 20:32:27 2010 -0400 @@ -275,16 +275,20 @@ class...

I've pushed a "contains_support" branch with this patch and some elaboration on it. There's a failing test that illustrates the problem: dictionaries and lists handle containment differently. For dictionaries, "x...

Michael Foord says: > @garybernhardt **contains** return value is always cast to a bool, so can't return an arbitrary object. (Sucky IMO but there you go.) I guess returning a...

Only runtests.py should have to change, right? Go for it!

I'm opposed to DSL attempts like that in Python, but I wouldn't mind seeing the runner use nose2 by default.

-1. It's a syntactic and semantic mess, like all attempts to get RSpec-like syntax in Python (he says, having written one such tool years ago).

But I'm still fine with changing to nose2, of course.

Ahh, yeah, I totally misunderstood. :)

I almost never write Python right now, so I'm probably not going to beat you to it, but a PR would be appreciated. :)