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/2004-February/042630.html below:

Plea for function/method syntax sugar (PEP 318, with a different syntax)

[Python-Dev] Re: Plea for function/method syntax sugar (PEP 318, with a different syntax)Michael Hudson mwh at python.net
Thu Feb 19 12:06:29 EST 2004
Bob Ippolito <bob at redivi.com> writes:

> Also note that the patch also adds the same sugar to classes, so you
> could use it in lieu of metaclasses for some cases (like transforming
> some members that follow a naming convention into properties):
>
>  >>> class Foo(object) [type]:
> ...   pass
> ...
>  >>> Foo
> <type 'type'>

FWIW, I'm rather less convinced this is useful.

Cheers,
mwh

-- 
  I sense much distrust in you.  Distrust leads to cynicism, cynicism
  leads to bitterness, bitterness leads to the Awareness Of True
  Reality which is referred to by those-who-lack-enlightenment as
  "paranoia".  I approve.    -- David P. Murphy, alt.sysadmin.recovery

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