Comment #1 on issue 1622 by smichr: pprint arg doesn't work
http://code.google.com/p/sympy/issues/detail?id=1622
Something I saw on python tutor some years ago might be of use: you can use
stringIO
to capture what would normally be printed (if that's what you need).
###
import StringIO, sys
savedsysstdout=sys.stdout
sys.stdout = io = StringIO.StringIO()
var('x')
pprint((1/x+3)**2, True)
#if you want to see it, seek to 0 and read, just like a file and print
#to stderr instead of stdout
io.seek(0)
sys.stderr.write(io.read())
#restore stdout when finished
sys.stdout = savedsysstdout
###
/c
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---