Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ff62d9

Browse filesBrowse files
committed
Bug TPythonType.ReallocMethods. No need to increase size of PYT_METHOD_BUFFER_INCREASE etc.
1 parent db25e51 commit 5ff62d9
Copy full SHA for 5ff62d9

File tree

2 files changed

+3
-4
lines changed
Filter options

2 files changed

+3
-4
lines changed

‎PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Copy file name to clipboardExpand all lines: PythonForDelphi/Components/Sources/Core/PythonEngine.pas
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ interface
196196
{$IFDEF PYTHON37}
197197
COMPILED_FOR_PYTHON_VERSION_INDEX = 13;
198198
{$ENDIF}
199-
PYT_METHOD_BUFFER_INCREASE = 100;
200-
PYT_MEMBER_BUFFER_INCREASE = 100;
201-
PYT_GETSET_BUFFER_INCREASE = 100;
199+
PYT_METHOD_BUFFER_INCREASE = 10;
200+
PYT_MEMBER_BUFFER_INCREASE = 10;
201+
PYT_GETSET_BUFFER_INCREASE = 10;
202202

203203
METH_VARARGS = $0001;
204204
METH_KEYWORDS = $0002;
@@ -8260,7 +8260,6 @@ procedure TPythonType.ReallocMembers;
82608260
procedure TPythonType.ReallocMethods;
82618261
begin
82628262
inherited;
8263-
exit;
82648263
if tpfBaseType in TypeFlags then
82658264
FType.tp_methods := MethodsData;
82668265
end;
Binary file not shown.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.