Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sorting howto: Add clarification on < using __lt__ (#92010) | slateny | 2022-04-29 | 1 | -1/+4 |
| | |||||
* | gh-91156: Use `locale.getencoding()` instead of getpreferredencoding (GH-91732) | Inada Naoki | 2022-04-22 | 1 | -2/+1 |
| | | | Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | Remove python2 support in logging cookbook example. (GH-32362) | Mathieu Dupuy | 2022-04-06 | 1 | -8/+1 |
| | |||||
* | bpo-32658: Regex docs: Fix metacharacter reference (GH-32230) | Mike cm | 2022-04-05 | 1 | -1/+1 |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | bpo-14911: Corrected generator.throw() documentation (GH-32207) | Dave Goncalves | 2022-03-31 | 1 | -1/+1 |
| | | | Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> | ||||
* | bpo-47081: Replace "qualifiers" with "quantifiers" in the re module ↵ | Serhiy Storchaka | 2022-03-22 | 1 | -6/+6 |
| | | | | | documentation (GH-32028) It is a more commonly used term. | ||||
* | [doc] Add a note in howto/logging.rst about "do not log to root logger in ↵ | Yuxin Wu | 2022-02-26 | 1 | -0/+7 |
| | | | | libraries" (GH-31271) | ||||
* | Improve discussion about how __getattr__ is invoked. (GH-31435) | Raymond Hettinger | 2022-02-20 | 1 | -9/+7 |
| | |||||
* | bpo-46730: Add more info to @property AttributeError messages (GH-31311) | Alex-Blade | 2022-02-16 | 1 | -4/+4 |
| | | | On `obj.read_only_property = x`, raise `AttributeError: property 'read_only_property' of 'A' object has no setter`. | ||||
* | bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081) | Petr Viktorin | 2022-02-11 | 1 | -3/+3 |
| | | | | | * Make PyType_GetModuleByDef public (remove underscore) Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | Optimize images by IMGbot (GH-21348) | Manish Kumar ⛄ | 2022-02-04 | 1 | -0/+0 |
| | | | Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com> | ||||
* | [doc]: Spotted errors while working on rstlint. (GH-30879) | Julien Palard | 2022-01-27 | 1 | -2/+1 |
| | | | | Also ignored some `make suspicious` false positives while assuring true positives were properly seen by rstlint. | ||||
* | no-issue: Fix documentation typos. (GH-30576) | Piotr Fusik | 2022-01-20 | 1 | -1/+1 |
| | |||||
* | bpo-40066: [Enum] skip failing doc test (GH-30637) | Kumar Aditya | 2022-01-17 | 1 | -146/+126 |
| | |||||
* | Revert "bpo-40066: [Enum] update str() and format() output (GH-30582)" ↵ | Victor Stinner | 2022-01-17 | 1 | -126/+146 |
| | | | | | (GH-30632) This reverts commit acf7403f9baea3ae1119fc6b4a3298522188bf96. | ||||
* | bpo-40066: [Enum] update str() and format() output (GH-30582) | Ethan Furman | 2022-01-16 | 1 | -146/+126 |
| | | | | | | | | | | | | | | | Undo rejected PEP-663 changes: - restore `repr()` to its 3.10 status - restore `str()` to its 3.10 status New changes: - `IntEnum` and `IntFlag` now leave `__str__` as the original `int.__str__` so that str() and format() return the same result - zero-valued flags without a name have a slightly changed repr(), e.g. `repr(Color(0)) == '<Color: 0>'` - update `dir()` for mixed-in types to return all the methods and attributes of the mixed-in type - added `_numeric_repr_` to `Flag` to control display of unnamed values - enums without doc strings have a more comprehensive doc string added - `ReprEnum` added -- inheriting from this makes it so only `__repr__` is replaced, not `__str__` nor `__format__`; `IntEnum`, `IntFlag`, and `StrEnum` all inherit from `ReprEnum` | ||||
* | bpo-45331: [Enum] add rule to docs that mixin type must be subclassable ↵ | Nikita Sobolev | 2022-01-10 | 1 | -4/+7 |
| | | | | (GH-30521) | ||||
* | bpo-45535: Improve output of Enum ``dir()`` (GH-29316) | Alex Waygood | 2021-12-02 | 1 | -3/+4 |
| | | | | | | Modify the ``EnumType.__dir__()`` and ``Enum.__dir__()`` to ensure that user-defined methods and methods inherited from mixin classes always show up in the output of `help()`. This change also makes it easier for IDEs to provide auto-completion. | ||||
* | [Doc] Add info to logging cookbook about running logging socket listeners ↵ | Vinay Sajip | 2021-11-29 | 1 | -0/+22 |
| | | | | i… (GH-29838) | ||||
* | Fix markup buglet in Doc/howto/annotations.rst (#29802) | Guido van Rossum | 2021-11-26 | 1 | -1/+1 |
| | |||||
* | bpo-19072: Classmethod can wrap other classmethod like descriptors (GH-29634) | Raymond Hettinger | 2021-11-19 | 1 | -1/+8 |
| | | | | | | staticmethod() also became callable in Python 3.10. See: b83861f02. | ||||
* | bpo-45740: [Enum] add versionadded markers to docs (GH-29443) | Ethan Furman | 2021-11-06 | 1 | -7/+6 |
| | | | [Enum] add versionadded markers to docs | ||||
* | bpo-44174: [Enum] add reference to name mangling (GH-29116) | Ethan Furman | 2021-10-21 | 1 | -1/+2 |
| | |||||
* | bpo-45320: Remove long-deprecated inspect methods (GH-28618) | Hugo van Kemenade | 2021-10-20 | 1 | -3/+0 |
| | |||||
* | bpo-34804: [doc] Rephrase section on side effects in functional.rst for ↵ | DonnaDia | 2021-10-06 | 1 | -5/+4 |
| | | | | | clarity (GH-27989) Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | Fix 404 link to the pyporting mailing list (GH-27320) | Rohit Nishad | 2021-08-04 | 1 | -3/+3 |
| | | | | Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-44399: Document another example of unexpected behavior. (GH-27407) | Vinay Sajip | 2021-07-28 | 1 | -1/+3 |
| | |||||
* | bpo-44740: Make minor edits to lowercasing "internet" and "web". (GH-27385) | Mariusz Felisiak | 2021-07-27 | 1 | -1/+1 |
| | | | Follow up to 11749e2dc20ad6a76e9a39e948853e89b2b4bbed | ||||
* | bpo-44740: Lowercase "internet" and "web" where appropriate. (#27378) | Mariusz Felisiak | 2021-07-26 | 3 | -3/+3 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | Small text fixes for enum.rst (#27322) | Elliot Waite | 2021-07-26 | 1 | -8/+9 |
| | | | Co-authored-by: Ethan Furman <ethan@stoneleaf.us> | ||||
* | bpo-44399: Update logging cookbook to document patterns to be avoided. ↵ | Vinay Sajip | 2021-07-25 | 1 | -0/+79 |
| | | | | (GH-27348) | ||||
* | Remove effbot urls (GH-26308) | E-Paine | 2021-05-22 | 1 | -5/+1 |
| | |||||
* | Fix error in Enum documentation example code that was referring to the wrong ↵ | krisaoe | 2021-05-04 | 1 | -1/+1 |
| | | | | enum. (#25837) | ||||
* | bpo-43987: Add "Annotations Best Practices" HOWTO doc. (#25746) | larryhastings | 2021-05-02 | 2 | -0/+227 |
| | | | Add "Annotations Best Practices" HOWTO doc. | ||||
* | Use the zero argument form of super() in examples for Python3 docs. (GH-22314) | Andre Delfino | 2021-04-26 | 1 | -6/+6 |
| | |||||
* | Add more tests. Fix code excerpt. (GH-25549) | Raymond Hettinger | 2021-04-23 | 1 | -3/+18 |
| | |||||
* | bpo-43917: Fix pure python equivalent for classmethod (GH-25544) | Raymond Hettinger | 2021-04-23 | 1 | -1/+12 |
| | | | Reported by Yahor Harunovich. | ||||
* | Add doctests (GH-25474) | Raymond Hettinger | 2021-04-19 | 1 | -3/+45 |
| | |||||
* | bpo-43774: Add more links to configure options (GH-25363) | Victor Stinner | 2021-04-12 | 1 | -3/+5 |
| | |||||
* | bpo-43774: Document configure options (GH-25283) | Victor Stinner | 2021-04-08 | 1 | -1/+1 |
| | | | | | | Add Doc/using/configure.rst documentation to document configure, preprocessor, compiler and linker options. Add a new section about the "Python debug build". | ||||
* | Replace broken example code with correct simpler code. (GH-25162) | Raymond Hettinger | 2021-04-03 | 1 | -2/+2 |
| | | | | | | The open() was missing 'w' to indicate it was in a write-mode. Even then, the open().close() operation was distracting because it is an unusual way to "touch" as file. Using os.remove() instead is simpler and less distracting. | ||||
* | Add more tests for the descriptor tutorial (GH-25164) | Raymond Hettinger | 2021-04-03 | 1 | -7/+57 |
| | |||||
* | bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (#25123) | Zackery Spytz | 2021-04-01 | 1 | -1/+1 |
| | | | It should be PyMethod_Type, not Py_MethodType. | ||||
* | bpo-40066: Enum: modify `repr()` and `str()` (GH-22392) | Ethan Furman | 2021-03-31 | 2 | -0/+1417 |
| | | | | | | | | | * Enum: streamline repr() and str(); improve docs - repr() is now ``enum_class.member_name`` - stdlib global enums are ``module_name.member_name`` - str() is now ``member_name`` - add HOW-TO section for ``Enum`` - change main documentation to be an API reference | ||||
* | bpo-43648: Remove redundant datefmt option in logging file config (GH-25051) | Harry | 2021-03-29 | 1 | -1/+0 |
| | | | | | [bpo-43648](): Remove redundant datefmt option in logging file config Automerge-Triggered-By: GH:vsajip | ||||
* | bpo-43427: Separte the method overview from the static method specifics. ↵ | Raymond Hettinger | 2021-03-13 | 1 | -2/+6 |
| | | | | (GH-24787) | ||||
* | Simple typo fix (GH-24448) | Andrew Tennikoff | 2021-02-05 | 1 | -1/+1 |
| | |||||
* | Minor readability improvements. Also note performance impact of __slots__. ↵ | Raymond Hettinger | 2021-02-05 | 1 | -8/+11 |
| | | | | (GH-24456) | ||||
* | bpo-43082: Remove redundant 'the' in Descriptor howto (GH-24394) | diegoe | 2021-02-03 | 1 | -1/+1 |
| | |||||
* | bpo-42048: Clinic Howto: Document AC's defining_class converter (GH-23978) | Erlend Egeberg Aasland | 2021-01-20 | 1 | -0/+62 |
| |