Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > A little confuse

Reply
Thread Tools

A little confuse

 
 
infotechsys@pivot.net
Guest
Posts: n/a
 
      11-19-2006
When I run this code in the pdb it works.
accountNbr = 1
for testLine in ftest.readlines():
acct = testLine[1:2] #there account number
if accountNbr == int(acct):
accountNbr = accountNbr + 1

When I run without the debugger I get this error.

File "./casco.py", line 62, in process
if accountNbr == int(acct):
ValueError: invalid literal for int(): "

Can someone explain?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
1 little 2 little 3 little Kennedys dale Digital Photography 0 03-23-2008 01:03 PM
HEXUS.lifestyle :: Prudish Microsoft reaction to Kama Sutra worm set to confuse Silverstrand Front Page News 0 02-02-2006 01:18 PM
Re: Confuse the course name on CTEC Consultant MCSE 0 06-08-2004 07:54 PM
Re: Confuse the course name on CTEC kpg MCSE 3 06-08-2004 06:31 PM
Confuse the course name on Microsoft CTEC Stanley MCSE 0 06-08-2004 04:28 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57