changeset 30139:27e00e6352ce

dirs: add comment about _PyBytes_Resize So readers have a canonical function to compare this code to.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 13 Oct 2016 10:59:29 +0200
parents 733fb9f7bc92
children 747e546c561f
files mercurial/dirs.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirs.c	Tue Oct 11 01:29:08 2016 +0200
+++ b/mercurial/dirs.c	Thu Oct 13 10:59:29 2016 +0200
@@ -59,7 +59,8 @@
 	* "protocol" such as mutating immutable objects. But since we only
 	* mutate objects created in this function or in other well-defined
 	* locations, the references are known so these violations should go
-	* unnoticed. */
+	* unnoticed. The code for adjusting the length of a PyBytesObject is
+	* essentially a minimal version of _PyBytes_Resize. */
 	while ((pos = _finddir(cpath, pos - 1)) != -1) {
 		PyObject *val;