Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
<-- ANALYTICS CODE - DO NOT EDIT --> <-- Google Analytics script BEGIN --> <-- Google Analytics script END --> | ||||||||
Line: 270 to 270 | ||||||||
value = val; } | ||||||||
Changed: | ||||||||
< < | // this should return a PyString that when executed in Jython creates or gives access to an object like this one // in this case we construct a new WithRepr (check the use of escape for embedded strings) | |||||||
> > | // This should return a PyString that when executed in Jython creates or gives access to an object like this one // in this case we will construct a new WithRepr object // Check the use of JythonConverters to deal with the constituent types // in this case a String, so that it is properly escaped, delimited ... // Note that this method implementation will not work with subclasses of this one, subclasses would have to override it // solving this here also for subclasses would require that they agree on some common way of creating-accessing instances (constructors, a factory ...) | |||||||
public PyString __repr__() { | ||||||||
Changed: | ||||||||
< < | return new PyString("WithRepr(\"" + StringUtil.escape(value, "\"\\") +"\")"); | |||||||
> > | return new PyString("WithRepr(" + JythonConverters.convert(value) + ")"); | |||||||
} // Typically for human consumption, so this cannot be properly parsed by Jython |