Name: rmT116609 Date: 01/30/2003
DESCRIPTION OF THE PROBLEM :
Python support a triple-quote mechanism that makes it easy to embed multi-line strings in code. For example:
public void testme()
{
// Current java way
String test =
"Multi-line text gets added to the variable," + '\n'
+ "including carriage returns. This process continues"
+ '\n'
+ "until and ending triple quote."
// Triple-quote way
test =
"""Multi-line text gets added to the variable,
including carriage returns. This process continues
until and ending triple quote."""
}
(Review ID: 180128)
======================================================================