New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two typos in the docs #58024
Comments
There's a typo in the docs for cmp_to_key() function. Fix the first sentence "Transform an old-style comparison function to a key-function." to "Transform an old-style comparison function to a key function." (delete the hyphen between words "key" and "function") http://docs.python.org/library/functools.html#functools.cmp_to_key ------------------------------------------------------------------ There's another typo in the docs lurking in http://docs.python.org/library/stdtypes.html#sequence-types-str-unicode-list-tuple-bytearray-buffer-xrange Look for the table with the columns "Operation", "Result", "Notes" (scroll down and you'll find it), and fix the text of the fifth cell under the "Result" column like this: Change that apostrophe into a hyphen, so "i'th" to "i-th". Thanks, Ezio. |
Just as a note: It is not acceptable to be rude on the tracker or |
And not really working, as I get updates for all assignments to docs@python anyway. |
I am deeply and truly sorry. Can we now fix this? |
Removed the hyphen in function keys. |
The Chicago Manual of Style. which is perhaps the mostly widely used general style manual in the US, uses 'th' as a suffix without ' or -. https://en.wiktionary.org/wiki/nth |
Knuth uses that in TAOCP, too. I think with or without italics it's Also the Lisp function is called nth and not n-th, even though in Lisp |
Terry, I agree with you on having *i*th instead of *i*-th. The fact that "i" is written in italics eliminates the need of a hyphen. Justin, can I ask you to make a new patch which fixes "key-function" to "key function" and *i*'th to *i*th This is the last decision. Also, if anyone of you can, please then just incorporate that final patch that Justin will make. Thanks. |
Stop acting like a manager. A while ago a person had his account |
Yeah, I guess I was kind of rude. Sorry about that. I think my proposal is acceptable. What do you think? |
Justin, if you do a new patch, put both changes in one .diff. |
I fixed Justin's patch. Anyone cares to incorporate it? |
Sorry, but the patch introduces two markup errors:
|
Georg, thanks for the tip. Is there any difference in reST between i\ th and i\th ? |
You can check on the devguide the section about building the doc and see it yourself on the generated HTML. While building you will also see all the warnings caused by invalid markup. |
I hope the patch is now good. What do you think? |
Ah, darn it! My last patch is a total garbage. But then an interesting thing happened: I wanted to delete my last patch set, but I got a "ProgrammingError at /review/13816/patchset/4039/delete and got all the Django nitty-gritty info about your server. This is not good because someone can misuse that information. Please fix this. You have "DEBUG = True" set and so all the details of your server is leaked. Better change that to "DEBUG = False" and let the user get a standard 500 error page instead. It says at the bottom: "You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page." |
I wasn't able to remove the patch via "Delete Patch Set" but I did it by clicking on the Unlink button. So the "Delete Patch Set" option has a bug. |
Georg, I object to your comment about *i*th needing to be *i*\ th because currently in the source code we have it written as *i*'th which, by your logic, would need to be written as *i*\ 'th which is not so and is compiled/displayed/whatever perfectly as is, so *i*th would be compiled/displayed/whatever, too. |
This stupid HG is so cryptic. SVN was so easy, now I can't even create a patch. Can you just fix those two typos as "key function" and "*i*th" please? Thank you. |
Fixed. |
Justin: thanks for the patch. |
New changeset a72ca8b23cdf by Georg Brandl in branch '3.2': New changeset f4f9ab2fd51b by Georg Brandl in branch '2.7': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: