FAQ
I have Python 2.2 and when I try this program I get a popup with this
message. Can you see what I'm doing wrong? I just want to take some info I
have in a file and (shelve it?).

PYTHONW caused an invalid page fault in
module MSVCRT.DLL at 0167:78012473.
Registers:
EAX�000002 CS67 EIPx012473 EFLGS�010246
EBX�750880 SS6f ESP�62cdc4 EBP�62cdcc
ECXÿff01f0 DS6f ESI�aef68e FS77
EDX�000000 ES6f EDI�aef70e GS�00
Bytes at CS:EIP:
8a 06 88 07 8a 46 01 c1 e9 02 88 47 01 83 c6 02
Stack dump:
0000ff8e 1e03b1d0 0062ce00 00f1812c 00aef70e 00aef68e ffff01f2 00ada1c0
00aef68e 00add470 00aef70e 00adf700 00000008 00000080 1e030200 0062ce48

This program ass performed an illegal operation and will be shut do.

### Here's the program #########

import cPickle, shelve

hold = []

data = open('inout.txt', 'r')
while 1:
temp = data.readline()
if temp == '':
break
temp = temp[:-1]
temp = temp.split('\t')
hold.append(temp)
data.close()

data = shelve.open('inventory')
for num in hold:
a = num[0]
b = num[1]
c = num[2]
d = num[3]
e = num[4]
f = num[5]
g = num[6]
h = num[7]
i = num[8]
j = num[9]
k = num[10]
l = num[11]
m = num[12]
n = num[13]
data[b] = [a, c, d, e, f, g, h, i, j, k, l, m, n]
data.sync()
data.close

Ron A

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedJan 20, '04 at 3:18p
activeJan 20, '04 at 3:18p
posts1
users1
websitepython.org

1 user in discussion

Ron Alvarado: 1 post

People

Translate

site design / logo © 2017 Grokbase