본문으로 건너뛰기

canonical bytes 만들기

문법

python
px.dumps(document) -> bytes

매개변수

  • documentpx.Flow, 읽은 Flow direct document 또는 불변 px.ReportDocument

반환

canonical encoding을 적용한 bytes를 반환합니다.

규칙

  • path, file object와 stream은 받지 않습니다.
  • 파일 쓰기, atomic replace와 revision commit은 수행하지 않습니다.
  • 저장된 Flow나 Report revision이 필요하면 저장 API를 사용합니다.
  • Report handle은 먼저 report.document()로 읽습니다. px.dumps(report.document())는 그 handle이 고정한 저장 revision을 내보내며 미저장 편집이 있으면 읽기를 거부합니다.