| Python type of object o written |
| str/bytes | unicode | Any other type |
|---|
| {@link PyFile} | as bytes directly | respect {@link PyFile#encoding} | call str(o) first |
|---|
| {@link PyFileWriter} | each byte value as a char | write as Java chars | call o.toString() first |
|---|
Other {@link PyObject} f | invoke f.write(str(o)) | invoke f.write(o) | invoke f.write(str(o)) |
|---|