Hi there,
I am new to Python and trying to get my head around the OO stuff. I guess my
question is - when do you go with subclassing vs. making a standalone function?
Let's say you want to load a dictionary. Do I create a function that accepts
some argument (say a file name) and returns a dict
I am new to Python and trying to get my head around
the OO stuff. I guess my question is - when do you go
with subclassing vs. making a standalone function?
OK, I'll take a slightly different approach than the other
answers so far.
First: procedural and OO styles of programming are diffrent
Thanks again, this is exactly the kind of info I need to make the jump from
procedural to OO design. I bookmarked your site for reference.
On Saturday, June 16, 2007, at 09:30AM, "Kent Johnson" <[EMAIL PROTECTED]>
wrote:
>[EMAIL PROTECTED] wrote:
>> Hi there,
>>
>> I am new to Python and tryin
I created a shelf called 'myshelf' and put two objects in it, a string and a
list. When I open the shelf I get:
>>> d=shelve.open('/Users/development/Desktop/myshelf')
>>> d.keys()
['dir1', 'dir2']
>>> d
{'dir2': '/Users/development/Desktop/RSSReaderApp/RSS.db', 'dir1':
['.DS_Store', '.localized
Sorry it took me so long to get back - from your posts and my experimentation I
can see that when you access one item in the shelve dictionary, it only gets
the one item, not all of them. I am going to use shelve, and only refactor or
change if performance becomes an issue - which I don't see