<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#330033" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 10/30/2018 1:12 AM, Serhiy Storchaka
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:ead58bb6-0360-186f-56e4-f165a535d186@gmail.com">29.10.18
23:17, MRAB пише:
<br>
<blockquote type="cite">1. If you're pickling, then saying
"pickle" is more helpful.
<br>
<br>
2. In English the usual long form is "cannot". Error messages
tend to avoid abbreviations, and also tend to have lowercase
after the colon, e.g.:
<br>
<br>
"ZeroDivisionError: division by zero"
<br>
<br>
"ValueError: invalid literal for int() with base 10: 'foo'"
<br>
<br>
3. If it's failing on an object (singular), then it's clearer to
say "object".
<br>
<br>
4. Articles tend to be omitted.
<br>
<br>
5. Error messages tend to have quotes around the type name.
<br>
<br>
Therefore, my preference is for:
<br>
<br>
"cannot pickle 'XXX' object"
<br>
</blockquote>
<br>
Thank you Matthew, I'll use your variant.
<br>
<br>
Will something change the fact that in all these cases the
pickling will be failed not just for specific object, but for all
instances of the specified type?<br>
</blockquote>
That's why I suggested "object of type 'XXX'", to leave the type in
a more prominent position, as it is generally more important to the
issue than the object.<br>
</body>
</html>