Ticket #640 (defect)
Opened 2 years ago
Last modified 2 years ago
cherrypy.session does not implement __contains__
Status: closed (fixed)
| Reported by: | guest | Assigned to: | rdelon |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | CherryPy code | Keywords: | |
| Cc: |
You can't use the idiom:
if 'mykey' not in cherrypy.session: ...
Get a KeyError. I was informed by fumanchu on IRC that this is because cherrypy.session does not implement __contains__
Change History
01/11/07 16:46:41: Modified by fumanchu
- status changed from new to closed.
- resolution set to fixed.
- description changed.
- milestone set to 3.0.


Fixed in [1596].