Python's biggest compromises

Aaron Leung akhleung at earthlink.net
Fri Aug 1 08:44:40 CEST 2003


Hi Gustavo,

I've seen the Borg pattern; it's nice.  I suppose I should have said 
that using dictionaries everywhere is a very flexible and convenient 
feature, but the compromise is in efficiency.  Of course, I realize 
that efficiency isn't always important.

Best regards,
Aaron


On Thursday, July 31, 2003, at 03:33  PM, sismex01 at hebmex.com wrote:
> Actually, this which you call a compromise, is one of Python's
> biggest strengths: it allows you, as a programmer, to perform
> many things which in other languages would be simply impossible,
> or at least would force you to jump through plenty loops and
> hoops.
>
> Take a look at Alex Martelli's Borg pattern, it shows what can
> be done by having open access to class *and* object namespaces,
> and being able to manipulate them.  In Python it's easy and
> straightforward (eek), but in other languages, well... you have
> whole books dedicated to that.






More information about the Python-list mailing list