Adding session05 homework

Hmm, then maybe I just was following the lecture example for a basic class,
thinking I had to populate all the class attributes when I made instances.
This project was big enough that I start forgetting why I did stuff.  :-)

On Wed, Nov 12, 2014 at 10:12 PM, Christopher H.Barker, PhD <
notifications@github.com> wrote:

> In Students/RPerkins/session06/html_render.py:
>
> > +
> > +
> > +class Element(object):
> > +
> > +    tag = '<html>'
> > +    endtag = '</html>'
> > +    indent = ''
> > +
> > +    def __init__(self, content=None, **attrib):
> > +        self.attrib = attrib
> > +        self.content = [content]
> > +
> > +    def append(self, new_content):
> > +        """Check for existing content and add new_content"""
> > +
> > +        if self.content[0] is None:
>
> well, you do want "content=None" in the parameter list -- so the user
> doesn't have to pass in anything if they don't want. but you don't want to
> actually store the None in your list.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/UWPCE-PythonCert/IntroToPython/pull/62/files#r20274146>
> .
>



-- 
*Robert Perkins*
*Mobile:* 425-239-9269
*Email:* meshmote@gmail.com
 *Professional Profile
<http://www.linkedin.com/pub/robert-perkins/9/a6a/a91>*
<http://maps.google.com/maps?q=&hl=en>
See who we know in common
<http://www.linkedin.com/e/wwk/29505421/?hs=false&tok=0zCreXIp0dhRQ1>Want a
signature like this?
<http://www.linkedin.com/e/sig/29505421/?hs=false&tok=1-_hPrm6YdhRQ1>