A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-February/012938.html below:

[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib sre_constants.py (etc)

[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib sre_constants.py (etc) [Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib sre_constants.py (etc)Guido van Rossum guido@digicool.com
Thu, 15 Feb 2001 18:48:01 -0500
> If __all__ is needed (still not sure what it's for :-), wouldn't the
> following one-liner be clearer:
> 
> __all__ = [name for name in locals.keys() if not name.startswith('_')]

But that shouldn't be used in /F's modules, because he wants them to
be 1.5 compatible.  Anyway, filter(lambda s: s[0]!='_', dir()) is
shorter, and you prove that it isn't faster. :-)

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4