Skip to content

Commit

Permalink
lkpp8
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Aug 15, 2024
1 parent db7c40e commit cb45922
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions homeworks/8-bytes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Теория

База:
- `bytes-like`: https://docs.python.org/3/glossary.html#term-bytes-like-object
- `bytes`: https://docs.python.org/3/library/stdtypes.html#bytes
- Making the buffer protocol accessible in Python: https://peps.python.org/pep-0688

Инструменты:
- mypy: bytes и bytearray c `disable_bytearray_promotion` и `disable_memoryview_promotion` https://github.com/python/mypy/commit/2d70ac0b33b448d5ef51c0856571068dd0754af6

Жесть:
- Мутабельность `bytes` https://docs.python.org/3.13/c-api/bytes.html#c._PyBytes_Resize
- `PyBytes_Writer` API: https://github.com/capi-workgroup/decisions/issues/39
Binary file added lectures/8-bytes.key
Binary file not shown.

0 comments on commit cb45922

Please sign in to comment.