Singleton: Difference between revisions
Content added Content deleted
m (→{{header|C}}) |
(→{{header|Python}}: Add link to discussion of the Borg pattern.) |
||
Line 468: | Line 468: | ||
=={{header|Python}}== |
=={{header|Python}}== |
||
In Python we use the Borg pattern to share state between instances rather than concentrate on identity. |
In Python we use the [http://code.activestate.com/recipes/66531/ Borg pattern] to share state between instances rather than concentrate on identity. |
||
Every instance of the Borg class will share the same state: |
Every instance of the Borg class will share the same state: |