Underscode

Check-in [326a7c1ad3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:326a7c1ad3daf225b4af9e2cacc716e9dccf50af
Date: 2007-11-28 21:05:23
User: ivan@selidor.net
Comment:Updated the Underscode core to encode and decode using the new encoding.
Tags And Properties
Context
2007-11-28
22:25
[f267aa66d2] Merged in changes from the ``self_quotes_space`` branch.

Now ``__`` escapes the space character instead of the underscore, the main reason of the change being that spaces are expected to happen much more frequently than underscores in strings which *need encoding*, because underscores in the original string are themselves a signal that it has already been converted to some indentifier-compatible form and it doesn't need further encoding.

Besides that, as underscores are frequently used to represent spaces (e.g. ``get_foo`` for "get foo"), it makes more sense to keep them in that role (i.e. ``get__foo_`` instead of ``get_x20foo_``).

This change justifies the bumping of version from 0.1.1.dev to 0.2.0.dev. (user: ivan@selidor.net, tags: trunk)

21:05
[326a7c1ad3] Updated the Underscode core to encode and decode using the new encoding. (user: ivan@selidor.net, tags: trunk)
21:01
[7986bdcc47] Forgot to update the test for valid strings. (user: ivan@selidor.net, tags: trunk)
Changes
Show Unified Diffs Show Side-by-Side Diffs Patch

Changes to underscode/core.py.