summaryrefslogtreecommitdiffstats
path: root/InternalDocs
Commit message (Collapse)AuthorAgeFilesLines
* gh-119786: Fix typos in `InternalDocs/parser.md` (#128314)Yan Yanchii2024-12-281-5/+5
|
* gh-119786: Fix typos in `InternalDocs/frames.md` (#128275)Yan Yanchii2024-12-261-4/+4
| | | Fix typos in `InternalDocs/frames.md`
* gh-119786: Fix typos in `InternalDocs/interpreter.md` (#128174)Yan Yanchii2024-12-221-4/+4
|
* gh-126491: Revert "GH-126491: Lower heap size limit with faster marking ↵Petr Viktorin2024-12-101-45/+6
| | | | | | | | (GH-127519)" (GH-127770) Revert "GH-126491: Lower heap size limit with faster marking (GH-127519)" This reverts commit 023b7d2141467017abc27de864f3f44677768cb3, which introduced a refleak.
* gh-119786: fix typo in `InternalDocs/garbage_collector.md` (#127687)Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)2024-12-071-1/+1
|
* gh-119786: Add jit.md. Move adaptive.md to a section of interpreter.md. ↵Irit Katriel2024-12-066-187/+322
| | | | (#127175)
* GH-126491: Lower heap size limit with faster marking (GH-127519)Mark Shannon2024-12-061-6/+44
| | | | | | | * Faster marking of reachable objects * Changes calculation of work to do and work done. * Merges transitive closure calculations
* GH-126491: GC: Mark objects reachable from roots before doing cycle ↵Mark Shannon2024-12-021-0/+39
| | | | | | | | | | | | | collection (GH-127110) * Mark almost all reachable objects before doing collection phase * Add stats for objects marked * Visit new frames before each increment * Update docs * Clearer calculation of work to do.
* gh-119786: cleanup internal docs and fix internal links (#127485)Bénédikt Tran2024-12-0111-148/+152
|
* gh-119786: improve internal docs on `co_linetable` (#123198)Bénédikt Tran2024-11-301-26/+61
|
* gh-126882: Fix indentation in code sample block (#126887)Topher Fischer2024-11-271-81/+75
|
* gh-113993: InternalDocs: Add String Interning to README (#127250)Petr Viktorin2024-11-261-0/+2
|
* gh-119786: add code object doc, inline locations.md into it (#126832)Irit Katriel2024-11-225-81/+142
|
* GH-127010: Don't lazily track and untrack dicts (GH-127027)Mark Shannon2024-11-201-25/+16
|
* Revert "GH-126491: GC: Mark objects reachable from roots before doing cycle ↵Hugo van Kemenade2024-11-191-48/+15
| | | | collection (GH-126502)" (#126983)
* GH-126491: GC: Mark objects reachable from roots before doing cycle ↵Mark Shannon2024-11-181-15/+48
| | | | | | | | | | | | | | | | collection (GH-126502) * Mark almost all reachable objects before doing collection phase * Add stats for objects marked * Visit new frames before each increment * Remove lazy dict tracking * Update docs * Clearer calculation of work to do.
* GH-117759: Update GC docs for incremental collection (GH-126695)Mark Shannon2024-11-141-51/+87
|
* gh-126529: Update devguide links to relative filenames in InternalDocs (#126530)Valerii2024-11-072-3/+3
| | | | Update devguide links to relative filenames in InternalDocs/parser.md and InternalDocs/compiler.md.
* gh-126509: Update link to CPython's grammar docs in InternalDocs/parser.md ↵Valerii2024-11-061-1/+1
| | | | (#126510)
* Fix typo in garbage_collector.md (#125556)Marat Sharafutdinov2024-10-241-1/+1
|
* gh-119786: move 'changing grammar' checklist from devguide to InternalDocs ↵Irit Katriel2024-10-232-0/+65
| | | | (#125874)
* gh-119786: [doc] more consistent syntax in InternalDocs (#125815)Irit Katriel2024-10-216-429/+380
|
* gh-119786: move interpreter doc from devguide to InternalDocs (#125715)Irit Katriel2024-10-214-9/+400
|
* gh-125644: Update `locations.md` reference (#125645)Emmanuel Ferdman2024-10-171-1/+1
| | | Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
* gh-119786: fix typo in compiler.md (#125456)Mikhail Efimov2024-10-151-2/+2
|
* gh-119786: [doc] broken link and typo fix in interpreter_definition.md ↵Mikhail Efimov2024-10-141-0/+2
| | | | (#125455)
* gh-119786: Move garbage collection doc from devguide to InternalDocs (#125282)Irit Katriel2024-10-117-0/+598
| | | | | | | | | | | | | | | | | | | Co-Authored-By: Carol Willing carolcode@willingconsulting.com Co-Authored-By: Ezio Melotti ezio.melotti@gmail.com Co-Authored-By: Hugo van Kemenade hugovk@users.noreply.github.com Co-Authored-By: Itamar Ostricher itamarost@gmail.com Co-Authored-By: Jesús Cea jcea@jcea.es Co-Authored-By: Joannah Nanjekye 33177550+nanjekyejoannah@users.noreply.github.com Co-Authored-By: Ned Batchelder ned@nedbatchelder.com Co-Authored-By: Pablo Galindo Salgado Pablogsal@gmail.com Co-Authored-By: Pamela Fox pamela.fox@gmail.com Co-Authored-By: Sam Gross colesbury@gmail.com Co-Authored-By: Stefan Pochmann 609905+pochmann@users.noreply.github.com Co-Authored-By: T. Wouters thomas@python.org Co-Authored-By: q-ata 24601033+q-ata@users.noreply.github.com Co-Authored-By: slateny 46876382+slateny@users.noreply.github.com Co-Authored-By: Борис Верховский boris.verk@gmail.com Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
* gh-119786: Move parser doc from devguide to InternalDocs (#125119)Irit Katriel2024-10-092-0/+896
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-Authored-By: Adam Turner <9087854+aa-turner@users.noreply.github.com> Co-Authored-By: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> Co-Authored-By: Carol Willing <carolcode@willingconsulting.com> Co-Authored-By: Erlend E. Aasland <erlend@python.org> Co-Authored-By: Ezio Melotti <ezio.melotti@gmail.com> Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-Authored-By: Irit Katriel <iritkatriel@yahoo.com> Co-Authored-By: Itamar Ostricher <itamarost@gmail.com> Co-Authored-By: Julien Palard <julien@palard.fr> Co-Authored-By: Mana <potpath@users.noreply.github.com> Co-Authored-By: Muhammad Mahad <mahadpy@gmail.com> Co-Authored-By: Ned Batchelder <ned@nedbatchelder.com> Co-Authored-By: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-Authored-By: slateny <46876382+slateny@users.noreply.github.com> Co-Authored-By: wookie184 <wookie1840@gmail.com>
* gh-119786: Replace a Sphinx role with a link to `Python/errors.c` (#124990)Adam Turner2024-10-051-1/+2
|
* gh-119786: move a few more details on exception handling from devguide to ↵Irit Katriel2024-10-041-1/+11
| | | | InternalDocs (#124989)
* gh-124962: Convert leftover rst to markup in `InternalDocs/compiler.md` ↵isaacjones992024-10-041-8/+8
| | | | | | (#124971) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Fix typo in InternalDocs/string_interning.md (GH-124699)Petr Viktorin2024-09-271-1/+1
|
* InternalDocs: Fix typo in link to instruction_sequence.c inside compiler ↵Francisco Kurucz2024-08-081-1/+1
| | | | docs (#122809)
* gh-122188: Move magic number to its own file (#122243)Michael Droettboom2024-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gh-122188: Move magic number to its own file * Add versionadded directive * Do work in C * Integrate launcher.c * Make _pyc_magic_number private * Remove metadata * Move sys.implementation -> _imp * Modernize comment * Move _RAW_MAGIC_NUMBER to the C side as well * _pyc_magic_number -> pyc_magic_number * Remove unused import * Update docs * Apply suggestions from code review Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> * Fix typo in tests --------- Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* gh-122291: Intern latin-1 one-byte strings at startup (GH-122303)Petr Viktorin2024-07-271-35/+31
|
* gh-119786: fix broken links in docs and comment (#121601)Irit Katriel2024-07-101-2/+2
|
* gh-119786: move frames documentation to InternalDocs and add details (#121009)Irit Katriel2024-06-262-0/+140
|
* gh-113993: Allow interned strings to be mortal, and fix related issues ↵Petr Viktorin2024-06-211-0/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-120520) * Add an InternalDocs file describing how interning should work and how to use it. * Add internal functions to *explicitly* request what kind of interning is done: - `_PyUnicode_InternMortal` - `_PyUnicode_InternImmortal` - `_PyUnicode_InternStatic` * Switch uses of `PyUnicode_InternInPlace` to those. * Disallow using `_Py_SetImmortal` on strings directly. You should use `_PyUnicode_InternImmortal` instead: - Strings should be interned before immortalization, otherwise you're possibly interning a immortalizing copy. - `_Py_SetImmortal` doesn't handle the `SSTATE_INTERNED_MORTAL` to `SSTATE_INTERNED_IMMORTAL` update, and those flags can't be changed in backports, as they are now part of public API and version-specific ABI. * Add private `_only_immortal` argument for `sys.getunicodeinternedsize`, used in refleak test machinery. * Make sure the statically allocated string singletons are unique. This means these sets are now disjoint: - `_Py_ID` - `_Py_STR` (including the empty string) - one-character latin-1 singletons Now, when you intern a singleton, that exact singleton will be interned. * Add a `_Py_LATIN1_CHR` macro, use it instead of `_Py_ID`/`_Py_STR` for one-character latin-1 singletons everywhere (including Clinic). * Intern `_Py_STR` singletons at startup. * For free-threaded builds, intern `_Py_LATIN1_CHR` singletons at startup. * Beef up the tests. Cover internal details (marked with `@cpython_only`). * Add lots of assertions Co-Authored-By: Eric Snow <ericsnowcurrently@gmail.com>
* gh-119786: move locations doc to InternalDocs (#120445)Irit Katriel2024-06-192-2/+73
|
* Fix typos in documentation (#120338)Xie Yanbo2024-06-121-1/+1
|
* gh-119786: copy compiler doc from devguide to InternalDocs and convert to ↵Irit Katriel2024-06-102-0/+653
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | markdown (#120134) * gh-119876: move compiler doc from devguide to InternalDocs Copy of https://github.com/python/devguide/commit/78fc0d7aa9fd0d6733d10c23b178b2a0e2799afc Co-Authored-By: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-Authored-By: Adam Turner <9087854+aa-turner@users.noreply.github.com> Co-Authored-By: Brett Cannon <brett@python.org> Co-Authored-By: Carol Willing <carolcode@willingconsulting.com> Co-Authored-By: Daniel Porteous <danielporteous1@gmail.com> Co-Authored-By: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> Co-Authored-By: Éric Araujo <merwok@netwok.org> Co-Authored-By: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-Authored-By: Ezio Melotti <ezio.melotti@gmail.com> Co-Authored-By: Georg Brandl <georg@python.org> Co-Authored-By: Guido van Rossum <guido@python.org> Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-Authored-By: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-Authored-By: Jeff Allen <ja.py@farowl.co.uk> Co-Authored-By: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com> Co-Authored-By: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-Authored-By: Lincoln <71312724+Lincoln-developer@users.noreply.github.com> Co-Authored-By: Mariatta <Mariatta@users.noreply.github.com> Co-Authored-By: Muhammad Mahad <mahadpy@gmail.com> Co-Authored-By: Ned Deily <nad@acm.org> Co-Authored-By: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> Co-Authored-By: Stéphane Wirtel <stephane@wirtel.be> Co-Authored-By: Suriyaa ✌️️ <isc.suriyaa@gmail.com> Co-Authored-By: Zachary Ware <zachary.ware@gmail.com> Co-Authored-By: psyker156 <242220+psyker156@users.noreply.github.com> Co-Authored-By: slateny <46876382+slateny@users.noreply.github.com> Co-Authored-By: svelankar <17737361+svelankar@users.noreply.github.com> Co-Authored-By: zikcheng <surfingbyte@gmail.com> * convert to markdown * add to index * update more of the out of date stuff --------- Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-authored-by: Daniel Porteous <danielporteous1@gmail.com> Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Georg Brandl <georg@python.org> Co-authored-by: Guido van Rossum <guido@python.org> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Jeff Allen <ja.py@farowl.co.uk> Co-authored-by: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Lincoln <71312724+Lincoln-developer@users.noreply.github.com> Co-authored-by: Mariatta <Mariatta@users.noreply.github.com> Co-authored-by: Muhammad Mahad <mahadpy@gmail.com> Co-authored-by: Ned Deily <nad@acm.org> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Stéphane Wirtel <stephane@wirtel.be> Co-authored-by: Suriyaa ✌️️ <isc.suriyaa@gmail.com> Co-authored-by: Zachary Ware <zachary.ware@gmail.com> Co-authored-by: psyker156 <242220+psyker156@users.noreply.github.com> Co-authored-by: slateny <46876382+slateny@users.noreply.github.com> Co-authored-by: svelankar <17737361+svelankar@users.noreply.github.com> Co-authored-by: zikcheng <surfingbyte@gmail.com>
* gh-119786: move adaptive interpreter doc from Python to InternalsDoc (#120137)Irit Katriel2024-06-062-0/+144
|
* gh-119786: add links to code in exception handling doc (#120077)Irit Katriel2024-06-051-33/+16
|
* gh-119786: move exception handling doc to InternalDocs (#119815)Irit Katriel2024-06-032-0/+205
|
* gh-119786: create folder in cpython repo for internals documentation (#119787)Irit Katriel2024-05-301-0/+12