Forum: Python Apr 24th, 2008 |
| Replies: 6 Views: 574 Check out regular expressions in the re module. |
Forum: Python Mar 16th, 2008 |
| Replies: 7 Views: 2,126 Have you seen "Dive into Python" by Mark Pilgrim ? It's a fine resource and has an excellent section on XML processing. It's available online too.. |
Forum: Python Mar 16th, 2008 |
| Replies: 5 Views: 1,144 When I start kleansweep it warns me that I must run it as root to delete all files and no - I never run things as root.
I've been playing around with another way of achieving this.
I created a... |
Forum: Python Mar 16th, 2008 |
| Replies: 5 Views: 1,144 I've looked at kleansweep and it doesn't prompt me for a root password. However I believe this is probably done not by kleansweep but by KDE. In the KDE menu editor (Under System) you can add or edit... |
Forum: Python Mar 15th, 2008 |
| Replies: 10 Views: 2,538 Sorry for not getting back sooner but it seems other kind folks in the forum have answered already.
It's hard to gauge someones level of experience when answering a question but I only outlined the... |
Forum: Python Mar 14th, 2008 |
| Replies: 10 Views: 2,538 Assuming the question does not want a count of unique words/characters this should do it:
open the file for reading
number of words,characters, lines = 0
while a line can be read from the file ... |
Forum: Python Mar 12th, 2008 |
| Replies: 10 Views: 4,977 |
Forum: Python Mar 9th, 2008 |
| Replies: 8 Views: 1,093 |