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-March/063145.html below:

[Python-Dev] Class decorators

[Python-Dev] Class decorators [Python-Dev] Class decoratorsGreg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 30 12:38:30 CEST 2006
Jack Diederich wrote:

> Classes have a unique property in that they are the easiest way to make
> little namespaces in python.

For a while now, I've been wondering whether it would
be worth having a construct purely for creating little
namespaces, instead of abusing a class for this.

I've been thinking about an 'instance' statement that
creates an instance of a class:

   instance my_thing(MyClass):

     # attribute assignments go here

--
Greg
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