Skip to content

[mypyc] Document librt.vecs#21437

Merged
JukkaL merged 13 commits intomasterfrom
librt-vecs-doc
May 7, 2026
Merged

[mypyc] Document librt.vecs#21437
JukkaL merged 13 commits intomasterfrom
librt-vecs-doc

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented May 7, 2026

No description provided.

Comment thread mypyc/doc/librt_vecs.rst
are immutable, some race conditions that lists can be susceptible to are not possible
with vecs.

Implementation details
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe mention some of the potential surprises related to sharing the same buffer among multiple vecs?
like an example where after creating an alias of a vec object, modifying either the original or the alias initially affects both, but that's not guaranteed to continue because one of the vecs might reallocate its buffer.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a discussion of this with some examples.

Comment thread mypyc/doc/librt_vecs.rst
Co-authored-by: Piotr Sawicki <sawickipiotr@outlook.com>
@JukkaL JukkaL merged commit 4e7ae36 into master May 7, 2026
2 checks passed
@JukkaL JukkaL deleted the librt-vecs-doc branch May 7, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants