F
Fredrik Lundh
Duncan said:But you aren't illustrating that at all.
"But assume that I have some other use case"
</F>
Duncan said:But you aren't illustrating that at all.
Antoon said:No I gave an example, you would implement differently. But even
if you think my example is bad, that would make it a bad argument
for tuples having list methods. That is not the same as being
a good argument against tuples having list methods.
No I gave an example, you would implement differently. But even
if you think my example is bad, that would make it a bad argument
for tuples having list methods. That is not the same as being
a good argument against tuples having list methods.
Christoph said:But the problem is that the tutorials and manuals give the impression
that the difference between lists and tuples is only mutablity versus
immutability.
Maybe I am I lacking the satori of a real Python Zen master?
In this case, I rather agree with the pragmatic responses earlier in
the thread: that it was probably an oversight that tuples lack the
count, index and (arguably) sorted methods, and that patches would
probably be welcome to rectify this state of affairs.
Aahz said:You're wrong. I don't have time/energy to look up the relevant posts,
but Guido has been extremely clear in the past that tuples are *NOT*
going to grow methods.
I use this thread to asking on python conception : why python have so
many builtins ?
I cannot understand why we use a builtins for open a file. Is it a old
decision ? If anyone have a pointer of this or can explain me.
Fredrik said:both the tutorial and the FAQ discusses the difference in terms of use
cases and recommended usage.
I suggest you look up the phrase "bike shed effect". next, go read some
recent PEP:s to see what's really going on in the Python design universe.
Aahz said:Then feel free to submit patches for the docs.
PS: If you want further responses from me, please follow standard Usenet
quoting conventions (like those above).
Fredrik said:- A Foolish Consistency is the Hobgoblin of Little Minds
- Hypergeneralization Sucks
Why should I patch the docs to add things that don't seem plausible for
me? I'd rather change the behavior to be more consistent instead
tweaking the docs to somehow justify the inconsistent behavior.
I am tempted to answer, "A Foolish Consistency is the Hobgoblin of
Little Minds" ;-)
No honestly, it was not in bad faith. I'm just not a regular usenet user
and believed one attribution line per post should suffice. But reading
the conventions I agree that they make sense.
Christoph said:Ok, these are nice aphorisms with some truth. But I had to think of the
German excuse "Wer Ordnung hält ist nur zu Faul zum Suchen - ein Genie
überblickt das Chaos." ("Those who try to keep things tidy are just too
lazy to search for searching - a genius surveys the chaos").
Peter said:Is that really the translation? "too lazy to search for searching"?
What does that mean?
Peter Hansen said:Is that really the translation? "too lazy to search for searching"?
What does that mean?
Christoph said:there should be comma after "ist",
Christoph Zwerschke said:A programming language is not a "work of art". If you are an artist,
you may break symmetry and introduce all kinds of unexpected
effects. Actually, as an artist, you purposfully want to provoke
astonishment. But if I am using a programming language or a user
interface, I don't want to be confronted with inconsistent
behavior. Here, the "principle of least astonishment" is much more
helpful (in my little mind's humble optionion).
This is easy to say, and maybe the docs maintainers are accomodating,Then feel free to submit patches for the docs.
This is easy to say, and maybe the docs maintainers are accomodating,
but I'd be the average reader wouldn't have a concept of how a "patch"
should be prepared.
Tuples don't have list methods, therefore any code which seems to require a
tuple with list methods should make you stop and consider whether your
design is wrong.
Yes, but that's the academic world, and bike sheds are a real-worldChristoph said:Fredrik Lundh schrieb: [...]I suggest you look up the phrase "bike shed effect". next, go read some
recent PEP:s to see what's really going on in the Python design universe.
The bike shed effect is a good explanation and so true. About 8 years
ago when I started to work at my current working place at the university
I suggested that a bike shed should be provided for people like me.
Since then, a lot of million euro projects have been carried out, like
introducing SAP software and new projects are in progress. But my bike
still is getting wet and anyway, it's still bothering me.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.