Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 862db52

Browse files
committed
Python 3.13 support implemented and tested (preliminary since 3.13 is still in alpha) Since the PyConfig structure is python version dependent it was made opaque.
1 parent a7ea765 commit 862db52

File tree

4 files changed

+109
-156
lines changed

4 files changed

+109
-156
lines changed

Demos/Demo29/Unit1.dfm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ object Form1: TForm1
1010
Font.Height = -11
1111
Font.Name = 'MS Sans Serif'
1212
Font.Style = []
13-
OldCreateOrder = False
1413
DesignSize = (
1514
668
1615
701)
17-
PixelsPerInch = 96
1816
TextHeight = 13
1917
object Image1: TImage
2018
Left = 8

Demos/Demo29/Unit1.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ procedure TForm1.Button2Click(Sender: TObject);
8686
with GetPythonEngine do begin
8787
pargs := MakePyTuple([ExtractPythonObjectFrom(_im)]);
8888
try
89-
presult := PyEval_CallObjectWithKeywords(
89+
presult := PyObject_Call(
9090
ExtractPythonObjectFrom(MainModule.ImageToBytes), pargs, nil);
9191
try
9292
if PyBytes_AsStringAndSize(presult, P, Len) < 0 then begin

0 commit comments

Comments
 (0)