[Python-checkins] r69911 - in python/branches/io-c: Lib/io.py Modules/io.c

antoine.pitrou python-checkins at python.org
Mon Feb 23 20:57:18 CET 2009


Author: antoine.pitrou
Date: Mon Feb 23 20:57:18 2009
New Revision: 69911
Log:
expose DEFAULT_BUFFER_SIZE again (fixes a bunch of test failures)
Modified:
 python/branches/io-c/Lib/io.py
 python/branches/io-c/Modules/io.c
Modified: python/branches/io-c/Lib/io.py
==============================================================================
--- python/branches/io-c/Lib/io.py	(original)
+++ python/branches/io-c/Lib/io.py	Mon Feb 23 20:57:18 2009
@@ -55,6 +55,7 @@
 
 import _io
 
+DEFAULT_BUFFER_SIZE = _io.DEFAULT_BUFFER_SIZE
 BlockingIOError = _io.BlockingIOError
 UnsupportedOperation = _io.UnsupportedOperation
 open = _io.open
Modified: python/branches/io-c/Modules/io.c
==============================================================================
--- python/branches/io-c/Modules/io.c	(original)
+++ python/branches/io-c/Modules/io.c	Mon Feb 23 20:57:18 2009
@@ -633,7 +633,10 @@
 Py_DECREF(type); \
 goto fail; \
 }
- 
+
+ /* DEFAULT_BUFFER_SIZE */
+ if (PyModule_AddIntMacro(m, DEFAULT_BUFFER_SIZE) < 0)
+ goto fail;
 
 /* UnsupportedOperation inherits from ValueError and IOError */
 state->unsupported_operation = PyObject_CallFunction(


More information about the Python-checkins mailing list

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