[Tutor] singleton pattern
D-Man
dsh8290@rit.edu
Wed, 16 May 2001 17:46:38 -0400
On Wed, May 16, 2001 at 12:17:44PM -0400, Benoit Dupire wrote:
| D-Man wrote:
| > The thing to remember about Python is that unlike Java you are not
| > forced to put everything inside a class. Somethings don't really
| > belong inside a class. Static methods are one of those things. They
| > belong in a module instead. There is no way to have static methods in
| > a class in python, but you have modules instead.
|
| yep.. i think it's hard for me to get used to the idea, which means (IMHO)
| combining 2 paradigms..
| I think we already discussed that, not so long ago, in this mailing-list uh
| ? :o) !!
| One day... i'll get used to this idea ...
Yes, we discussed whether putting everything in a class was more (or
less) OO than allowing somethings to exist at module level. :-).
| Thank your for all the replies....
You're welcome.
-D