A dictionary that uses URIs as keys. It attempts to observe some degree of
URI equivalence as defined in RFC 3986 section 6. For example, if URIs
A and B are equivalent, a dictionary operation involving key B will return
the same result as one involving key A, and vice-versa.
This is useful in situations where retrieval of a new representation of a
resource is undesirable for equivalent URIs, such as "file:///x" and
"file://localhost/x" (see RFC 1738), or "http://spam/~x/",
"http://spam/%7Ex/" and "http://spam/%7ex" (see RFC 3986).
Normalization performed includes case normalization on the scheme and
percent-encoded octets, percent-encoding normalization (decoding of
octets corresponding to unreserved characters), and the reduction of
'file://localhost/' to 'file:///', in accordance with both RFC 1738 and
RFC 3986 (although RFC 3986 encourages using 'localhost' and doing
this for all schemes, not just file).
An instance of this class is used by Ft.Xml.Xslt.XsltContext for caching
documents, so that the XSLT function document() will return identical
nodes, without refetching/reparsing, for equivalent URIs.
Methods
Methods inherited from class __builtin__.dict
__cmp__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __le__, __len__, __lt__, __ne__, __new__, __repr__, clear, copy, get, items, itervalues, keys, pop, popitem, setdefault, update, values
Methods inherited from class __builtin__.object
__delattr__, __reduce__, __reduce_ex__, __setattr__, __str__
Fields
__dict__ = <attribute '__dict__' of 'UriDict' objects>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'UriDict' objects>
list of weak references to the object (if defined)
Fields
Fields