[Python-Dev] Re: [Python-checkins] python/dist/src/Mac/Tools/IDE PyConsole.py, 1.17, 1.18

Jack Jansen Jack.Jansen at cwi.nl
Mon Oct 13 06:28:43 EDT 2003


Just,
could you backport this to the 2.3 maintenance branch too? Actually, 
that
may be the only place where IDE bug fixes need to go, I hope we have 
something
new by the time 2.4 comes out...

On Sunday, October 12, 2003, at 09:27 PM, jvr at users.sourceforge.net 
wrote:

> Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
> In directory sc8-pr-cvs1:/tmp/cvs-serv4435
>
> Modified Files:
> 	PyConsole.py
> Log Message:
> fix for bug [819860]: make sure the buffer gets emptied, even if 
> WEInsert() fails
>
> Index: PyConsole.py
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PyConsole.py,v
> retrieving revision 1.17
> retrieving revision 1.18
> diff -C2 -d -r1.17 -r1.18
> *** PyConsole.py	9 May 2003 11:47:23 -0000	1.17
> --- PyConsole.py	12 Oct 2003 19:27:24 -0000	1.18
> ***************
> *** 128,135 ****
>   		stuff = string.join(stuff, '\r')
>   		self.setselection_at_end()
> ! 		self.ted.WEInsert(stuff, None, None)
>   		selstart, selend = self.getselection()
>   		self._inputstart = selstart
> - 		self._buf = ""
>   		self.ted.WEClearUndo()
>   		self.updatescrollbars()
> --- 128,137 ----
>   		stuff = string.join(stuff, '\r')
>   		self.setselection_at_end()
> ! 		try:
> ! 			self.ted.WEInsert(stuff, None, None)
> ! 		finally:
> ! 			self._buf = ""
>   		selstart, selend = self.getselection()
>   		self._inputstart = selstart
>   		self.ted.WEClearUndo()
>   		self.updatescrollbars()
> ***************
> *** 330,335 ****
>   		self.w.outputtext.setselection(end, end)
>   		self.w.outputtext.ted.WEFeatureFlag(WASTEconst.weFReadOnly, 0)
> ! 		self.w.outputtext.ted.WEInsert(stuff, None, None)
> ! 		self._buf = ""
>   		self.w.outputtext.updatescrollbars()
>   		self.w.outputtext.ted.WEFeatureFlag(WASTEconst.weFReadOnly, 1)
> --- 332,339 ----
>   		self.w.outputtext.setselection(end, end)
>   		self.w.outputtext.ted.WEFeatureFlag(WASTEconst.weFReadOnly, 0)
> ! 		try:
> ! 			self.w.outputtext.ted.WEInsert(stuff, None, None)
> ! 		finally:
> ! 			self._buf = ""
>   		self.w.outputtext.updatescrollbars()
>   		self.w.outputtext.ted.WEFeatureFlag(WASTEconst.weFReadOnly, 1)
>
>
>
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 
Goldman




More information about the Python-Dev mailing list