Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <ut275n$2e6lj$1@dont-email.me>
Deutsch   English   Français   Italiano  
<ut275n$2e6lj$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tobiah <toby@tobiah.org>
Newsgroups: comp.lang.python
Subject: Re: Configuring an object via a dictionary
Date: Fri, 15 Mar 2024 12:22:30 -0700
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <ut275n$2e6lj$1@dont-email.me>
References: <87y1ajdeqs.fsf@zedat.fu-berlin.de> <ut25q8$2dtqs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 15 Mar 2024 19:22:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a347ba70ab9fe10d00899cbebfb6fec1";
	logging-data="2562739"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+FVp0ioqwodG2zZc41ICww"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kWWCFL8giJ0a27WmR7o1Y0aSZI4=
In-Reply-To: <ut25q8$2dtqs$1@dont-email.me>
Content-Language: en-US
Bytes: 1476

I should mention that I wanted to answer your question,
but I wouldn't actually do this.  I'd rather opt for
your self.config = config solution.  The config options
should have their own namespace.

I don't mind at all referencing foo.config['option'],
or you could make foo.config an object by itself so
you can do foo.config.option.  You'd fill it's attributes
in the same way I suggested for your main object.