Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5017

Re: Inconsistency with split() - Script, OS, or Package Problem?

Date 2011-05-09 13:04 -0700
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: Inconsistency with split() - Script, OS, or Package Problem?
References <BANLkTi=g2h_BxZDdTdLqyB3nZCukD+Dupw@mail.gmail.com> <4DC838CD.7030404@stoneleaf.us> <BANLkTimuEQMsjyPyW2XUzpQeU8chNPeyGg@mail.gmail.com> <4DC84223.3000502@stoneleaf.us> <BANLkTinCBHbQoJ89OGawt9r02VQvCTeSqw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1349.1304970753.9059.python-list@python.org> (permalink)

Show all headers | View raw


James Wright wrote:
> On Mon, May 9, 2011 at 3:36 PM, Ethan Furman <ethan@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~

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Inconsistency with split() - Script, OS, or Package Problem? Ethan Furman <ethan@stoneleaf.us> - 2011-05-09 13:04 -0700

csiph-web