We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

The macurl2path module

(Implementation). This module contains code to map uniform resource locators (URLs) to Macintosh filenames, and back. It should not be used directly; use the mechanisms in urllib instead.

Example: Using the macurl2path module
# File: macurl2path-example-1.py

import macurl2path

file = ":my:little:pony"

print macurl2path.pathname2url(file)
print macurl2path.url2pathname(macurl2path.pathname2url(file))

my/little/pony
:my:little:pony