Basic filter function - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Python Programming Language (https://www.supportforums.net/forumdisplay.php?fid=32) +---- Thread: Basic filter function (/showthread.php?tid=5168) |
Basic filter function - uber1337 - 03-05-2010 This has been sitting in the back of my head for a while so I decided to make it. It will "clean" a file by replacing the dictionary's keys with it's values. It can be used on text files, and html files, whatever. Not really practical I just thought of it when I first started programming and didn't know how to do, but now I do . Code: def clean(name): RE: Basic filter function - xerotic - 08-13-2010 Wow this is actually pretty cool! I will try this out later. Thanks. |