Re: [Tutor] I am a web designer wanting to learn Python

2008-05-28 Thread python
Wesley, Don't be so modest - your "Core Python Programming" (by Wesley Chun) is also a great book for those looking to learn Python. Malcolm ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] why?

2008-05-28 Thread Kent Johnson
On Wed, May 28, 2008 at 8:43 PM, Robert William Hanks <[EMAIL PROTECTED]> wrote: > > Need ti find out whem a number o this form i**3+j**3+1 is acube. > tryed a simple brute force code but, why this not work? > > def iscube(n): > cubed_root = n**(1/3.0) > if round(cubed_root)**3 == n: >

Re: [Tutor] why?

2008-05-28 Thread bob gailer
Robert William Hanks wrote: Need ti find out whem a number o this form i**3+j**3+1 is acube. tryed a simple brute force code but, why this not work? def iscube(n): cubed_root = n**(1/3.0) if round(cubed_root)**3 == n: return True else: return False for i in ran

Re: [Tutor] why?

2008-05-28 Thread bob gailer
Robert William Hanks wrote: Need ti find out whem a number o this form i**3+j**3+1 is acube. tryed a simple brute force code but, why this not work? def iscube(n): cubed_root = n**(1/3.0) if round(cubed_root)**3 == n: return True else: return False for i in ran

Re: [Tutor] why?

2008-05-28 Thread John Fouhy
On 29/05/2008, Robert William Hanks <[EMAIL PROTECTED]> wrote: > > Need ti find out whem a number o this form i**3+j**3+1 is acube. > tryed a simple brute force code but, why this not work? [deleted code] Why doesn't this work? What problems are you having? -- John. __

[Tutor] why?

2008-05-28 Thread Robert William Hanks
Need ti find out whem a number o this form i**3+j**3+1 is acube. tryed a simple brute force code but, why this not work? def iscube(n): cubed_root = n**(1/3.0) if round(cubed_root)**3 == n: return True else: return False for i in range(1,1000): for j in range

Re: [Tutor] 'Right' way to implement mixins in Python?

2008-05-28 Thread Kent Johnson
On Wed, May 28, 2008 at 6:30 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > Mixins should be as independant > as possible from any other classes. Unfortunately thats not > always possible so you should try to create an abstract > superclass/interface and use that in your mixins. You can then > subcla

Re: [Tutor] 'Right' way to implement mixins in Python?

2008-05-28 Thread chombee
Thanks Alan. Well, it looks like I've worked it out as far as small example programs go, hope I can get it working in my actual codebase now. On Wed, 2008-05-28 at 23:30 +0100, Alan Gauld wrote: > > It seemed to me that the most natural way to implement mixins in > > Python > > is to use multiple

Re: [Tutor] 'Right' way to implement mixins in Python?

2008-05-28 Thread Alan Gauld
"chombee" <[EMAIL PROTECTED]> wrote I'm writing an event-driven GUI framework. I have several independent units of functionality such as Draggable, Highlightable, etc. Although these units of functionality are independent of each other, they do all depend on a certain base implementation tha

Re: [Tutor] A video introducing Ulipad, an IDE mainly for Python

2008-05-28 Thread Dick Moores
At 01:40 PM 5/28/2008, bob gailer wrote: Dick Moores wrote: I've been using Ulipad, a free IDE mainly for Python, and written in wxPython, for a couple of years, and think it's terrific. Thanks - IUlipad has some nice features, but I'd miss the debugging in PythonWin. Hey, Ulipad has WinPdb

[Tutor] Python Programming for the Absolute Beginner-OT

2008-05-28 Thread Tony Cappellini
A bit OT, but still within the realm of beginning Python... My co-worker whom has just started learning Python, bought this book in used condition. http://www.courseptr.com/ptr_detail.cfm?group=Programming&subcat=Other&isbn=978%2D1%2D59863%2D112%2D8 Unfortunately it came without the CD, and the p

[Tutor] 'Right' way to implement mixins in Python?

2008-05-28 Thread chombee
I'm writing an event-driven GUI framework. I have several independent units of functionality such as Draggable, Highlightable, etc. Although these units of functionality are independent of each other, they do all depend on a certain base implementation that they work with. I want widget objects to

Re: [Tutor] A video introducing Ulipad, an IDE mainly for Python

2008-05-28 Thread bob gailer
Dick Moores wrote: I've been using Ulipad, a free IDE mainly for Python, and written in wxPython, for a couple of years, and think it's terrific. Thanks - IUlipad has some nice features, but I'd miss the debugging in PythonWin. -- Bob Gailer 919-636-4239 Chapel Hill, NC ___

