Empty list in R is converted to NoneType in Python

Description

We discover this problem while working on SYNPY-689.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 > w1 = Wiki(title = "associationTest_PDDB", owner = "syn11935403", markdown = "mdFile", attachments = list()) > w <- synStore(w1) Hide Traceback Rerun with Debug Error in value[[3L]](cond) : 'NoneType' object is not iterable 13. stop(errorToReport) at zzz.R#88 12. value[[3L]](cond) 11. tryCatchOne(expr, names, parentenv, handlers[[1L]]) 10. tryCatchList(expr, classes, parentenv, handlers) 9. tryCatch({ result <- do.call(callable, args) sink() close(conn) ... at zzz.R#72 8. .cleanUpStackTrace(pyCall, list("gateway.invoke", args = functionAndArgs, kwargs = argsAndKwArgs$kwargs, simplify = F)) at zzz.R#101 7. .synStore(<environment>) 6. do.call(sprintf(".%s", synName), args = list(...)) at zzz.R#107 5. synStore(...) 4. eval(mc, env) 3. eval(mc, env) 2. standardGeneric("synStore") 1. synStore(w1)

Environment

None

Status

Assignee

Unassigned

Reporter

Kenneth Daily

Validator

Kenneth Daily

Release Version History

None

Fix versions

Priority

Major
Configure