homepage

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 nadeem.vawda
Recipients MizardX, antlong, eric.araujo, mdehoon, nadeem.vawda, niemeyer, pitrou, rhettinger, wrobell, xuanji
Date 2011年03月14日.15:32:55
SpamBayes Score 5.3302564e-08
Marked as misclassified No
Message-id <1300116791.03.0.0380289082895.issue5863@psf.upfronthosting.co.za>
In-reply-to
Content
> Would it be possible to add an open() function to the bz2 module?
Yes, it would be quite trivial, though I don't think it would be worthwhile -
all it would do is provide a direct alias for the BZ2File constructor. But as
Antoine said, that is a topic for a separate issue.
@Antoine:
Regarding the use of PY_SSIZE_T_CLEAN, I assume that Py_ssize_t is to be
preferred over plain ssize_t. Is this correct?
Also, I was wondering whether I need to add some sort of license boilerplate to
the beginning of bz2.py? With _bz2module.c, I presume I should retain the
copyright information from the old bz2module.c. Would something like this be ok?
 /* _bz2 - Low-level Python interface to libbzip2.
 *
 * Copyright (c) 2011 Nadeem Vawda <nadeem.vawda@gmail.com>
 *
 * Based on bz2module.c:
 *
 * Copyright (c) 2002 Gustavo Niemeyer <niemeyer@conectiva.com>
 * Copyright (c) 2002 Python Software Foundation; All Rights Reserved
 */
(Browsing through the source files in Lib/ and Modules/, there doesn't seem to
be a clear convention for this sort of thing...)
History
Date User Action Args
2011年03月14日 15:33:11nadeem.vawdasetrecipients: + nadeem.vawda, rhettinger, niemeyer, mdehoon, pitrou, wrobell, eric.araujo, MizardX, antlong, xuanji
2011年03月14日 15:33:11nadeem.vawdasetmessageid: <1300116791.03.0.0380289082895.issue5863@psf.upfronthosting.co.za>
2011年03月14日 15:32:55nadeem.vawdalinkissue5863 messages
2011年03月14日 15:32:55nadeem.vawdacreate

AltStyle によって変換されたページ (->オリジナル) /