Menu

#14 session object does not resemble python mapping type

closed-fixed
nobody
5
2005-07-23
2005-07-23
Anonymous
No

The session object as returned by m.get_session() does
not support basic python mapping type methods as
specified in http://www.python.org/doc/2.4.1/lib/
typesmapping.html .
Especially the methods get and setdefault would be
useful. Shouldn't be too hard to fix this, thanks.

Discussion

  • Mike Bayer

    Mike Bayer - 2005-07-23

    Logged In: YES
    user_id=1100624

    checked into CVS and attached as a patch against 0.98a,
    Session subclasses DictMixin to provide dict methods + adds
    iteritems() method

     
  • Mike Bayer

    Mike Bayer - 2005-07-23
    • labels: --> request handling
    • status: open --> closed-fixed
     
  • Mike Bayer

    Mike Bayer - 2005-07-23

    patch for session.py against 0.98a

     
Auth0 Logo