On Tue, Mar 11, 2008 at 8:33 PM, Danek Duvall <[EMAIL PROTECTED]> wrote:
> On Tue, Mar 11, 2008 at 07:25:41PM -0500, Shawn Walker wrote:
>
> > > - ("NAME",)
> > > + ("NAME")
> >
> > Hrm? Can I ask why?
>
> They're different constructs. The original is a tuple with one element,
> "NAME". The replacement is a parenthesized string, "NAME". Because we
> treat next_tok as a sequence, setting it to the latter means that iterating
> over it will give us the sequence "N", "A", "M", "E", rather than "NAME".
Weird. I wonder why the tests and everything still passed. However,
that makes sense now that you explain it.
I'll fix that.
You'll have to forgive me as I'm a relative Python novice.
Thanks,
--
Shawn Walker, Software and Systems Analyst
http://binarycrusader.blogspot.com/
"To err is human -- and to blame it on a computer is even more so." -
Robert Orben
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss