1. Bruce Eckel
  2. Python 3 Patterns & Idioms
  3. Issues
Issue #3 new

singleton pattern doesnt work. SingletonPattern.py

Anonymous created an issue

The Singleton pattern doesn't work with new style classes (which includes Python 3.0) I've tested using version 2.5.4 (used object in my class definition) and in version 3.0 and saw the same results. Finally the backticks are deprecated in 3.0 and should be replaced with repr().

Thanks for this book...I will purchase once available. Sorely needed... I'll try to contribute by testing, and reporting any issues found.

Comments (2)

  1. Log in to comment