-
Content Count
691 -
Joined
-
Last visited
-
Days Won
34
pyscripter last won the day on July 5
pyscripter had the most liked content!
Community Reputation
525 ExcellentTechnical Information
-
Delphi-Version
Delphi 10.3 Rio
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Rtti Question: Is there a way to tell apart class fields from other fields?
pyscripter replied to pyscripter's topic in RTL and Delphi Object Pascal
Never mind. I forgot the answer to an older question. No rtti is generated for class fields and properties, which is a shame. It does for class methods though. -
Rtti Question: Is there a way to tell apart class fields from other fields?
pyscripter posted a topic in RTL and Delphi Object Pascal
TTest = class A: string; class var B: string; end; Is it possible to tell that B is a class field using Rtti? Ditto for properties. And if you get a chance have a look at my other Rtti question. -
Question: Is there a way to tell whether a method is overloaded using rtti?
pyscripter replied to pyscripter's topic in RTL and Delphi Object Pascal
But so do overwritten methods, virtual methods etc. -
Question: Is there a way to tell whether a method is overloaded using rtti?
pyscripter posted a topic in RTL and Delphi Object Pascal
As per title. For instance: A) Second method hides the first ClassA = class procedure Test(I: Integer); end; ClassB = class(classA) procedure Test(S: string); end; B) Second method overloads the first ClassA = class procedure Test(I: Integer); overload; end; ClassB = class(classA) procedure Test(S: string); overload; end; How can you tell the difference with Rtti. GetMethods would show both methods in a similar way. -
This was a python reference counting issue. Fixed in version control. Please try the latest version and confirm the issue is solved.
-
Are you following the instructions at Installation · pyscripter/python4delphi Wiki (github.com)? Specifically, did you build all packages before installing them?
-
Clear the output?
-
Playing with Windows Fibers by emulating Python Generators
pyscripter replied to darnocian's topic in I made this
This project deserves some attention (greenlets-coroutines, generators, channels and more). It is based on fibers. -
Unable to run 2 TPythonEngine per VCL application
pyscripter replied to Dmitry72's topic in Python4Delphi
You cannot load multiple versions of any dll simultaneously in a single process. If you study Demo 33, you will see that this is not necessarily the case. -
Unable to run 2 TPythonEngine per VCL application
pyscripter replied to Dmitry72's topic in Python4Delphi
Why do you conclude that? If you want to run python code in threads, please study Demo 33 and search for related content in this forum (there is lots). Also google for "Global Interpreter Lock". -
Module "sentence_transformers" import in P4D not possible
pyscripter replied to JGMS's topic in Python4Delphi
Running python in threads is not straightforward. Have a look at TPythonThread, Demo 33, and search this forum for relevant discussions. -
Module "sentence_transformers" import in P4D not possible
pyscripter replied to JGMS's topic in Python4Delphi
Then try the following before loading the engine: - Create a TPythonInputOutput - Set the PythonEngine IO property to the TPythonInputOutput - Set the RedirectIO property to True. -
Module "sentence_transformers" import in P4D not possible
pyscripter replied to JGMS's topic in Python4Delphi
Looks like the python module is trying to write to the console. Do you use TPythonGUIInputOutput linked to the PythonEngine? If not try setting UseWindowsConsole to True. -
Module "sentence_transformers" import in P4D not possible
pyscripter replied to JGMS's topic in Python4Delphi
Did you mask exceptions (MaskFPUExceptions · pyscripter/python4delphi Wiki (github.com)? If yes, have you checked sys.version and sys.path to make sure they are the same as in stand alone python? -
You can either install python and PyPDF2 in the target machine or distribute an embedded version of Python with your app. If you follow the second route, have a look at Embarcadero/PythonEnviroments: Components to simplify the deployment for Python environments for Delphi applications using Python4Delphi. (github.com).