Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Partial 1.0 - Partial classes for Python
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Martin v. Löwis  
View profile   Translate to Translated (View Original)
 More options 7 Feb 2007, 09:51
Newsgroups: comp.lang.python.announce
From: "Martin v. Löwis" <mar...@v.loewis.de>
Date: Wed, 07 Feb 2007 10:51:51 +0100
Local: Wed 7 Feb 2007 09:51
Subject: Partial 1.0 - Partial classes for Python
I'm happy to announce partial 1.0; a module to implement
partial classes in Python. It is available from

http://cheeseshop.python.org/pypi/partial/1.0

A partial class is a fragment of a class definition;
partial classes allow to spread the definition of
a class over several modules. One location serves
as the original definition of the class.

To extend a class original_module.FullClass with
an additional function, one writes

from partial import *
import original_module

class ExtendedClass(partial, original_module.FullClass):
     def additional_method(self, args):
         body
     more_methods

This module is licensed under the Academic Free License v3.0.

Please send comments and feedback to mar...@v.loewis.de


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google