[Zope3-checkins] CVS: Zope3/src/transaction - _transaction.py:1.1.2.4

Tim Peters tim.one at comcast.net
Fri Mar 19 15:47:40 EST 2004


Update of /cvs-repository/Zope3/src/transaction
In directory cvs.zope.org:/tmp/cvs-serv15976/src/transaction

Modified Files:
      Tag: jeremy-txn-branch
	_transaction.py 
Log Message:
Comment about why myhasattr() exists.


=== Zope3/src/transaction/_transaction.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/transaction/_transaction.py:1.1.2.3	Fri Mar 19 15:46:03 2004
+++ Zope3/src/transaction/_transaction.py	Fri Mar 19 15:47:40 2004
@@ -88,6 +88,8 @@
 
 _marker = object()
 
+# The point of this is to avoid hiding exceptions (which the builtin
+# hasattr() does).
 def myhasattr(obj, attr):
     return getattr(obj, attr, _marker) is not _marker
 




More information about the Zope3-Checkins mailing list