Search Results
-
#7227 Up↑ /3 Down↓ [Report] 2014-02-23 05:02 GMT
<emerson> cait^: python's nice for quick, small programs
<cait^> most of the time I've spent with it was working on WAF, and some tiny scripts that sort of emulated shell scripts (which is still terrible because of the awful subprocess module)
* emerson searched 'waf' on google and the wikipedia article that came up was "wife acceptance factor"
<cait^> if it stands for anything, I'm not sure what it stands for ;)
<cait^> https://code.google.com/p/waf/
<emerson> haha maybe the wife acceptance factor goes up if you can wow her with C++ instead of python
<cait^> varies from wife to wife, I'm sure
<emerson> sucks to get the one who wants straight machine code... -
#6750 Up↑ /2 Down↓ [Report] 2013-01-16 11:35 GMT
<bz> so I don't understand this
<bz> help!
* bz is too dumb to grok python
<bz> methods = [CallbackOperation(m, sig, descriptor) for
<bz> sig in m.signatures() for m in iface.members
<bz> if m.isMethod() and not m.isStatic()]
<seth> bz: i don't understand it either. when you get that crash, is m.isMethod() false?
<bz> So as long as there is one object in iface.members for which isMethod() and not isStatic() is true...
<dmose> yow
<bz> everything is fine
<dmose> it's not that you're too dumb
<bz> But if all of them are non-methods.
<dmose> that's at best marginally readable python
<bz> Then I get an exception.
<bz> dmose: heh
<dmose> which is actually hard to do
<bz> I could break it up into two comprehensions
<dmose> i bet that would make it more comprehensible
Kindly hosted by jX and in no way affiliated with the Mozilla Foundation.