On 10 Jul 2012 11:31, "Chris Hare" <ch...@labr.net> wrote: > > > This piece of code works: > > Big-Mac:Classes chare$ more tmp.py > import re >
<snip> > return not bool(search(string)) <snip> > However, when I use the EXACT same code in the context of the larger code, I get the error > > return not bool(search(strg)) In addition to the comments about likely shaddowing, contrary to what you say, those two lines are not the same. Either you retyped instead of copy & pasting (don't do that), or you are not running the code you think you are. Best, Brian vdB
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor