A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-April/099625.html below:

[Python-Dev] PyTuple_Parse*() and discontigious buffer

[Python-Dev] PyTuple_Parse*() and discontigious bufferVictor Stinner victor.stinner at haypocalc.com
Thu Apr 22 13:39:38 CEST 2010
Hi,

I opened issue #8215 about PyTuple_Parse*() outdated documentation. When I 
read the code, I found two functions: getbuffer() and convertbuffer(). 
getbuffer() checks that the buffer is contigious, whereas convertbuffer() 
doesn't. We can group formats by contigious check:

 - contigious buffer: s, y*, z*, w*
 - discontigious buffer: s#, y, z, t, w, w#

I tried to test formats accepting discontigious buffer but I didn't found any 
function or library to test this.

I'm not sure that functions using s#, y, z, t, w, w# format do really support 
discontigious buffer and it's just a bug in getargs.c.

Do someone have information about that? Should it be fixed (only accept 
contigious buffer)?

-- 
Victor Stinner
http://www.haypocalc.com/
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4