Files
cpython/Doc/lib
Gustavo Niemeyer a33d0aa693 Unparenting BZ2File, as discussed in SF patch #661796.
* Modules/bz2module.c
  (BZ2FileObject): Now the structure includes a pointer to a file object,
   instead of "inheriting" one. Also, some members were copied from the
   PyFileObject structure to avoid dealing with the internals of that
   structure from outside fileobject.c.

  (Util_GetLine,Util_DropReadAhead,Util_ReadAhead,Util_ReadAheadGetLineSkip,
   BZ2File_write,BZ2File_writelines,BZ2File_init,BZ2File_dealloc,
   BZ2Comp_dealloc,BZ2Decomp_dealloc):
   	These functions were adapted to the change above.

  (BZ2File_seek,BZ2File_close): Use PyObject_CallMethod instead of
   getting the function attribute locally.

  (BZ2File_notsup): Removed, since it's not necessary anymore to overload
   truncate(), and readinto() with dummy functions.

  (BZ2File_methods): Added xreadlines() as an alias to BZ2File_getiter,
   and removed truncate() and readinto().

  (BZ2File_get_newlines,BZ2File_get_closed,BZ2File_get_mode,BZ2File_get_name,
   BZ2File_getset):
   	Implemented getters for "newlines", "mode", and "name".

  (BZ2File_members): Implemented "softspace" member.

  (BZ2File_init): Reworked to create a file instance instead of initializing
   itself as a file subclass. Also, pass "name" object untouched to the
   file constructor, and use PyObject_CallFunction instead of building the
   argument tuple locally.

  (BZ2File_Type): Set tp_new to PyType_GenericNew, tp_members to
   BZ2File_members, and tp_getset to BZ2File_getset.

  (initbz2): Do not set BZ2File_Type.tp_base nor BZ2File_Type.tp_new.


* Doc/lib/libbz2.tex
  Do not mention that BZ2File inherits from the file type.
2003-02-11 18:46:20 +00:00
..
2002-10-01 15:29:09 +00:00
2002-10-01 15:29:09 +00:00
2002-06-26 05:07:28 +00:00
2002-08-23 21:19:53 +00:00
2003-02-06 05:02:39 +00:00
2002-09-04 15:12:07 +00:00
2002-10-30 21:08:34 +00:00
2002-12-06 18:52:28 +00:00
2002-07-10 19:21:07 +00:00
2002-11-22 14:28:53 +00:00
2003-02-11 14:24:13 +00:00
2002-12-17 01:24:11 +00:00
2003-01-01 20:37:14 +00:00
2002-12-18 02:07:14 +00:00
2003-02-06 18:04:43 +00:00
2002-05-01 03:23:03 +00:00
2003-01-21 01:52:39 +00:00
2002-05-27 15:08:24 +00:00
2002-12-30 23:00:36 +00:00
2003-01-30 22:22:59 +00:00
2003-01-10 13:52:30 +00:00
2003-02-10 19:21:16 +00:00
2002-10-17 19:23:43 +00:00
2002-11-18 04:34:10 +00:00
2002-10-10 18:24:54 +00:00
2002-06-25 15:26:59 +00:00
2003-01-06 18:41:01 +00:00
2001-11-06 22:10:47 +00:00
2002-10-22 18:26:28 +00:00
2002-12-12 12:23:32 +00:00
2002-10-10 15:58:19 +00:00
2001-10-26 19:50:26 +00:00
2002-11-13 15:56:13 +00:00