From: ts Date: 2002-08-24T20:32:15+09:00 Subject: Re: equivalent of python's __debug__ >>>>> "D" == David Garamond writes: D> def foo(self, x, y): D> if __debug__: D> self.__doc__x = "...some longish string..." D> self.__doc__y = "...some also longish string..." D> self.__doc_spec1__ = "...yet another string..." D> ... D> ... Well, I've perhaps not understood but you can write (like previously said) pigeon% ruby -e 'if $DEBUG; a = "a long string"; p a; end' pigeon% pigeon% ruby -de 'if $DEBUG; a = "a long string"; p a; end' "a long string" pigeon% Guy Decoux