Skip to content

Consider deprecating and removing the "palmos" encoding #106326

Open
@larryhastings

Description

@larryhastings

Palm OS 3.5 was first released in 2000, on the then-new Palm IIIc device. It was last updated in 2001. In the twenty years since then, Palm OS development has reached all the way up to Palm OS "Cobalt" (aka 6.0) in 2004 before it was abandoned. Because, yes, Palm OS is completely defunct and nobody uses it anymore for anything.

Python contains support for Palm OS 3.5 in the form of a bespoke "palmos" encoding, added in 2002:

https://github.com/python/cpython/blob/main/Lib/encodings/palmos.py

This would allow decoding and re-encoding text obtained from one's Palm-based computer, presumably by syncing with it over a serial connection.

I propose we remove the "palmos" encoding. I assert it's very likely that literally nobody is using it--and anybody who is using it is probably using old scripts, and can simply stay on Python 3.11 or previous. Meanwhile, old code that nobody's using does have a cost: it's extra bytes in the distribution, extra time and memory used populating the codec in internal data structures, and extra maintenance.

(Admittedly the "palmos" encoding hasn't required a lot of maintenance--the file has only been checked in six times in its twenty-one years, the last time being eleven years ago when Antoine removed the file's trailing newline.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions