\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\W}[1]{ \; #1 \; }\)
unicode_tuple.py#
View page sourceunicode_tuple: Example and Test#
#
def unicode_tuple() :
import dismod_at
#
iterable = [ 1, 2.00, 'three' ]
quote_string = True
u_tuple = dismod_at.unicode_tuple(iterable, quote_string)
check = u'( 1, 2.0, \'three\' )'
assert u_tuple == check
#
print('unicode_tuple: OK')