The Artima Developer Community
Sponsored Link

Python Buzz Forum
A dead simple options system

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Hans Nowak

Posts: 1114
Nickname: roodbaard
Registered: Jun, 2003

Hans Nowak is a Dutch Python addict who currently resides in Florida.
A dead simple options system Posted: Sep 27, 2003 11:13 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Hans Nowak.
Original Post: A dead simple options system
Feed Title: Efectos Especiales
Feed URL:
Feed Description: Ramblings, rants, musings, ideas and observations. Topics include (but are not limited to): programming (especially Python), books, games (especially CCGs and board games), astrology, design, writing, painting, etc.
Latest Python Buzz Posts
Latest Python Buzz Posts by Hans Nowak
Latest Posts From Efectos Especiales

I added a new options system to Charm. It's easy and powerful. Here's how it works: 1. Write a file class Options: def __init__(self, **kwargs): self.extend(**kwargs) def extend(self, **kwargs): for key, value in kwargs.items(): setattr(self, key, value) options = Options() # some example default values options.width = 80 options.title = "My title" # etc... ... [313 words]

Read: A dead simple options system

Topic: ZODB: Transaction ids, timestamps, serial numbers Previous Topic   Next Topic Topic: Cookie update

Sponsored Links


Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use