buffer_info() for arrays but not structs?

Thomas Heller thomas.heller at ion-tof.com
Wed Mar 1 14:01:21 EST 2000


> On Tue, 29 Feb 2000, Thomas Heller wrote:
> 
> > > Is there a reason an array has a buffer_info() method but a struct doesn't?
> > > This would be a nice addition to the struct object. Does anyone know if
> > > there are plans to add this?
> > 
> > Probably because a struct is not an object. At least in 1.5.
> 
> In Python, everything is an object. More probably the answer is "no one
> cared enough to implement it: go ahead and submit a patch
> (patches at python.org)"
This *may* be a more correct answer, but I doubt it will help the original
poster.

Thomas Heller






More information about the Python-list mailing list