Re: Suggesion for an undergrad final year project in Python

2005-02-01 Thread Paul Robson
On Tue, 01 Feb 2005 12:11:47 +, Kartic wrote: > Sridhar said the following on 2/1/2005 2:11 AM: >> Hi, >> >> I am doing my undergrade CS course. I am in the final year, and would >> like to do my project involving Python. Our instructors require the >> project to have novel ideas. Can the

Re: Tutorial problem

2004-12-27 Thread Paul Robson
On Mon, 27 Dec 2004 08:15:51 -0800, Rÿe9veillÿe9 wrote: > The problem is that it doesnt print the > > [ choice = input ('Pick a number:') ] > > command. It just runs thru the whole thing without > allowing the user a selection. Are you running it from the command line ? Some editors do

Re: lies about OOP

2004-12-13 Thread Paul Robson
On Mon, 13 Dec 2004 19:33:25 -0800, projecktzero wrote: > A co-worker considers himself "old school" in that he hasn't seen the > light of OOP.(It might be because he's in love with Perl...but that's > another story.) He thinks that OOP has more overhead and is slower than > programs written the p

Re: weird behaviour of "0 in [] is False"

2004-11-30 Thread Paul Robson
John Roth wrote: > It's not an error. As one of the first responders said, check > the language definition. That defines both 'in' and 'is' > as equality operators, and defines exactly what a chain > of equality operators means. > > In this case, it means: > > (0 in l) and (l is False) > > The

Re: weird behaviour of "0 in [] is False"

2004-11-30 Thread Paul Robson
Sylvain Thenault wrote: l = [] 0 in (l is False) (l is False) is not a tuple or list, it's a boolean value. > Traceback (most recent call last): > File "", line 1, in ? > TypeError: iterable argument required (0 in l) is False > True 0 in l is False becuase l is empty, so it's Fa

Re: wxStyledTextCtrl problem ?

2004-11-29 Thread Paul Robson
On Mon, 29 Nov 2004 08:10:18 +, Jean Brouwers wrote: > If you are running GTK+ try using > > self.Editor.SetSTCFocus(True) > > in addition to or instead of SetFocus(). Plus maybe > > wx.CallAfter(self.Editor.EnsureCaretVisible) > > It solved the 'dissapearing caret' proble

Re: wxStyledTextCtrl problem ?

2004-11-29 Thread Paul Robson
On Sun, 28 Nov 2004 23:43:32 -0800, Josiah Carlson wrote: > I don't know why the problem you are having happens, but I would just > make a call to self.Editor.SetFocus() on an EVT_ACTIVATE event. Tried that, it doesn't work :( Or to be precise, it works every other time :) -- http://mail.pytho

Re: The use of :

2004-11-28 Thread Paul Robson
On Mon, 29 Nov 2004 01:12:16 -0500, Jeremy Bowers wrote: > The only punctuation you *need* is whitespace. See Forth (I don't know > if this is perfect but I'd bet the transform is simple), : Announce ." Forth has a fair bit of punctuation" ; -- http://mail.python.org/mailman/listinfo/python-list