|
From: Andre W. <wo...@us...> - 2005-09-14 13:13:10
|
Hi, On 14.09.05, Joerg Lehmann wrote: > > This means I have to compare with the _marker from the corresponding > > module: normpath._marker in this case: > > No, sorry, you misunderstood that. _marker is only used for determining > whether someone passed a keyword argument or not. That's completely > unrelated to the discussion on the undefined results. There, of course, > we have to export the undefined instance. But again, it should not be > contained in the helper module, but in the corresponding module (i.e. > normpath) itself. > > Btw, as you said yourself, <module>._marker would be bad anyway. Right, those markers should be local only. I was trying to use a single _marker all over the place for some other reason, which I'm now convinced was a bad idea after the latest discussion on that list. > But we > already convinced André, so no need to discuss this again. *smile* I bag you pardon for mixing up the different issues. Orgininally I thought it would be worth to thing about, but it's rejected. To summarize it again: We should have local _markers and an global helper._invalid. The later should (for the moment) be used as return value in result lists of various normpath methods, which are able to handle a handle/process/evaluate a list of points to mark errors. There's no need for an trafo.invalid, since a trafo is either valid or it raises an exception ... André -- by _ _ _ Dr. André Wobst / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ |