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/2006-July/067502.html below:

[Python-Dev] User's complaints

[Python-Dev] User's complaints [Python-Dev] User's complaintsArmin Rigo arigo at tunes.org
Mon Jul 17 20:25:21 CEST 2006
Hi Bob,

On Thu, Jul 13, 2006 at 12:58:08AM -0700, Bob Ippolito wrote:
> > @main
> > def whatever():
> >     ...
> 
> It would probably need to be called something else, because main is  
> often the name of the main function...

Ah, but there is theoretically no name clash here :-)

    @main             # <- from the built-ins
    def main():       # <- and only then set the global
        ...


Just-making-a-stupid-point-and-not-endorsing-the-feature-ly yours,

Armin
More information about the Python-Dev mailing list

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