[issue15913] PyBuffer_SizeFromFormat is missing

2012-09-10 Thread Ellery Newcomer
New submission from Ellery Newcomer: this function is listed in the buffer docs and in abstract.h, but there is no implementation anywhere. -- components: None messages: 170239 nosy: ellery.newcomer priority: normal severity: normal status: open title: PyBuffer_SizeFromFormat is missing

[issue15913] PyBuffer_SizeFromFormat is missing

2012-09-11 Thread Stefan Krah
Stefan Krah added the comment: Even though it's documented, the function is probably a new feature and should go into 3.4. Meanwhile, you can call struct.calcsize(format). Any non-trivial implementation of PyBuffer_SizeFromFormat() would likely do the same. -- components: +Interpreter C