Re: [Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/src/zope/wfmc/process.py Developed nicer, human-readable representations of several classes. Hope

2005-07-29 Thread Stephan Richter
On Friday 29 July 2005 13:50, Albertas Agejevas wrote: > On Fri, Jul 29, 2005 at 09:12:14AM -0400, Benji York wrote: > > What's the reasoning for using angle brackets on some, and not on the > > others?  (I personally like angle brackets better, to be consistent with > > Python.) > > If you can, yo

Re: [Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/src/zope/wfmc/process.py Developed nicer, human-readable representations of several classes. Hope

2005-07-29 Thread Albertas Agejevas
On Fri, Jul 29, 2005 at 09:12:14AM -0400, Benji York wrote: > What's the reasoning for using angle brackets on some, and not on the > others? (I personally like angle brackets better, to be consistent with > Python.) If you can, you make repr to tell you how to make and identical object. For e

[Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/src/zope/wfmc/process.py Developed nicer, human-readable representations of several classes. Hope

2005-07-29 Thread Benji York
Stephan Richter wrote: Log message for revision 37434: Developed nicer, human-readable representations of several classes. Hope you like it! :-) +def __repr__(self): +return "" %self.__name__ +def __repr__(self): +return "TransitionDefinition(from='%s', to='%s')

[Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/src/zope/wfmc/process.py Developed nicer, human-readable representations of several classes. Hope

2005-07-29 Thread Florent Guillaume
Stephan Richter <[EMAIL PROTECTED]> wrote: > Log message for revision 37434: > Developed nicer, human-readable representations of several classes. Hope > you like it! :-) Cool. BTW I tend to use "... %r ..." % foo.__name__ instead of "... '%s' ..." % foo.__name__ though, just for the