Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions rt4core/src/main/java/uk/co/farowl/vsj4/core/Abstract.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ public static void setItem(Object o, Object key, Object value)
}

/**
* {@code o[i1:12] = value} with Python semantics, where {@code o} may
* be a mapping or a sequence.
* {@code o[i1:12] = value} with Python semantics, where {@code o}
* may be a mapping or a sequence.
*
* @param o object to operate on
* @param i1 index of first item in slice
Expand Down Expand Up @@ -187,8 +187,8 @@ public static void delItem(Object o, Object key) throws Throwable {
}

/**
* {@code del o[i1:12]} with Python semantics, where {@code o} may be
* a mapping or a sequence.
* {@code del o[i1:12]} with Python semantics, where {@code o} may
* be a mapping or a sequence.
*
* @param o object to operate on
* @param i1 index of first item in slice
Expand All @@ -198,7 +198,8 @@ public static void delItem(Object o, Object key) throws Throwable {
* @throws Throwable from invoked method implementations
*/
// Compare CPython PyObject_DelSlice in abstract.c
public static void delSlice(Object o, int i1, int i2) throws Throwable {
public static void delSlice(Object o, int i1, int i2)
throws Throwable {
Object key = new PySlice(i1, i2);
// Decisions are based on types of o and key
try {
Expand Down Expand Up @@ -1357,9 +1358,9 @@ static void badInternalCall() {
* should be impossible in a correct interpreter. This is a sort of
* {@link PyBaseException TypeError} against the {@code self}
* argument, but occurring where no programming error should be able
* to induce it (e.g. coercion fails after we have passed the check
* that descriptors make on their {@code obj}, or when invoking a
* special method found via an {@link Representation} object.
* to induce it. E.g. coercion failed after we have passed the check
* that descriptors make on their {@code obj}, or we invoked a
* special method found via a {@link Representation} object.
*
* @param d expected kind of argument
* @param o actual argument (not its type)
Expand Down
Loading