Re: I strongly dislike Python 3

2010-06-27 Thread Malte Dik
quote: > > I didn't notice this level of angst when Python made equally significant > changes going from 1.5 to 2.0... admittedly Python 1.5 code would work > unchanged in 2.0, but the 2.x series introduced MUCH bigger additions to > Python than anything 3.0 and 3.1 have added, and anyone taking a

Re: "Usability, the Soul of Python"

2010-03-30 Thread Malte Dik
> Why is it bad ? > Not working code, examples, that are weird to read, and a lot of text :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Malte Dik
I totally second Alf in this regard. There were times you could report a bug by mail (to Debian e.g.) and it worked perfectly (for me, the reporter). Once I went into the maze of bug reporting software and I almost didn't find back to the problem I tried to fix while stumbling upon the to-be-re

Re: comparing dialects of csv-module

2009-12-20 Thread Malte Dik
quote: d = csv.Sniffer().sniff("1,2,3") def eq(a, b, attributes=[name for name in dir(d) if not > name.startswith("_")]): > ... return all(getattr(a, n, None) == getattr(b, n, None) for n in > attributes) Only change I made is substituting "dir(csv.excel)" or "dir(csv.Dialect)" for

Re: comparing dialects of csv-module

2009-12-19 Thread Malte Dik
quote: > An implementation for the lazy > import csv d = csv.Sniffer().sniff("1,2,3") def eq(a, b, attributes=[name for name in dir(d) if not > name.startswith("_")]): > ... return all(getattr(a, n, None) == getattr(b, n, None) for n in > attributes) > ... Wow, this is awesome.

comparing dialects of csv-module

2009-12-19 Thread Malte Dik
Hi out there! I want to put some intelligence into a csv reading script and in order to do so I want to compare possible different dialects I collect with some random d = csv.Sniffer().sniff("1,2,3,4"), because the csv is kinda dirty. Now sniff() returns a class object and those aren't compara

Re: Get Root access in Linux?

2006-02-23 Thread Malte Dik
quote: > Does anyone know how to call for the root prompt before launching your > app? > Kinda like synaptic or the superuser file manager does? Do you mean something like "kdesu" for KDE? -- http://mail.python.org/mailman/listinfo/python-list

Re: python coding contest

2005-12-26 Thread Malte Dik
Tim Hochberg wrote: > Claudio Grondi wrote: >> Peter Otten wrote: > [SNIP] >>>How good is "good" for >>> >>>import test_vectors >>>seven_seg = test_vectors.test_vectors.get >>> >>>or code using the test suite in general? >>> >>>Peter >>> >> >> This started to remind myself about the story of the