8000 Add some comments. · python/cpython@e1ba74c · GitHub
[go: up one dir, main page]

Skip to content

Commit e1ba74c

Browse files
Add some comments.
1 parent b85ea26 commit e1ba74c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Modules/_xxinterpchannelsmodule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,9 +1091,13 @@ static int
10911091
_channelends_is_open(_channelends *ends)
10921092
{
10931093
if (ends->numsendopen != 0 || ends->numrecvopen != 0) {
1094+
// At least one interpreter is still associated with the channel
1095+
// (and hasn't been released).
10941096
return 1;
10951097
}
1098+
// XXX This is wrong if an end can ever be removed.
10961099
if (ends->send == NULL && ends->recv == NULL) {
1100+
// The channel has never had any interpreters associated with it.
10971101
return 1;
10981102
}
10991103
return 0;

0 commit comments

Comments
 (0)
0