Groups
Groups
Sign in
Groups
Groups
Schevo
Conversations
About
Send feedback
Help
using yaml for persistence
1 view
Skip to first unread message
paul jobs
unread,
Mar 2, 2009, 9:18:01 PM
3/2/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sch...@googlegroups.com
class User(object):
def __init__(self, uid):
self.uid = uid
self.__dict__.update(yaml.load(str('uid')+'.yaml'))
def save(self):
f=open(str(self.uid)+'.yaml')
yaml.dump(self.__dict__, f)
is there a better way to persist using Yaml
Reply all
Reply to author
Forward
0 new messages