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/2000-July/006572.html below:

[Python-Dev] PyErr_SafeFormat

[Python-Dev] PyErr_SafeFormat [Python-Dev] PyErr_SafeFormatFredrik Lundh Fredrik Lundh" <effbot@telia.com
Fri, 14 Jul 2000 19:54:43 +0200
guido wrote:

> Need some more analysis of what format codes are actually used,
> and support for %.200s which is currently used often.

possibly stupid idea: would it make sense to add custom
formatting codes, like:

    %S =3D> char*, string, clip if excessively long
    %T =3D> PyObject*, show name of type, clip if excessively long

where "clip" means:

    truncate at 80 characters, and add "..." to indicate
    that the string was truncated.

this covers most of the places where %.\d+s are used (in
the Python core, at least...)

</F>




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