Is it possible to call a class but without a new instance created?

Chris Angelico rosuav at gmail.com
Mon Jun 18 09:02:12 EDT 2018


On Mon, Jun 18, 2018 at 5:17 PM, Vincent Vande Vyvre
<vincent.vande.vyvre at telenet.be> wrote:
> What you try to do is called a /singleton./

In this case, not necessarily a singleton, but returning a cached
object that's the same for any given argument. Basically, interned
objects. But yes, the same idea.

ChrisA



More information about the Python-list mailing list