If I understand your question, then you should just study some
examples/other people's code that initialize new objects as the return
values of functions. There are two small examples below. On the other
hand, if you really need a _global_ object, see help(assign).
## Example 1: last line is ret
I need an object created in a user defined function to be accessible to
another user defined function. I am fairly certain the object is correctly
created as it prints when I use the return() function, however the 2nd
function seems unable to use it.
I am guessing objects created in functions are
2 matches
Mail list logo