Adding session05 homework

Chris,

You suggested putting our projects on github, so I added you as a
collaborator on https://github.com/meshmote/ticker-tock.  I wasn't sure how
were were going to be submitting them and thought this might help when I
have questions.

Thanks!
Robert

On Thu, Nov 13, 2014 at 5:32 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:
>
> You do want to set the instance attributes in *init* -- bit if content is
> None, you want an empty list, not a list with None in it.
>
> Chris
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/UWPCE-PythonCert/IntroToPython/pull/62/files#r20337607>
> .
>



-- 
*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>