P
Patrick Useldinger
You don't understand the "global" statement in Python, but you do
understand Software industry in general? Smart...
understand Software industry in general? Smart...
Xah said:The Python doc is relatively lousy, from content organization to the
tech writing quality.
Xah said:The Python doc is relatively lousy, from content organization to the
tech writing quality.
I think i'll just post snippets of my comments as i find them. (and
feel like exposing)
Xah said:I think i'll just post snippets of my comments as i find them. (and
feel like exposing)
[ snipped ]
Or if not a doc patch, how about a limerick?Paul said:Xah said:I think i'll just post...
[ snipped ]
That is a very good analysis. Can you submit a documentation patch? I
would, but I'm too lazy to contribute. That doesn't mean I'm not
thankful for your efforts, though!
p
Martin said:Apologies to these various newsgroups, but I have no idea which one Xah
Lee actually reads or posts from. F'ups set.
example, x < y <= z is equivalent to (x < y) <= z.
Xah said:Very fucking stupid confusional writing.
Xah said:The word “object†has generic English meaning as well might have
very technical meaning in a language. In Python, it does not have very
pronounced technical meaning. For example, there's a chapter in Python
Library Ref titled “2. Built-In Objectsâ€, and under it a section
“2.1 Built-in Functionsâ€. Apparently, functions can't possibly be
meant as a “object†for comparisons.
Martin said:The cross-posting idiot is back. Next he'll be posting his
readings from Richard Burton's _Arabian Nights_.
Xah, for you to think that Python is topical in the newsgroups to
which you posted, you must be sharing Karl Malbrain's cell at the
loony bin.
Apologies to these various newsgroups, but I have no idea which
one Xah Lee actually reads or posts from. F'ups set.
In comp.lang.perl.misc Xah Lee said:The Python doc is relatively lousy, from content organization to the
tech writing quality.
Problem: They all have the same priority (which is higher than that of
the Boolean operations).
However, the ?they? pronoun from the context of previous sentence,
refers to ?the comparison operation?, not ?operator?. So, it
conjures the reader to think about some ?operation precedence?,
which in itself cannot be ruled out as nonsense depending on the
context. Very fucking stupid confusional writing.
And, from pure writing aspect, the sentence ?...(which is ...)? is
some kind of a juvenile latch on. If the author intent to make that
point, say it in its own sentence. e.g. The comparison operators have
higher precedence than boolean operators. It would be better to not
mention this at all. For practical considerations, very rare is the
case of mixing boolean and comparison operators, and if so, parenthesis
are likely used and is indeed a good practice. The proper place for
Problem: Comparisons can be chained arbitrarily; for example, x < y <=
z is equivalent to x < y and y <= z, except that y is evaluated only
once (but in both cases z is not evaluated at all when x < y is found
to be false).
Drop the word ?arbitrarily?. It has no meaning here.
the whole sentence is one fucked up verbiage of pell-mell thinking and
writing. Here's one example of better:
Comparisons can be chained, and is evaluated from left to right. For
example, x < y <= z is equivalent to (x < y) <= z.
With respect to documentation style, it is questionable that this
aspect needs to be mentioned at all. In practice, if programers need to
chain comparisons, they will readily do so. This is not out of ordinary
in imperative languages, and evaluation from left to right is also not
extraordinary to cost a mention.
Problem: <> and != are alternate spellings for the same operator. != is
the preferred spelling; <> is obsolescent
In general, when something is obsolete or might go defunct in the
future, consider not even mentioning that construct. If necessary, add
it in a obscure place, and not adjacent to critical info. In many
places of Python documentation, this is breached.
I'm in fact somewhat surprised by this poor quality in writing. The
more egregious error is the hardware-oriented organization aka
technical drivel.
The Python doc, though relatively incompetent, but the author have
tried the best. This is in contrast to documentations in unix related
things (unix tools, perl, apache, and so on etc), where the writers
have absolutely no sense of clear writing, and in most cases don't give
a damn and delight in drivel thinking of it as literary.
I think that this is an excellent description of your own writing.
Xah said:Better:
there is a Python, pithy
mighty, lissome, and tabby
algorithms it puffs
conundrums it snuffs
and cherished by those savvy
there is a camel, kooky
ugly, petty, ungainly
hacking it supports
TIMTOWTDI it sports
and transports DWIM-wit's fancy
Xah
(e-mail address removed)
∑ http://xahlee.org/PageTwo_dir/more.html
Andras Malatinszky said:These "limericks" just don't work, do they? I mean, the number of
syllables is just way off, and then the rhymes are just plain wrong. By
all means, don't stop trying, but don't quit your day job yet.
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.