]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix the .find() method for memory maps.
authorGreg Stein <gstein@lyra.org>
Mon, 14 May 2001 09:32:26 +0000 (09:32 +0000)
committerGreg Stein <gstein@lyra.org>
Mon, 14 May 2001 09:32:26 +0000 (09:32 +0000)
commit834f4dd7c921593674409b9088458f378ac00ca4
tree92daf197ff690ba4079be03f425fa195b00c0911
parenta814db579db9cfcaa3cf2ca7bae539cf2c80a9f0
Fix the .find() method for memory maps.

1) it didn't obey the "start" parameter (and when it does, we must validate
   the value)
2) the return value needs to be an absolute index, rather than relative to
   some arbitrary point in the file

(checking CVS, it appears this method never worked; these changes bring it
 into line with typical .find() behavior)
Modules/mmapmodule.c