[issue7214] TreeBuilder.end(tag) differs between cElementTree and ElementTree

Brian report at bugs.python.org
Mon Aug 9 00:24:18 CEST 2010


Brian <brian at merrells.org> added the comment:

Florent,

Does keeping the current behavior mean no change?  This issue, more
fundamental than this discrepancy, is what is the purpose of the argument to
*end* in the first place?  Why have a required argument that is usually
ignored and when not ignored it used only to verify that one actually knows
the current tag they are ending (ie the argument doesn't actually seem to DO
anything)?

-brian

On Sun, Aug 8, 2010 at 4:42 PM, Florent Xicluna <report at bugs.python.org>wrote:

>
> Florent Xicluna <florent.xicluna at gmail.com> added the comment:
>
> The verification of the matching between start and end tag is performed in
> a debug "assert" statement in the Python version.
> This check is ignored if the module is compiled with -O.
> It is ignored in the C version, too.
>
> I would suggest to keep the current behavior for both versions.
> Fredrik and Stefan are CC'd if they want to comment.
>
> ----------
> nosy: +effbot, scoder
> versions: +Python 3.2 -Python 2.6
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue7214>
> _______________________________________
>

----------
Added file: http://bugs.python.org/file18445/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7214>
_______________________________________
-------------- next part --------------
Florent,<div><br></div><div>Does keeping the current behavior mean no change?  This issue, more fundamental than this discrepancy, is what is the purpose of the argument to <b>end</b> in the first place?  Why have a required argument that is usually ignored and when not ignored it used only to verify that one actually knows the current tag they are ending (ie the argument doesn&#39;t actually seem to DO anything)?</div>

<div><br></div><div>-brian</div><div><br></div><div><div class="gmail_quote">On Sun, Aug 8, 2010 at 4:42 PM, Florent Xicluna <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Florent Xicluna &lt;<a href="mailto:florent.xicluna at gmail.com">florent.xicluna at gmail.com</a>&gt; added the comment:<br>
<br>
The verification of the matching between start and end tag is performed in a debug &quot;assert&quot; statement in the Python version.<br>
This check is ignored if the module is compiled with -O.<br>
It is ignored in the C version, too.<br>
<br>
I would suggest to keep the current behavior for both versions.<br>
Fredrik and Stefan are CC&#39;d if they want to comment.<br>
<br>
----------<br>
nosy: +effbot, scoder<br>
versions: +Python 3.2 -Python 2.6<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue7214" target="_blank">http://bugs.python.org/issue7214</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br></div>


More information about the Python-bugs-list mailing list