E&S CVS Commit: PyProtocols - Removed lazy binding of names referenced in generic function "when"

pje at eby-sarna.com pje at eby-sarna.com
Wed Jan 5 16:54:00 EST 2005


Module Name:	PyProtocols
Committed By:	pje
Date:		Wed Jan  5 21:53:09 UTC 2005

Modified Files:
	PyProtocols/src/dispatch: predicates.py
	PyProtocols/src/protocols/tests: test_dispatch.py test_parsing.py

Log Message:
Removed lazy binding of names referenced in generic function "when"
conditions; it hasn't turned out to be useful in practice, just a source
of delayed bugs.  Now, if you reference an undefined name in a "when"
condition (other than an argument name), you'll get a NameError at the
point of definition, instead of it waiting until that particular condition
is used.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PyProtocols/src/dispatch/predicates.py.diff?r1=1.10&r2=1.11
http://cvs.eby-sarna.com/PyProtocols/src/protocols/tests/test_dispatch.py.diff?r1=1.25&r2=1.26
http://cvs.eby-sarna.com/PyProtocols/src/protocols/tests/test_parsing.py.diff?r1=1.17&r2=1.18

To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 PyProtocols/src/dispatch/predicates.py
cvs rdiff -r1.25 -r1.26 PyProtocols/src/protocols/tests/test_dispatch.py
cvs rdiff -r1.17 -r1.18 PyProtocols/src/protocols/tests/test_parsing.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




More information about the source-changes mailing list