![]() |
| ||
| Newbie- Need Assistance Please I need help with this program. I tried different approach, but doesn't seem to be getting no where. QUESTION: You've been going to work on a database project at work for sometime now. Your boss encourages you to program the database in Python. You disagree, arguing that Python is not a database language but your boss persists by providing the source code below for a sample telephone database. He asks you to do two things: 1. Evaluate the existing source code and extend it to make it useful for managers in the firm. (You do not need a GUI interface, just work on the database aspects: data entry and retrieval - of course you must get the program to run or properly work, and 2. He wants you to critically evaluate Python as a database tool. import shelve I got stuck while running the program with the following error: Welcome to the Phone Record |
| ||
| Re: Newbie- Need Assistance What is the original code and what have you added to it? The way it is now, it does not make much sense. |
| ||
| Re: Newbie- Need Assistance Here is the original code import shelve And I was trying to create phone record through data input. So, this is what I added: import shelve, _bsddb |
| ||
| Re: Newbie- Need Assistance You have mistyped __init__ :) It's __int__ in your phonedb class, look carefully... |
| ||
| Re: Newbie- Need Assistance Quote:
class phonedb: |
| All times are GMT -4. The time now is 10:09 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC