Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 2øªj� ã@sdZdgZGdd„deƒZdS)zMisc dict tools.Úhashdictc@sheZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dd„Z dd„Z dd„Z dd„ZdS)ra< hashable dict implementation, suitable for use as a key into other dicts. >>> h1 = hashdict({"apples": 1, "bananas":2}) >>> h2 = hashdict({"bananas": 3, "mangoes": 5}) >>> h1+h2 hashdict(apples=1, bananas=3, mangoes=5) >>> d1 = {} >>> d1[h1] = "salad" >>> d1[h1] 'salad' >>> d1[h2] Traceback (most recent call last): ... KeyError: hashdict(bananas=3, mangoes=5) based on answers from http://stackoverflow.com/questions/1151658/python-hashable-dicts cCstt|jƒƒƒS)N)ÚtupleÚsortedÚitems)Úself©rú=/tmp/pip-build-_d5lkt3n/fonttools/fontTools/misc/dictTools.pyZ__keyszhashdict.__keycCs$dj|jjdjdd„|jƒDƒƒƒS)Nz{0}({1})z, css*|]"}djt|dƒt|dƒƒVqdS)z{0}={1}ééN)ÚformatÚstrÚrepr)Ú.0Úirrrú !sz$hashdict.__repr__..)r Ú __class__Ú__name__ÚjoinÚ_hashdict__key)rrrrÚ__repr__s  zhashdict.__repr__cCs t|jƒƒS)N)Úhashr)rrrrÚ__hash__$szhashdict.__hash__cCstdj|jjƒƒ‚dS)Nz${0} does not support item assignment)Ú TypeErrorr rr)rÚkeyÚvaluerrrÚ __setitem__&szhashdict.__setitem__cCstdj|jjƒƒ‚dS)Nz${0} does not support item assignment)rr rr)rrrrrÚ __delitem__)szhashdict.__delitem__cCstdj|jjƒƒ‚dS)Nz${0} does not support item assignment)rr rr)rrrrÚclear,szhashdict.clearcOstdj|jjƒƒ‚dS)Nz${0} does not support item assignment)rr rr)rÚargsÚkwargsrrrÚpop/sz hashdict.popcOstdj|jjƒƒ‚dS)Nz${0} does not support item assignment)rr rr)rrrrrrÚpopitem2szhashdict.popitemcOstdj|jjƒƒ‚dS)Nz${0} does not support item assignment)rr rr)rrrrrrÚ setdefault5szhashdict.setdefaultcOstdj|jjƒƒ‚dS)Nz${0} does not support item assignment)rr rr)rrrrrrÚupdate8szhashdict.updatecCst|ƒ}tj||ƒ|S)N)rÚdictr")rÚrightÚresultrrrÚ__add__>s zhashdict.__add__N)rÚ __module__Ú __qualname__Ú__doc__rrrrrrrr r!r"r&rrrrrsN)r)Ú__all__r#rrrrrÚs