Re: [Tutor] [Re: class/type methods/functions]

2008-11-23 Thread Eike Welk
Hey Spir! Maybe you should read the book "Design Patterns" from Erich Gamma and the rest of "the gang of four". (A.T.Hofkamp, mentioning its terminology, got me thinking.) You ask complicated questions that normal newbies don't ask, so you should maybe read an advanced book. The book's idea is

Re: [Tutor] [Re: class/type methods/functions]

2008-11-01 Thread spir
Thank you for this relevant & precise review, Albert. I will answer specific topic, then give a overall introduction of the problem(s) adressed by this project, that may clarify a bit some topics. A.T.Hofkamp a écrit : > However, by moving the 'type' information to a seperate object, your

Re: [Tutor] [Re: class/type methods/functions]

2008-10-31 Thread A.T.Hofkamp
spir wrote: After reading your mail, I cannot help wondering that something crucial seems to be missing in your class structure. (I get the impression that you are trying to squeeze object information and object meta information together in one class definition.) Yes. This is a consequence of

[Tutor] [Re: class/type methods/functions]

2008-10-30 Thread spir
[forwarded, only A.T.Hofkamp got this answer] A.T.Hofkamp a écrit : spir wrote: Q: Is there a way to write /type/ (class) functions, meaning methods not bound to an instance, in python? As Bob Gailer already said, staticmethod seems to do what you want. Thank you for you answers about static