Re: [Epydoc-devel] Docstring parsing shortcomings
Brought to you by:
edloper
From: Daniele V. <pi...@de...> - 2007-05-11 14:20:38
|
> and I just found another one: > > def parseGeometry(geometryString): > """Convenience function for parsing geometry strings of various > formats:: > > >>> fig.parseGeometry("320,240-640,480") > fig.Rect(320,240,640,480) > >>> fig.parseGeometry("50,50+50,50") > fig.Rect(50,50,100,100) > >>> fig.parseGeometry("40,40,320,240") > fig.Rect(40,40,320,240) > >>> r = fig.Rect(0,0,320,240) > >>> fig.parseGeometry(str(r)) == r > True > """ > ma = _re_geometry.match(geometryString) Ok: this seems a bug. After the first paragraph there is not another paragraph but a block: this is probably creating some confusion. The following works fine instead:: def parseGeometry(geometryString): """Convenience function for parsing geometry strings of various formats. Examples are:: ... I'll investigate. Thank you. -- Daniele Varrazzo - Develer S.r.l. http://www.develer.com |