Re: [Tutor] I am a web designer wanting to learn Python

2008-05-28 Thread Michael yaV
Thanks... I have my-work-cut-out-for-me. Michael On May 28, 2008, at 3:50 PM, wesley chun wrote: I have been wanting to learn a language for the last 10 years, I am now just getting around to it. I did some research on languages, because I decided if I was going learn one, I wanted to learn

Re: [Tutor] I am a web designer wanting to learn Python

2008-05-28 Thread wesley chun
> I have been wanting to learn a language for the last 10 years, I am now > just getting around to it. I did some research on languages, because I > decided if I was going learn one, I wanted to learn something that I could > use for many different applications (web being one). Python seemed to of

Re: [Tutor] I am a web designer wanting to learn Python

2008-05-28 Thread Michael yaV
Wesley, I have been wanting to learn a language for the last 10 years, I am now just getting around to it. I did some research on languages, because I decided if I was going learn one, I wanted to learn something that I could use for many different applications (web being one). Python seem

Re: [Tutor] Example of modifying files in directory

2008-05-28 Thread Kent Johnson
On Wed, May 28, 2008 at 9:50 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, > I have been looking at using Beautifulsoup python module to make > changes to some static html files a total of 167 files, but being a > newb in programming was wondering first how to open, read/process the > f

Re: [Tutor] I am a web designer wanting to learn Python

2008-05-28 Thread wesley chun
> > Where should I begin/go to learn how to create web apps using Python? I > would like to create a dynamic "content managed" website and I have chosen > Python as my language of choice. Can anybody show me, a Mac user, where I, > a programming beginner, can find tutorials for using Python for

Re: [Tutor] A video introducing Ulipad, an IDE mainly for Python

2008-05-28 Thread Sean Azelton
For those looking for the codec and not running Windows, you can find it here for Mac OS X as well http://www.techsmith.com/download/codecs.asp On Wed, May 28, 2008 at 11:01 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > I've been using Ulipad, a free IDE mainly for Python, and written in > wxPytho

Re: [Tutor] I am a web designer wanting to learn Python

2008-05-28 Thread Alan Gauld
"Michael yaV" <[EMAIL PROTECTED]> wrote Where should I begin/go to learn how to create web apps using Python? I would like to create a dynamic "content managed" website and I have chosen Python as my language of choice. Can anybody show me, a Mac user, where I, a programming beginner, can f

[Tutor] A video introducing Ulipad, an IDE mainly for Python

2008-05-28 Thread Dick Moores
I've been using Ulipad, a free IDE mainly for Python, and written in wxPython, for a couple of years, and think it's terrific. Now another user, Kelie Feng, has made an 8-minute video showing it off. The visual clarity of the video is remarkable. You can download it (Introducing_Ulipad_2008-05-

[Tutor] I am a web designer wanting to learn Python

2008-05-28 Thread Michael yaV
Where should I begin/go to learn how to create web apps using Python? I would like to create a dynamic "content managed" website and I have chosen Python as my language of choice. Can anybody show me, a Mac user, where I, a programming beginner, can find tutorials for using Python for web a

[Tutor] Example of modifying files in directory

2008-05-28 Thread [EMAIL PROTECTED]
Hello, I have been looking at using Beautifulsoup python module to make changes to some static html files a total of 167 files, but being a newb in programming was wondering first how to open, read/process the file, then write it, close it and then open the next file thus creating the loop. Ca

[Tutor] (no subject)

2008-05-28 Thread [EMAIL PROTECTED]
Hello, (Sorry if this message gets double posted) I have been looking at using Beautifulsoup python module to make changes to some static html files a total of 167 files, but being a newb in programming was wondering first how to open, read/process the file, then write it, close it and then ope

Re: [Tutor] Simple Python Projects ?

2008-05-28 Thread Julia
I would recommend PyGame.org. While you'll have to learn to use the PyGame library - there are alot of easy tutorials and open source projects. /MJ > Are there any simple python projects out there that have well documented > code and are recommended for new users to read and modify ? > > I have

Re: [Tutor] Simple Python Projects ?

2008-05-28 Thread ALAN GAULD
> > Or you could just try reading and playing with the samples > > that come with Python. There are some simple code beautifier > > scripts that could be easily enhanced and are not too hard. > This looks very interesting to look at, on a windows installation of > Python where would they be locate