byexample icon indicating copy to clipboard operation
byexample copied to clipboard

Make possible to change < and > (the tags' delimiters) by two other chars

Open eldipa opened this issue 7 years ago • 1 comments

Consider the following python example taken from the official documentation:

>>> fib                                                                                                                        
<function fib at 10042ed0>

If we want to execute this we need to remove the memory address as this is likely to change from one run to another.

Using <...> is the correct solution but, the expected string is already using < and > so we cannot distinguish a literal < from the begin of a tag.

We need some way to change the delimiters, something like:

>>> fib     # byexample: +tags=()                                                                                              
<function fib at (...)>

eldipa avatar Jul 08 '18 18:07 eldipa

In 8.1.0 it less likely to have a false positive so this feature has less value.

eldipa avatar Mar 05 '19 15:03 eldipa