Removing hidden directory in os.walk()

2011-02-25 Thread Gaëtan Podevijn
Hello, I would like that os.walk() does not walk through hidden directories. I know that with topdow = true, I can modify the subdirectory list in place, but how should I remove every hidden directory from this place in list ? Thank you, Gaëtan -- http://mail.python.org/mailman/listinfo/python-l

Re: Kind of plugin system

2010-11-28 Thread Gaëtan Podevijn
> > > > From: python-list-bounces+marc-andre.belzile=autodesk@python.org[mailto: > python-list-bounces+marc-andre.belzile > =autodesk@python.org] On Behalf Of Gaëtan Podevijn > Sent: Friday, November 26, 2010 12:46 PM > To: python-list@python.org > Subject: Kind of plugin

Re: Dictionaries inside out

2010-11-26 Thread Gaëtan Podevijn
Found in Dive in Python 3 : >>> a_dict = {'a': 1, 'b': 2, 'c': 3} >>> {value:key for key, value in a_dict.items()} {1: 'a', 2: 'b', 3: 'c'} 2010/11/26 Burton Samograd > Greg Lindstrom writes: > > > I am working on a project where I'm using dictionaries to hold the > > translations to codes (i

Kind of plugin system

2010-11-26 Thread Gaëtan Podevijn
Hello, Here is my problem. I need to get some informations from files stored on my filesystem, Flickr and Picasa. So the idea is to create a class (for instance, "InformationsProvider") that provides common methods for those three sources, then, for each source, I create a class that inherits fro