Simple questions on use of objects (probably faq)

bruno at modulix onurb at xiludom.gro
Thu Mar 9 07:44:25 EST 2006


Steven D'Aprano wrote:
(snip)

> I say "think you want" because I don't know what problem you are trying to
> solve with this messy, self-referential, piece of code.

This messy piece of code is mine, thanks !-)

And it's not "self-referential" - it introduces a references cycle
(class object -> instances -> class object), which may or may not be a
problem.

> If you could
> explain what your goal is, 

He did (more or less), please read the original post.

> there is probably a better way of reaching it.

Probably, yes.

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list