"def" vs "sub" (was RE: More random python observations from a perl programmer)

Andrew Csillag andrew at starmedia.net
Mon Aug 23 20:47:54 EDT 1999


"Juergen A. Erhard" wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> >>>>> "Tim" == Tim Peters <tim_one at email.msn.com> writes:
> 
> [SNIPPED lots of interesting stuff]
> 
>     Tim> You have to grab a copy of PyLint for that (but then you are
>     Tim> a fan of separate tools, right <wink>?).
> 
> And could you tell us where this mythical PyLint is?  More advtising
> couldn't hurt (I have browsed python.org a coupl times, but have seen
> no mention... though I haven't looked for PyLint (didn't know it
> existed))
> 
> [SNIPPED remainder of mail]
> 
> Bye, J
> 
> PS: Or is this really "mythical" in that it only exists in Tim's
> imagination?  ;-)

Nope, it's a creation of the venerable Andrew Kuchling as part of the
kwParsing package (a parser generator package), which also includes the
gadfly relational database - way cool.

http://www.chordate.com/kwParsing/index.html
-- 
import string,sys;t=string;f=t.index;j=t.join;print(lambda
s:j(map(lambda
x,s=s:x[:f(x,':')+2]+j(map(lambda y:'%02X'%ord(y),x[f(x,':')+2:]),'
'),map
(lambda i,s=s:("%04X:
"%i)+s[i:i+16],range(0,len(s),16))),'\n'))(open(sys.
argv[1]).read())




More information about the Python-list mailing list