How does Mr. Martelli's Borg recipe work ?

Steven Taschuk staschuk at telusplanet.net
Thu Jul 24 00:40:00 CEST 2003


Quoth Bengt Richter:
  [borg vs singleton]
> How about just
> 
>     import zerolengthfile as borginstancename
> 
> and using it? E.g., [...]

That would be fine in many cases, I'm sure.

Modules don't do properties (or other descriptor magic), though.

-- 
Steven Taschuk                                7\ 7'Z {&~         .
staschuk at telusplanet.net                        Y r          --/hG-
                                            (__/ )_             1^1`





More information about the Python-list mailing list