On Wednesday 24 April 2002 00:04, Patrick K. O'Brien wrote: > [Aahz] > > > I noted in the FAQ entry that importing a module is also the Pythonic > > answer to the Singleton design pattern, so people searching for > > Singleton should find that. > > Send them to Alex's article: http://www.aleax.it/5ep.html Using a module is a better answer over 90% of the time. Most people think of Singleton "by reflex" when they believe "there's gonna be only one of these", rather than when they really need to solve the forces covered in the Gof4's Singleton DP, first and foremost subclassability. Alex
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