From 265532dafc8fd3071bf395f849e77d438a8057eb Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Sun, 4 Feb 2001 00:04:43 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/ffi/FFIExternalObject.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/direct/src/ffi/FFIExternalObject.py b/direct/src/ffi/FFIExternalObject.py index f44c76cb3b..8ec798960e 100644 --- a/direct/src/ffi/FFIExternalObject.py +++ b/direct/src/ffi/FFIExternalObject.py @@ -170,7 +170,7 @@ class FFIExternalObject: else: return 1 - def __str__(self): + def __repr__(self): # Lots of Panda classes have an output function defined that takes an Ostream # We create a LineStream for the output function to write to, then we extract # the string out of it and return it as our str @@ -185,8 +185,7 @@ class FFIExternalObject: # In any case, return the baseRepr return baseRepr - - def __repr__(self): + def __str__(self): # This is a more complete version of printing which shows the object type # and pointer, plus the output from write() or output() whichever is defined # Print this info for all objects