From ffbdbc48232ff94223172d0e4fd57e2c5dc5230e Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Wed, 21 Jun 2017 22:47:20 -0700 Subject: [PATCH] Add linewrap to editorconfig, doc for custom types --- .editorconfig | 2 ++ doc/types.md | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 doc/types.md diff --git a/.editorconfig b/.editorconfig index a00a45c..4cfaf7d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,7 +8,9 @@ trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false +max_line_length=79 [*.py] indent_style = tab indent_size = 4 +max_line_length=79 diff --git a/doc/types.md b/doc/types.md new file mode 100644 index 0000000..5711e0f --- /dev/null +++ b/doc/types.md @@ -0,0 +1,14 @@ +# Special types used by cppo + +- *hex-ustr* + This is a standard Python3 string (UTF-8) containing two hex digits per byte. + whose length should always be an even number. No prefix or suffix is used, + just the digits. It's just a convenient way to specify an arbitrary stream + of bytes in a human-readable format. This is somewhat inefficient as + implemented because the functions are designed to work in Python2 and + Python3. + +- *bin-ustr* + Like hex-ustr but composed of only the digits 0 and 1. You need eight of + these to make a byte. As with hex-ustr, functions operating on bin-ustr jump + through hoops to be compatible with both Python2 and Python3.