A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-October/155604.html below:

[Python-Dev] Standardize error message for non-pickleable types

[Python-Dev] Standardize error message for non-pickleable typesGlenn Linderman v+python at g.nevcal.com
Mon Oct 29 16:05:58 EDT 2018
On 10/29/2018 12:51 PM, Victor Stinner wrote:
> Le lun. 29 oct. 2018 à 20:42, Serhiy Storchaka <storchaka at gmail.com> a écrit :
>> 1. "pickle" or "serialize"?
> serialize
>
>> 2. "can't", "Cannot", "can not" or "cannot"?
> cannot
>
>> 3. "object" or "objects"?
> object
>
>> 4. Use the "a" article or not?
> no: "cannot serialize xxx object" (but i'm not a native english
> speaker, so don't trust me :-))

Cannot serialize an object of type 'XXX'

>
>> 5. Use quotes around type name or not?
> Use repr() in Python, but use '%s' is C since it would be too complex
> to write code to properly implement repr() (decode tp_name from UTF-8,
> handle error, call repr, handle error, etc.).
>
> To use repr() on tp_name, I would prefer to have a new formatter, see
> the thread of last month.
> https://mail.python.org/pipermail/python-dev/2018-September/155150.html
>
> Victor
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/v%2Bpython%40g.nevcal.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20181029/0383adfe/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4