A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-March/078229.html below:

[Python-Dev] Backport of bytearray type and io module

[Python-Dev] Backport of bytearray type and io module [Python-Dev] Backport of bytearray type and io moduleChristian Heimes lists at cheimes.de
Wed Mar 26 13:36:53 CET 2008
Guido van Rossum schrieb:
> I'm okay with bytearray not being subclassable in 2.6 as a temporary
> measure. I wouldn't want that to leak into 3.0 though, and I'd rather
> have it subclassable in 2.6 as well. I wonder why it doesn't work in
> 2.6 but does work in 3.0?

This fix for the issue was easy once I noticed the cause of the problem

Modified: python/branches/trunk-bytearray/Objects/typeobject.c
==============================================================================
--- python/branches/trunk-bytearray/Objects/typeobject.c	(original)
+++ python/branches/trunk-bytearray/Objects/typeobject.c	Wed Mar 26
13:20:46 2008
@@ -3762,6 +3762,8 @@
 		COPYBUF(bf_getwritebuffer);
 		COPYBUF(bf_getsegcount);
 		COPYBUF(bf_getcharbuffer);
+		COPYBUF(bf_getbuffer);
+		COPYBUF(bf_releasebuffer);
 	}

 	basebase = base->tp_base;

Christian
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4