Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add some more notes on how to do HTML render #50

Copy link
Copy link
@PythonCHB

Description

@PythonCHB
Issue body actions

Now that the HTML render assignment is now the last exercise (generally a good move) -- there's no chance, at least in the in-sync version to review it with he students after they've done it.

But there were a few "gotcha's" that showed up in their work this time, so it would be good to put some more notes in there. about it.

I need to review again their submissions, but one I rember is that a few folks put code like:

if self.tag == 'html':
    do_something_special

which really defeats the purpose of subclassing :-)

Also: it would be good to refactor that instructions (and tests) a bit to put a placeholder tag for the Element base class -- students get a bit confused about what it's for if it has an "html" tag, then why do you make an Html subclass?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.