]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
has_key(): Implement in terms of get().
authorBarry Warsaw <barry@python.org>
Wed, 26 Sep 2001 05:41:51 +0000 (05:41 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 26 Sep 2001 05:41:51 +0000 (05:41 +0000)
commitbeb5945c65f13e181409c09d89795673c4f73162
treee1557bf57736a3dbe3d3a8f371738a41def671ab
parent76fac8ed0e4a141854e39f6a329608b75de12958
has_key(): Implement in terms of get().

get_type(): Use a compiled regular expression, which can be shared.

_get_params_preserve(): A helper method which extracts the header's
    parameter list preserving value quoting.  I'm not sure that this
    needs to be a public method.  It's necessary because we want
    get_param() and friends to return the unquoted parameter value,
    however we want the quote-preserved form for set_boundary().

get_params(), get_param(), set_boundary(): Implement in terms of
    _get_params_preserve().

walk(): Yield ourself first, then recurse over our subparts (if any).
Lib/email/Message.py