tags tags replace('===>'''tags tags replace(''insert few tags tags tags split('\ 'line-by-line mods tags ['if line ='else line for line in tagstags ['%shtmlescape(lineif line[: ='\telse line for line in tagstags '\njoin(tagslink '\ \ % \nlink tags 'tags foot 'print(tagsfile=filefile close(display results print('[file% ]savetoend=''print('\ open(savetoread()if browserwebbrowser open(savetonew=truewebbrowser open(htmltonew=falseif sys platform startswith('win')input('[press enter]'keep window open if clicked on windows run this script on your ownand study its code for summary of some of the ideas we've covered in this book fetch it from this book' website described in the preface if you wish you won' find any descriptorsdecoratorsmetaclassesor super calls in this codebut it' typical python nonetheless when runit generates the web page captured in the fully gratuitous figure - this could be much more grandioseof coursesee the web for pointers to python support for pdfs and other document tools such as sphinx surveyed in but heyif you've made it to the end of this bookyou deserve another joke or two all good things