This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author AstraLuma
Recipients AstraLuma
Date 2008-02-29.20:00:40
SpamBayes Score 0.002594449
Marked as misclassified No
Message-id <1204315259.46.0.997806067058.issue2211@psf.upfronthosting.co.za>
In-reply-to
Content
Cookie.Morsel lacks in properly overloading dict methods, amongst other
things:
* .__eq__() does not take .key and .value into account
* .copy() returns a dict, not a Morsel
* .update() allows invalid attributes in, eg
Morsel().update({'eggs':'spam'}) works but Morsel()['eggs'] = 'spam' fails
* .__len__() includes unset keys (why does it set them to an empty string?)
* .__repr__() doesn't print out attributes (path, comment, etc)
* Handling of unicode is fuzzy at best: try Morsel().set(u'eggs\u00bf',
u'\u00f1', u'\00f1'.encode('utf-8'))
* Specifying the idmap and translate function in .set() seems wrong
* Setting .key doesn't check against invalid keys (eg, reserved names)
* The entire Morsel class is undocumented
* There is no way to automatically sync .value and .coded_value
History
Date User Action Args
2008-02-29 20:00:59AstraLumasetspambayes_score: 0.00259445 -> 0.002594449
recipients: + AstraLuma
2008-02-29 20:00:59AstraLumasetspambayes_score: 0.00259445 -> 0.00259445
messageid: <1204315259.46.0.997806067058.issue2211@psf.upfronthosting.co.za>
2008-02-29 20:00:41AstraLumalinkissue2211 messages
2008-02-29 20:00:40AstraLumacreate