[Python-Dev] fileno function in file objects - Interfaces
Scarecrow
Ken Manheimer
klm@digicool.com
Tue, 19 Sep 2000 14:25:04 -0400 (EDT)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---1529346232-299838580-969387904=:24497
Content-Type: TEXT/PLAIN; charset=US-ASCII
Incidentally...
On Tue, 19 Sep 2000, Barry A. Warsaw wrote:
> >>>>> "GvR" == Guido van Rossum <guido@beopen.com> writes:
>
> GvR> Note that this (and other, similar issues) is all because
> GvR> Python doesn't have a standard class hierarchy.
>
> Or a formal interface mechanism.
Incidentally, jim/Zope is going forward with something like the interfaces
strawman - the "scarecrow" - that jim proposed at IPC?7?. I don't know if
a PEP would have made any sense for 2.x, so maybe it's just as well we
haven't had time. In the meanwhile, DC will get a chance to get
experience with and refine it...
Anyway, for anyone that might be interested, i'm attaching a copy of
python/lib/Interfaces/README.txt from a recent Zope2 checkout. I was
pretty enthusiastic about it when jim originally presented the scarecrow,
and on skimming it now it looks very cool. (I'm not getting it all on my
quick peruse, and i suspect there's some contortions that wouldn't be
necessary if it were happening more closely coupled with python
development - but what jim sketches out is surprising sleek,
regardless...)
ken
klm@digicool.com
---1529346232-299838580-969387904=:24497
Content-Type: TEXT/plain; name="README.txt"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.21.0009191425040.24497@korak.digicool.com>
Content-Description: Interfaces README.txt - the Scarecrow
Content-Disposition: attachment; filename="README.txt"
UHl0aG9uIEludGVyZmFjZXMgLSBUaGUgU2NhcmVjcm93IEltcGxlbWVudGF0
aW9uDQoNClRoaXMgZG9jdW1lbnQgZGVzY3JpYmVzIG15IGltcGxlbWVudGF0
aW9uIG9mIHRoZSBQeXRob24gaW50ZXJmYWNlcw0Kc2NhcmVjcm93IHByb3Bv
c2FsLiAgDQoNClN0YXR1cw0KDQogIFRoaXMgaXMgYSBmaXJzdC1jdXQgaW1w
bGVtZW50YXRpb24gb2YgdG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