Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Small mistake in the documentation ? #2956
I have been reading Cython's documentation lately, and I fell on maybe a little mistake on "Working with Python arrays". In the API reference here's what we can read:
So that basically it says it gives amortized linear-time appends, shouldn't it be amortized constant time appends ? Just like with C++ vectors ?
Both try to express the same thing, just seen from a different angle. Each append runs in amortized constant time, yes. But the "amortized" suggests (or requires) a series of appends, which then all run in a time that is amortized linear with the number of appends.
I wouldn't mind changing it to constant, though. PR welcome.