[Python-Dev] PEP 318 - posting draft (original) (raw)
Phillip J. Eby pje at telecommunity.com
Wed Mar 24 15:49:48 EST 2004
- Previous message: [Python-Dev] PEP 318 - posting draft
- Next message: [Python-Dev] PEP 318 - posting draft
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 09:41 PM 3/24/04 +0100, Alex Martelli wrote:
..? (As to why one would want such semantics, I dunno -- Singleton being most definitely not my favourite DP, anyway...:-)
I definitely don't like singletons either, but there are some kinds of functionality that are already singletons, like it or not, and when putting a wrapper around them, one is forced to have another singleton. For example, peak.events provides an event-driven wrapper around 'signal' functionality, and it's implemented by a singleton because -- like it or not -- Python's signal handling interface supports only one handler per signal.
- Previous message: [Python-Dev] PEP 318 - posting draft
- Next message: [Python-Dev] PEP 318 - posting draft
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]