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
 

[comment on/vote for this article]

A Django site. this page was rendered by a django application in 0.01s 2008-08-28 02:17:49.079648. hosted by webfaction.