[Python-checkins] python/dist/src/Lib StringIO.py,1.27,1.28
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Tue, 17 Sep 2002 11:10:37 -0700
- Previous message: [Python-checkins] python/dist/src/Doc/lib libasynchat.tex,1.2,1.3 libasyncore.tex,1.13,1.14
- Next message: [Python-checkins] python/dist/src/Demo/sgi/video .cvsignore,1.2,NONE DisplayVideoIn.py,1.2,NONE Dsend.py,1.4,NONE LiveVideoIn.py,1.9,NONE LiveVideoOut.py,1.8,NONE OldVcopy.py,1.4,NONE README,1.19,NONE VCR.py,1.7,NONE VFile.py,1.41,NONE VGrabber.py,1.3,NONE Vaddcache.py,1.5,NONE Vb.py,1.16,NONE VbForm.fd,1.7,NONE Vcopy.py,1.8,NONE VcrIndex.py,1.2,NONE Vedit.py,1.9,NONE VeditForm.fd,1.3,NONE Vfix.py,1.3,NONE Vgeneric.py,1.1,NONE Viewer.py,1.4,NONE Vinfo.py,1.13,NONE Vmkjpeg.py,1.3,NONE Vplay.py,1.15,NONE Vrec.py,1.20,NONE Vrecb.py,1.10,NONE Vreceive.py,1.8,NONE Vsend.py,1.11,NONE Vstat.py,1.2,NONE Vtime.py,1.5,NONE Vunjpeg.py,1.3,NONE aplay.py,1.3,NONE cmif-film.ms,1.1,NONE imgconv.py,1.9,NONE rgb2video.py,1.3,NONE senddefs.py,1.1,NONE svgrab24.c,1.1,NONE vcopy.py,1.5,NONE video.doc,1.2,NONE video2rgb.py,1.6,NONE vinfo.py,1.6,NONE vtime.py,1.2,NONE watchcursor.py,1.2,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv27758
Modified Files:
StringIO.py
Log Message:
write(): Special case the common situation of a stream that's only
being used to dump output (no seeks), so we can avoid a lot
of extra checks being made.
Index: StringIO.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/StringIO.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** StringIO.py 3 Jun 2002 15:58:30 -0000 1.27
--- StringIO.py 17 Sep 2002 18:10:34 -0000 1.28
***************
*** 153,156 ****
--- 153,160 ----
if not isinstance(s, basestring):
s = str(s)
+ if self.pos == self.len:
+ self.buflist.append(s)
+ self.len = self.pos = self.pos + len(s)
+ return
if self.pos > self.len:
self.buflist.append('\0'*(self.pos - self.len))
- Previous message: [Python-checkins] python/dist/src/Doc/lib libasynchat.tex,1.2,1.3 libasyncore.tex,1.13,1.14
- Next message: [Python-checkins] python/dist/src/Demo/sgi/video .cvsignore,1.2,NONE DisplayVideoIn.py,1.2,NONE Dsend.py,1.4,NONE LiveVideoIn.py,1.9,NONE LiveVideoOut.py,1.8,NONE OldVcopy.py,1.4,NONE README,1.19,NONE VCR.py,1.7,NONE VFile.py,1.41,NONE VGrabber.py,1.3,NONE Vaddcache.py,1.5,NONE Vb.py,1.16,NONE VbForm.fd,1.7,NONE Vcopy.py,1.8,NONE VcrIndex.py,1.2,NONE Vedit.py,1.9,NONE VeditForm.fd,1.3,NONE Vfix.py,1.3,NONE Vgeneric.py,1.1,NONE Viewer.py,1.4,NONE Vinfo.py,1.13,NONE Vmkjpeg.py,1.3,NONE Vplay.py,1.15,NONE Vrec.py,1.20,NONE Vrecb.py,1.10,NONE Vreceive.py,1.8,NONE Vsend.py,1.11,NONE Vstat.py,1.2,NONE Vtime.py,1.5,NONE Vunjpeg.py,1.3,NONE aplay.py,1.3,NONE cmif-film.ms,1.1,NONE imgconv.py,1.9,NONE rgb2video.py,1.3,NONE senddefs.py,1.1,NONE svgrab24.c,1.1,NONE vcopy.py,1.5,NONE video.doc,1.2,NONE video2rgb.py,1.6,NONE vinfo.py,1.6,NONE vtime.py,1.2,NONE watchcursor.py,1.2,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]