[docs] [issue8602] documentation of bz2 module mildly erroneous

Matt Wartell report at bugs.python.org
Mon May 3 09:03:54 CEST 2010


New submission from Matt Wartell <matt.wartell+pt at gmail.com>:

This is related to http://bugs.python.org/issue8601 "bz2.BZ2File should support "with" protocol per PEP 343"

The documentation at http://docs.python.org/library/bz2.html states:

   "This module provides a comprehensive interface for the bz2 compression library. It implements a complete file interface,..." 

although bz2.BZ2File does not support the __enter__ and __exit__ methods so arguably doesn't implement the "complete file interface". If issue8601 is declined then the documentation should probably note this exception.

----------
assignee: docs at python
components: Documentation
messages: 104818
nosy: Matt.Wartell, docs at python
priority: normal
severity: normal
status: open
title: documentation of bz2 module mildly erroneous
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8602>
_______________________________________


More information about the docs mailing list