Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2c64a8f

Browse files
committed
Sequence methods, add the weird sq_ass_item code into the doc.
1 parent 018f351 commit 2c64a8f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎doc/sphinx/source/new_types.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,15 @@ In ``src/cpy/Object/cSeqObject.c``:
948948
stdout, "%s()#%d: self=%p index=%zd value=%p\n",
949949
__FUNCTION__, __LINE__, (void *) self, index, (void *) value
950950
);
951+
/* This is very weird. */
952+
if (index < 0) {
953+
fprintf(
954+
stdout, "%s()#%d: Fixing index index=%zd to %zd\n", __FUNCTION__, __LINE__,
955+
index, index - SequenceLongObject_sq_length(self)
956+
);
957+
index -= SequenceLongObject_sq_length(self);
958+
}
959+
/* Isn't it? */
951960
Py_ssize_t my_index = index;
952961
if (my_index < 0) {
953962
my_index += SequenceLongObject_sq_length(self);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /