A Unicode problem -HELP
Ben Finney
bignose+hates-spam at benfinney.id.au
Tue May 16 22:38:28 EDT 2006
"manstey" <manstey at csu.edu.au> writes:
> input_file = open(input_file_loc, 'r')
> output_file = open(output_file_loc, 'w')
> for line in input_file:
> output_file.write(str(word_info + parse + gloss)) # = three functions that return tuples
If you mean that 'word_info', 'parse' and 'gloss' are three functions
that return tuples, then you get that return value by calling them.
>>> def foo():
... return "foo's return value"
...
>>> def bar(baz):
... return "bar's return value (including '%s')" % baz
...
>>> print foo()
foo's return value
>>> print bar
<function bar at 0x401fe80c>
>>> print bar("orange")
bar's return value (including 'orange')
--
\ "A man must consider what a rich realm he abdicates when he |
`\ becomes a conformist." -- Ralph Waldo Emerson |
_o__) |
Ben Finney
More information about the Python-list
mailing list