List Info

Thread: Re: imported module/global




Re: imported module/global
country flaguser name
United States
2007-04-16 10:45:35
Andreas Kostyrka wrote:
> OTOH, module globals are seldom used, and usually
frowned on. E.g. the
> python2.5 standard lib (>200K lines, 584 py files),
uses exactly 104
> distinct global statements.
>
> andreasandi-lap:/usr/lib/python2.5> grep -r "^[
t]*global " . | sed 's/[ t][ t]*/ /' | sort -u | wc
-l
>   
I don't understand this grep exactly, but it looks to me
like it only 
counts globals after tabs...
what about globals after spaces?
_______________________________________________
Tutor maillist  -  Tutorpython.org
http://
mail.python.org/mailman/listinfo/tutor

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )