Inconsistency with split() - Script, OS, or Package Problem?
Ethan Furman
ethan at stoneleaf.us
Mon May 9 16:04:07 EDT 2011
James Wright wrote:
> On Mon, May 9, 2011 at 3:36 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
>> Change your print line to:
>>
>> print("D4[%s] = %s" % (report, each_value))
>>
>> After that, you'll have to track down how D4 is being created to see where
>> 'vsr' is coming from.
>
> It does not appear to show a key:
>
> D4[] = vsr
Huh -- probably the empty string ('') -- to verify that (and know for
sure -- always good when debugging! ;) change the both %s to %r and run
again; then you'll have to track down where D4 is being created to see
why it's getting that weird key.
~Ethan~
More information about the Python-list
mailing list