[Python-ideas] proto-PEP: Fixing Non-constant Default Arguments
Eduardo "EdCrypt" O. Padoan
eopadoan at altavix.com
Tue Jan 30 13:43:09 CET 2007
On 1/30/07, Eduardo EdCrypt O. Padoan <eopadoan at altavix.com> wrote:
> > If I have time and figure out the right regexes I'll try and come up with
> > some more numbers on the entire stdlib, and the ammount of uses of =None.
> >
>
> Some uses of the spam=[] and ham=None in Python projects, including
> Python itself:
>
> http://www.google.com/codesearch?q=def.*%5C(.*%3D%5C%5B%5C%5D.*%5C)%3A%20lang%3APython&hl=en&btnG=Search+Code
> http://www.google.com/codesearch?hl=en&lr=&q=def.*%5C%28.*%3DNone.*%5C%29%3A+lang%3APython&btnG=Search
>
> In this second search, I need a way to search that, in the body of the
> function, we have something like "if foo is not None: foo = []" (and
> foo = {} too)
>
> --
> EduardoOPadoan (eopadoan->altavix::com)
> Bookmarks: http://del.icio.us/edcrypt
> Blog: http://edcrypt.blogspot.com
> Jabber: edcrypt at jabber dot org
> ICQ: 161480283
> GTalk: eduardo dot padoan at gmail dot com
> MSN: eopadoan at altavix dot com
>
--
EduardoOPadoan (eopadoan->altavix::com)
Bookmarks: http://del.icio.us/edcrypt
Blog: http://edcrypt.blogspot.com
Jabber: edcrypt at jabber dot org
ICQ: 161480283
GTalk: eduardo dot padoan at gmail dot com
MSN: eopadoan at altavix dot com
More information about the Python-ideas
mailing list