On Mon, 28 Mar 2005 08:42:22 -0600, Larry Bates wrote:
> Others have answered your specific question, I thought I
> would add some suggestions (not tested):
>
> 1) You don't need a separate set_title method. You can
> change the title attribute at any time by just saying
> m.title="new title".
Others have answered your specific question, I thought I
would add some suggestions (not tested):
1) You don't need a separate set_title method. You can
change the title attribute at any time by just saying
m.title="new title". No method is required unless you
need to do some pre/post processing
A subject line should say what the message is about, for example
"Create HTML tag using objects (newbie Q)"
and enable people who are not interested in or knowledgable about a
topic to skip it, while grabbing the attention of people who are
knowledgable/interested.
--
http://mail.python.org/mai
On Mon, 28 Mar 2005 01:15:34 +, Jp Calderone wrote:
>
> Notice that you have a method named "url" as well as an attribute
> named "url". You have the same problem for "thumb". These methods
> and attributes are in collision with each other. When you try to
> look up the
On Sun, 27 Mar 2005 17:06:05 -0800, Captain Dondo <[EMAIL PROTECTED]> wrote:
> [snip]
>
> def url (self):
> self.url = ...
>
> def thumb (self):
> self.thumb = ...
>
> [snip]
>
> The problem is that m.html in the test section fails with
>
> TypeError: cannot concatenat
OK, I know this is covered somewhere in Python 101, but for the life of me
I cannot figure this out. I really need a basic intro to Python book
I am trying to do something very simple - create an HTML tag using objects:
class Movie:
def __init__ (self, t="", a="", d=""):
#