This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author imz
Recipients alexey@altlinux.org, imz, steven.daprano
Date 2018-03-31.10:57:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522493830.38.0.467229070634.issue33186@psf.upfronthosting.co.za>
In-reply-to
Content
Actually, Alexey shared this problem with me orally first, and then asked to have a look at his report, and I felt that just describing the technical details about what is going on is not enough, and suggested to include a brief sentence which would state what kind of assumptions seemed to be broken to Alexey. And it was:

> a list contains elements that have never been appended.

And this statement actually appeared quite helpful for me: in a few hours after this statement was made, I got an idea that this statement might actually be not true in this case. And this quickly lead me to the demonstration what really happens here, and that it was correct Python behavior.

Without this brief formal statement of the broken assumptions, I had simply had no ideas (because I supposed that something was going wrong according to Alexey's words, and didn't question whether it is really wrong or we might expect these results under some conditions as correct results).

(Actually, I'm a fan of type-checking, and what is more, of languages with expressive types like Agda or Idris where the programmer is to make provable statements of the expected properties written down as types; sometimes, they can be derived automatically, but nevertheless my point is the attitude to programming, even without formal tools: think how the expected properties would be proved, how they would be decomposed into simpler statements during the proof. Well, this is offtopic here, so, Alexey, let's not continue this discussion here.)
History
Date User Action Args
2018-03-31 10:57:10imzsetrecipients: + imz, steven.daprano, alexey@altlinux.org
2018-03-31 10:57:10imzsetmessageid: <1522493830.38.0.467229070634.issue33186@psf.upfronthosting.co.za>
2018-03-31 10:57:10imzlinkissue33186 messages
2018-03-31 10:57:10imzcreate