summaryrefslogtreecommitdiffstats
path: root/Lib/dis.py
Commit message (Expand)AuthorAgeFilesLines
* gh-118335: Configure Tier 2 interpreter at build time (#118339)Guido van Rossum2024-05-011-1/+1
* gh-112383: teach dis how to interpret ENTER_EXECUTOR (#117171)Irit Katriel2024-03-231-5/+24
* gh-112720: make it easier to subclass and modify dis.ArgResolver's jump arg r...Irit Katriel2024-02-161-11/+19
* gh-58032: Do not use argparse.FileType in module CLIs and scripts (GH-113649)Serhiy Storchaka2024-01-101-4/+9
* gh-112720: Move dis's cache output code to the Formatter, labels lookup to th...Irit Katriel2023-12-151-77/+91
* gh-112962: in dis module, put cache information in the Instruction instead of...Irit Katriel2023-12-131-30/+43
* gh-112720: Move instruction formatting from the dis.Instruction class to a ne...Irit Katriel2023-12-091-201/+221
* gh-112620: Fix dis error on show_cache with labels (#112621)Irit Katriel2023-12-031-6/+11
* gh-112355: fix calculation of jump target of ENTER_EXECUTOR in dis (#112377)Irit Katriel2023-11-241-1/+6
* gh-112137: change dis output to show no-lineno as -- instead of None (#112335)Irit Katriel2023-11-231-1/+2
* gh-112137: change dis output to display labels instead of offsets (#112138)Irit Katriel2023-11-221-52/+104
* gh-111969: refactor to make it easier to construct a dis.Instruction object (...Irit Katriel2023-11-121-64/+84
* gh-108826: Document `dis` module CLI and rename `_test` function to `main` (#...Radislav Chugunov2023-10-101-3/+2
* Add --inline-caches flag to dis command line (#110249)Guido van Rossum2023-10-031-1/+3
* gh-107932: Fix dis module for bytecode that does not have an associated sourc...Corvin2023-08-251-16/+37
* gh-105481: generate op IDs from bytecode.c instead of hard coding them in opc...Irit Katriel2023-08-161-5/+5
* GH-105848: Simplify the arrangement of CALL's stack (GH-107788)Brandt Bucher2023-08-091-3/+3
* gh-105481: remove dependency of _inline_cache_entries on opname (#107339)Irit Katriel2023-07-271-5/+8
* GH-104584: Miscellaneous fixes for -Xuops (GH-106908)Brandt Bucher2023-07-201-10/+19
* GH-106008: Make implicit boolean conversions explicit (GH-106003)Brandt Bucher2023-06-291-1/+3
* GH-77273: Better bytecodes for f-strings (GH-6132)Mark Shannon2023-06-141-14/+5
* GH-105678: Split MAKE_FUNCTION into MAKE_FUNCTION and SET_FUNCTION_ATTRIBUTE ...Mark Shannon2023-06-131-4/+4
* gh-102676: Add more convenience properties to `dis.Instruction` (#103969)Tomas R2023-06-111-20/+90
* GH-105229: Replace some superinstructions with single instruction equivalent....Mark Shannon2023-06-051-0/+10
* GH-103963: Make dis display names of args for intrinsics opcodes (#104029)Juhi Chandalia2023-05-031-0/+8
* GH-99944: Make dis display the value of oparg of KW_NAMES (#103856)Juhi Chandalia2023-04-261-3/+2
* gh-87729: add LOAD_SUPER_ATTR instruction for faster super() (#103497)Carl Meyer2023-04-241-0/+5
* gh-102114: Make dis print more concise tracebacks for syntax errors in str in...chgnrdv2023-04-151-3/+3
* gh-103046: Display current line correctly for `dis.disco()` with CACHE entrie...gaogaotiantian2023-03-271-1/+6
* gh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_value,sys.last...Irit Katriel2023-03-181-1/+4
* GH-87849: Simplify stack effect of SEND and specialize it for generators and ...Mark Shannon2023-02-131-4/+5
* gh-101632: Add the new RETURN_CONST opcode (#101633)penguin_wwy2023-02-071-1/+2
* GH-100923: Embed jump mask in `COMPARE_OP` oparg (GH-100924)Mark Shannon2023-01-111-1/+1
* Remove unused variable from `dis._find_imports` (#100396)Nikita Sobolev2022-12-211-1/+0
* GH-98686: Get rid of "adaptive" and "quick" instructions (GH-99182)Brandt Bucher2022-11-091-3/+2
* bpo-40222: Mark exception table function in the dis module as private (#95961)Pablo Galindo Salgado2022-08-141-8/+8
* gh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241)Irit Katriel2022-07-011-1/+1
* GH-91432: Specialize FOR_ITER (GH-91713)Dennis Sweeney2022-06-211-3/+9
* GH-91389: Fix dis position information for CACHEs (GH-93663)Brandt Bucher2022-06-161-10/+22
* GH-93429: Merge `LOAD_METHOD` back into `LOAD_ATTR` (GH-93430)Ken Jin2022-06-141-0/+5
* gh-92932: dis._unpack_opargs should handle EXTENDED_ARG_QUICK (gh-92945)Dong-hee Na2022-06-031-1/+1
* gh-90997: Move `CACHE` handling into `_unpack_opargs` (#92409)Brandt Bucher2022-05-061-7/+9
* gh-90997: Show cached inline values in `dis` output (#92360)Brandt Bucher2022-05-061-5/+19
* gh-91276: revert the increase of dis output width (GH-92126)Irit Katriel2022-05-021-1/+1
* gh-90997: bpo-46841: Disassembly of quickened code (GH-32099)penguin_wwy2022-04-191-36/+63
* gh-91276: make space for longer opcodes in dis output (GH-91444)Irit Katriel2022-04-121-1/+1
* bpo-47120: make POP_JUMP_IF_TRUE/FALSE/NONE/NOT_NONE relative (GH-32400)Irit Katriel2022-04-111-2/+5
* bpo-47120: Replace the JUMP_ABSOLUTE opcode by the relative JUMP_BACKWARD (GH...Irit Katriel2022-03-311-1/+5
* Use low bit of LOAD_GLOBAL's oparg to indicate whether it should push an addi...Mark Shannon2022-03-171-1/+7
* bpo-46841: Use *inline* caching for `BINARY_OP` (GH-31543)Brandt Bucher2022-02-251-24/+41
+ dontRedraw2 = itemPtr->redraw_flags & TK_ITEM_DONT_REDRAW;
if (!(dontRedraw1 && dontRedraw2)) {
Tk_CanvasEventuallyRedraw((Tk_Canvas) canvasPtr,
@@ -1334,7 +1334,7 @@ CanvasWidgetCmd(
}
case CANV_DCHARS: {
int first, last;
- int x1,x2,y1,y2;
+ int x1, x2, y1, y2;
if ((objc != 4) && (objc != 5)) {
Tcl_WrongNumArgs(interp, 2, objv, "tagOrId first ?last?");
@@ -1362,7 +1362,7 @@ CanvasWidgetCmd(
/*
* Redraw both item's old and new areas: it's possible that a
* delete could result in a new area larger than the old area.
- * Except if the insertProc sets the TK_ITEM_DONT_REDRAW flag,
+ * Except if the dCharsProc sets the TK_ITEM_DONT_REDRAW flag,
* nothing more needs to be done.
*/
@@ -1572,7 +1572,7 @@ CanvasWidgetCmd(
}
case CANV_INSERT: {
int beforeThis;
- int x1,x2,y1,y2;
+ int x1, x2, y1, y2;
if (objc != 5) {
Tcl_WrongNumArgs(interp, 2, objv, "tagOrId beforeThis string");
@@ -1800,7 +1800,8 @@ CanvasWidgetCmd(
}
case CANV_RCHARS: {
int first, last;
- int x1,x2,y1,y2;
+ int x1, x2, y1, y2;
+ int dontRedraw1, dontRedraw2;
if (objc != 6) {
Tcl_WrongNumArgs(interp, 2, objv, "tagOrId first last string");
@@ -1831,12 +1832,16 @@ CanvasWidgetCmd(
x1 = itemPtr->x1; y1 = itemPtr->y1;
x2 = itemPtr->x2; y2 = itemPtr->y2;
- itemPtr->redraw_flags &= ~TK_ITEM_DONT_REDRAW;
+ itemPtr->redraw_flags &= ~TK_ITEM_DONT_REDRAW;
ItemDelChars(canvasPtr, itemPtr, first, last);
+ dontRedraw1 = itemPtr->redraw_flags & TK_ITEM_DONT_REDRAW;
+
+ itemPtr->redraw_flags &= ~TK_ITEM_DONT_REDRAW;
ItemInsert(canvasPtr, itemPtr, first, objv[5]);
+ dontRedraw2 = itemPtr->redraw_flags & TK_ITEM_DONT_REDRAW;
- if (!(itemPtr->redraw_flags & TK_ITEM_DONT_REDRAW)) {
+ if (!(dontRedraw1 && dontRedraw2)) {
Tk_CanvasEventuallyRedraw((Tk_Canvas) canvasPtr,
x1, y1, x2, y2);
EventuallyRedrawItem(canvasPtr, itemPtr);
diff --git a/generic/tkFont.c b/generic/tkFont.c
index 485e6a6..4da280f 100644
--- a/generic/tkFont.c
+++ b/generic/tkFont.c
@@ -3146,14 +3146,13 @@ TkIntersectAngledTextLayout(
cy[0] = cy[1] = chunkPtr->y - fontPtr->fm.ascent;
cx[1] = cx[2] = chunkPtr->x + chunkPtr->displayWidth;
cy[2] = cy[3] = chunkPtr->y + fontPtr->fm.descent;
- if ( !PointInQuadrilateral(cx, cy, rx[0], ry[0]) ||
- !PointInQuadrilateral(cx, cy, rx[1], ry[1]) ||
- !PointInQuadrilateral(cx, cy, rx[2], ry[2]) ||
- !PointInQuadrilateral(cx, cy, rx[3], ry[3])) {
- goto notReverseInside;
- }
+ if ( PointInQuadrilateral(cx, cy, rx[0], ry[0]) &&
+ PointInQuadrilateral(cx, cy, rx[1], ry[1]) &&
+ PointInQuadrilateral(cx, cy, rx[2], ry[2]) &&
+ PointInQuadrilateral(cx, cy, rx[3], ry[3])) {
+ return 0;
+ }
}
- return 0;
/*
* If we're overlapping now, we must be partially in and out of at least
@@ -3161,7 +3160,6 @@ TkIntersectAngledTextLayout(
* rectangle that is touching or crossing a line segment of a chunk.
*/
- notReverseInside:
chunkPtr = layoutPtr->chunks;
for (i=0 ; i<layoutPtr->numChunks ; i++,chunkPtr++) {
diff --git a/generic/tkImgListFormat.c b/generic/tkImgListFormat.c
index 20f2c4e..90bd3f8 100644
--- a/generic/tkImgListFormat.c
+++ b/generic/tkImgListFormat.c
@@ -511,7 +511,7 @@ StringReadDef(
!= TCL_OK) {
return TCL_ERROR;
}
- if (width <= 0 || height <= 0 || colCount == 0 || rowCount == 0) {
+ if (width <= 0 || height <= 0 || rowCount == 0 || colCount == 0) {
/*
* No changes with zero sized input or zero sized output region
*/
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c