[Python-ideas] a simple namespace type

Eric Snow ericsnowcurrently at gmail.com
Wed May 30 06:52:21 CEST 2012


On Tue, May 29, 2012 at 11:34 AM, Jan Kaliszewski <zuo at chopin.edu.pl> wrote:
> Using classes as 'attribute containers' is suboptimal (which means that
> in performance-critical parts of code you would have to implement a
> namespace-like type anyway -- if you wanted to have attr-based syntax,
> of course).

What are the performance problems of using a type object in this way?

>
> There should be one obvious way to do it. Now there is no one.

Yeah, I feel the same way.

-eric



More information about the Python-ideas mailing list