Skip to content

Fix some deprecation warnings in Doc/conf.py - #9

Merged
methane merged 2 commits into
python:masterfrom
refi64:docfix
Feb 11, 2017
Merged

methane merged 2 commits into
python:masterfrom
refi64:docfix

Conversation

@refi64

@refi64 refi64 commented Feb 11, 2017 •

Copy link
Copy Markdown
Contributor

crosses fingers (My crappy computer never finishes building the docs, so let's see how far Travis goes...)

@vstinner

Copy link
Copy Markdown
Member

I guess that it's related to my bug report http://bugs.python.org/issue29527

See also my PR #7.

@codecov

codecov Bot commented Feb 11, 2017

Copy link
Copy Markdown

Codecov Report

Merging #9 into master will decrease coverage by -0.01%.

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
- Coverage   82.37%   82.37%   -0.01%     
==========================================
  Files        1427     1427              
  Lines      350948   350948              
==========================================
- Hits       289090   289079      -11     
- Misses      61858    61869      +11

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79ab8be...d9c09b5. Read the comment docs.

@methane

methane commented Feb 11, 2017

Copy link
Copy Markdown
Member

Travis uses newest Sphinx.
But docs.python.org seems using sphinx-1.3.3. (see footer in https://docs.python.org/3/).

So changing latex_paper_size should be done after docs.python.org update.

@refi64

refi64 commented Feb 11, 2017

Copy link
Copy Markdown
Contributor Author

@methane latex_paper_size has been depreciated since Sphinx 0.5, when latex_elements was introduced. This shouldn't cause any problems unless someone has updated their Sphinx version since 2008.

@methane methane left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Thanks.

@methane
methane merged commit e7ffb99 into python:master Feb 11, 2017
Mariatta referenced this pull request in Mariatta/cpython Feb 14, 2017
* Fix some deprecation warnings in Doc/conf.py
* Fix an rst error in Misc/NEWS

Contributed by Ryan Gonzalez @kirbyfan64

(cherry picked from commit e7ffb99)
Mariatta referenced this pull request in Mariatta/cpython Feb 14, 2017
* Fix some deprecation warnings in Doc/conf.py
* Fix an rst error in Misc/NEWS

Contributed by Ryan Gonzalez @kirbyfan64

(cherry picked from commit e7ffb99)
Mariatta added a commit that referenced this pull request Feb 14, 2017
* Fix some deprecation warnings in Doc/conf.py
* Fix an rst error in Misc/NEWS

Contributed by Ryan Gonzalez @kirbyfan64

(cherry picked from commit e7ffb99)
Mariatta added a commit that referenced this pull request Feb 14, 2017
* Fix some deprecation warnings in Doc/conf.py
* Fix an rst error in Misc/NEWS

Contributed by Ryan Gonzalez @kirbyfan64

(cherry picked from commit e7ffb99)
native-api pushed a commit to native-api/cpython that referenced this pull request Jun 5, 2018
emmatyping referenced this pull request in emmatyping/cpython Feb 5, 2020
nanjekyejoannah added a commit to nanjekyejoannah/cpython that referenced this pull request Sep 27, 2022
9: Warn for using built-in open r=ltratt a=nanjekyejoannah

Warn for file open. I was struggling to support the generic case assuming io.open doesnt exist.
A warning is simpler to do assuming support for >=2.6. I added notes in the Google doc for this.

Co-authored-by: Joannah Nanjekye <jnanjekye@python.org>
DinoV pushed a commit to DinoV/cpython that referenced this pull request Oct 9, 2025
More PEP-810 compatibility, fix memory leaks and LOAD_ATTR specialization
johnslavik pushed a commit to johnslavik/cpython that referenced this pull request Apr 14, 2026
SonicField added a commit to SonicField/cpython that referenced this pull request Apr 22, 2026
Convert HIRBuilder::emitLoadMethodOrAttrSuper from C++ multi-block
deopt+dispatch to a thin delegation stub. New C function
hir_builder_emit_load_method_or_attr_super_c builds the deopt path
(snapshot+deopt) and fast path (CondBranchCheckType + RefineType +
LoadAttrSuper or LoadMethodSuper+GetSecondOutput).

C++ stub computes nothing — passes oparg + bc_offset.value() through
to C. The C body computes name_idx/load_method/no_args from oparg
(3.11+ packing per theologian audit python#3 — load_method param overwrite),
following the project's 3.12-only convention dropping the pre-3.11
oparg-tuple branch.

Theologian invariant audit (2026-04-22 11:58:52Z) drives the
implementation:

  python#1 phx_frame_state_copy runs BEFORE the 3 pops so deopt-path frame
     preserves PRE-POP stack for interpreter resumption
  python#4 pop order: receiver (TOS), type, global_super
  python#5 push order varies by load_method (1 value vs 2)
  python#8 deopt-path emits go into deopt_tc.block
  python#9 CondBranchCheckType branches; tc.block <- fast_path; emit
     RefineType in-place

Both exit paths phx_frame_state_destroy the deopt_tc to avoid leaking
the heap-allocated stack/locals arrays.

testkeeper pre-commit verify (2026-04-22 12:15:46Z): JIT_BUILD_EXIT=0,
full BUILD_EXIT=0, 7/7 phoenix-jit tests PASS at HEAD+uncommitted.
W26 gate-hardening not triggered (no recent fail).
SonicField added a commit to SonicField/cpython that referenced this pull request Apr 23, 2026
Port HIRBuilder::findExceptionHandler to a pure-C body that scans the
exception_table_ via two new C++-side read bridges (size + entry
field-by-value access). C++ shim preserves caller-contract by
returning &exception_table_[idx] from the matching index.

Per spec §5 Class B-kept disposition for exception_table_ now CLOSED
(read+write both via bridge):
- Batch 1: hir_builder_state_exception_table_push_cpp (write)
- Batch 2: hir_builder_state_exception_table_size_cpp (read meta)
- Batch 2: hir_builder_state_exception_table_entry_cpp (read field)
- Batch 2: hir_builder_state_find_exception_handler_c (C body)

Pattern propagatable to similar Class B-kept members (pending_b2_blocks_,
etc.) in subsequent batches.

Bridges added (3, within W25b ≤5/batch):
  hir_builder_state_exception_table_size_cpp(builder) -> int
  hir_builder_state_exception_table_entry_cpp(builder, idx, *out_5fields)
  hir_builder_state_find_exception_handler_c(state, builder, off, *out_idx) -> int

Cumulative exception_table_ bridge surface = 4 (push + size + entry + find);
all under cumulative budget for the member.

Numstat (vs HEAD c905827):
  Python/jit/hir/builder.cpp           +29 -4  (size + entry impls; shim)
  Python/jit/hir/builder.h             +5  -0  (2 friend decls + comment)
  Python/jit/hir/builder_state_c.h     +27 -0  (3 new bridge decls)
  Python/jit/hir/builder_state_c.c     +19 -0  (find_exception_handler_c)
  scripts/w45_bridge_drift_falsifier.sh +8  -4 (3 new fixtures + non-void
                                                 return-type regex update)
TOTAL: NET +80L (forecast +74L; +6L variance ~8%, within theologian
15% threshold for forecast accuracy).

W45 fixtures: 3 new (state_exception_table_size_cpp,
state_exception_table_entry_cpp, state_find_exception_handler_c) added
per shepard 22:46:33Z same-commit discipline. W45 perl regex updated
to match any return type (was void-only) since size_cpp returns int.
Dry-run: 12/12 fixtures stage cleanly.

Pre-commit compile-check: testkeeper 23:27:11Z BUILD_EXIT=0,
3-test sanity green (partial_conversions + W22 + W44).

W44 gate: PASS.

Authorization: theologian 23:22:59Z + supervisor 23:23:10Z. Per spec
§6 python#9 + amendment 23:09:50Z, per-commit benchmark gate runs post-
commit (geo-mean must stay >=1.0x parity floor).
@chongwick chongwick mentioned this pull request Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

6 participants