[Tutor] List of lists optimization and printing.

2011-07-29 Thread Sergey
Hello. Yes, catb.org and so on. I was searching for some kind of finding max width in a table (a list of two lists) and had found this mailing list. So I want somebody to look at my code and say what can be done better from a programmer point of view. Just SQL like printing and writing. I mean opt

Re: [Tutor] How to replace the '\'s in a path with '/'s?

2011-07-31 Thread Sergey
Maybe something useful could be find in urllib? It can open local files. And UNIX slashes are equal to Web slashes. http://docs.python.org/release/3.2.1/library/urllib.request.html#urllib.request.URLopener -- class urllib.request.URLopener(proxies=None, **x509) Base class for opening and readi

Re: [Tutor] How to replace the '\'s in a path with '/'s?

2011-07-31 Thread Sergey
Gotcha! http://pymon.googlecode.com/svn/tags/pymon-0.2/Internet/rsync.py 231-239 strings ## code ## def convertPath(path): # Convert windows, mac path to unix version. separator = os.path.normpath("/") if separator != "/": path = re.sub(re.escape(separator)

Re: [Tutor] How to replace the '\'s in a path with '/'s?

2011-07-31 Thread Sergey
Haha. Works! Happy help you. Ask gurus about regexps. I know they have an opinion about its speed and optimization. So they can try to criticise. But the problem is solved. It's good. On Sun, 31 Jul 2011 09:18:33 -0700 "Richard D. Moores" wrote > > Nice! > > I went with > > > import os.pat

Re: [Tutor] How to replace the '\'s in a path with '/'s?

2011-07-31 Thread Sergey
7;Aprano wrote > Sergey wrote: > > Gotcha! > > http://pymon.googlecode.com/svn/tags/pymon-0.2/Internet/rsync.py > > 231-239 strings > > > > ## code ## > > > > def convertPath(path): > > # Convert windows, mac path to unix versi

Re: [Tutor] Mailing list documentation

2011-07-31 Thread Sergey
On Sun, 31 Jul 2011 14:22:41 -0400 Alexander Etter wrote > Hello everyone, is there a page that contains documentation for this mailing > list? I've seen a few users top post and others advise against it; if there > isn't a page listing conventions let's create it and if there is what is it's > U