Re: Interpreting non-ascii characters.

2007-07-18 Thread ddtl
On Wed, 18 Jul 2007 08:29:58 +1000, John Machin <[EMAIL PROTECTED]> wrote: > ... I have a bunch of directories and files from different systems (each directory contains files from the same system) which are encoded differently (though all of them are in Russian), so the following encodings are pr

Interpreting non-ascii characters.

2007-07-17 Thread ddtl
Hello everybody, I want to create a script which reads files in a current directory and renames them according to some scheme. The file names are in Russian - sometimes the names encoded as win-1251, sometimes as koi8-r etc. I want to read in file name and convert it to list for further proces

Re: Method resolution for super(Class, obj).

2006-09-07 Thread ddtl
ed as a result of a call to D().met(), the effect is different from the effect of a call to B().met(). But a documentation of a super() doesn't mention anything like that (or at least I didn't find it), and it seems a significant piece of information. Doesn't it imply that there should be another explanation? ddtl. -- http://mail.python.org/mailman/listinfo/python-list

Method resolution for super(Class, obj).

2006-09-07 Thread ddtl
lookup order (according to a new-style MRO) is B, then C and at last A (because of a diamond inheritance), but only when attribute is not found in B it is looked up in C, and only if it is not found neither in B nor in C it is looked up in A... What is different here? ddtl. -- http://mail.python.org/mailman/listinfo/python-list

Re: re.compile() doesn't work under Windows?

2006-09-01 Thread ddtl
Thanks everybody for pointing out the problem. And indeed, the script was named differently on Linux. ddtl. -- http://mail.python.org/mailman/listinfo/python-list

re.compile() doesn't work under Windows?

2006-08-31 Thread ddtl
ample, the following code works and doesn't cause any errors: import re re.compile('a') What else could cause such an error? ddtl. -- http://mail.python.org/mailman/listinfo/python-list