def deletePage(self, pno = -<NUM_LIT:1>):
pl = list(range(len(self)))<EOL>if pno < -<NUM_LIT:1> or pno > pl[-<NUM_LIT:1>]:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if pno >= <NUM_LIT:0>:<EOL><INDENT>pl.remove(pno)<EOL><DEDENT>else:<EOL><INDENT>pl.remove(pl[-<NUM_LIT:1>])<EOL><DEDENT>return self.select(pl)<EOL>
Delete a page from the document. First page is '0', last page is '-1'.