Python complaints

Quinn Dunkan quinn at cruzeiro.ugcs.caltech.edu
Sat Dec 18 13:29:24 EST 1999


On Fri, 17 Dec 1999 00:23:23 -0500, Kevin <keving at primenet.nospam.com> wrote:
>On Thu, 16 Dec 1999 11:27:21 -0500 (EST), "Fred L. Drake, Jr."
><fdrake at acm.org> wrote:
>
>>> If Python is a typed language, shouldn't we be able to determine 
>> > what types are allowed as arguments and returned from functions 
>> > without experimentation (and reverse engineering from the source code)?
>>
>>  As someone else pointed out using the buffer object as an example,
>>this doesn't always make sense. 
>
>Umm... could someone point me toward some documentation on this
>elusive object? It sounds useful, if I can ever find it.

I think he's referring to StringIO/cStringIO, which simlpy provides
read() write() etc. so it looks like a file object but really stores
it in a string.  It's in the library ref.

This kind of polymorphism is what python (and dynamic OO in
general) is good at.



More information about the Python-list mailing list