Skip to content

Commit

Permalink
lkpp11
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Nov 25, 2024
1 parent 758a746 commit 09d0f96
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions homeworks/11-bytearray.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Теория

База:
- `bytearray`: https://docs.python.org/3/library/stdtypes.html#bytearray
- Методы `MutableSequence`: https://docs.python.org/3/library/collections.abc.html#collections-abstract-base-classes
- `MutableSequence`: https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableSequence

Жесть:
- Выбор стратегии для ресайза: https://github.com/python/cpython/blob/6309e9e07a855e08c223a0e295710c8bd66e793d/Objects/bytearrayobject.c#L195-L223
- Изменение `->ob_start`: https://github.com/python/cpython/blob/6309e9e07a855e08c223a0e295710c8bd66e793d/Objects/bytearrayobject.c#L457-L476

Мой PR с фиксом бага в `bytearray_getbuffer`: https://github.com/python/cpython/pull/126981
Binary file added lectures/11-bytearray.key
Binary file not shown.

0 comments on commit 09d0f96

Please sign in to comment.