In message <mailman.182.1278126257.1673.python-l...@python.org>, Rami Chowdhury wrote:
> I'm sorry, perhaps you've misunderstood what I was refuting. You posted: >> >> macro: >> >> #define Descr(v) &v, sizeof v >> >> >> >> As written, this works whatever the type of v: array, struct, >> >> whatever. > > With my code example I found that, as others have pointed out, > unfortunately it doesn't work if v is a pointer to a heap-allocated area. It still correctly passes the address and size of that pointer variable. It that’s not what you intended, you shouldn’t use it. -- http://mail.python.org/mailman/listinfo/python-list