On 4/19/2012 6:29 AM Tino Dai said...
Hi!I have a question about style. In PEP-8, it says don't exceed 79 characters, but can this rule ever be trumped by readability?
It's trumped by something: >>> for ii in range(10): ... D="*/"*ii+"*.py" ... L=glob.glob(D) ... for pypgm in L: ... pgm = open(pypgm,'r').readlines() ... totalLines+=len(pgm) ... LongLines.extend([(pypgm,jj) for jj in pgm if len(jj)>79]) ... >>> >>> print len(LongLines),totalLines 12043 606760 >>> Emile _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
