#!/usr/bin/env python
# -*- mode:python ; tab-width:4 -*- ex:set tabstop=4 shiftwidth=4 expandtab: -*-

################################################################################
# PROJECT: Normalisation - FILE: convention.py - CREATION: 2003/02/13
# Ce fichier est sous licence GPL.
# $Id$
################################################################################
"""
Exemple de fichier python respectant la convention dont la dernière version est 
disponible à l'adresse U{http://barrault.free.fr/ressources/normes/python/}.

@version: 1.0
@author: U{Stéphane Barrault (SBA) <barrault@free.fr>}
"""


import sys # Histoire d'inclure quelque chose...


################################################################################
class MyClass:
    """
    Ma classe à moi, pour démonstration.
    """
    
    ############################################################################
    def __init__(self, arg):
        """
        Constructeur pour ma classe.
        @param arg: Argument à passer.
        """
        print 'Votre argument :', arg
    
    ############################################################################
    def oneMethod(self):
        """
        Une méthode de ma classe.
        """
        print "Bonjour"

################################################################################
def main():
    """
    Utilisation de ma classe.
    """
    o = MyClass('Hop!')
    o.oneMethod()


################################################################################
if __name__ == '__main__':
    main()
