Comments (11)
Original comment by pyscripter
on 6 Dec 2009 at 12:16
- Changed state: Started
from python4delphi.
Here's my patch versus 3.32 to add support for Python 2.6, Delphi 2009/2010.
Only
VarPyth, the core and the likes have been ported, I haven't looked at the atom
stuff.
A full archive with the patch and the patched files can be found attached as
well,
might be easier to use.
Original comment by [email protected]
on 7 Jan 2010 at 2:58
Attachments:
from python4delphi.
KOen, thank you for doing the D2009/2010 port.
I have also fixed (hopefully) all the issues with the pydb.pas module so that it
compiles and works correctly in D2010.
Richard
Original comment by [email protected]
on 25 Mar 2010 at 11:14
Attachments:
from python4delphi.
[deleted comment]
from python4delphi.
rjking - should not there be changes to pyDBTables.pas too? to change from
PChar to
PAnsiChar in getAttr and setAttr?
I am using Python 2.6 and Delphi 2010
Original comment by [email protected]
on 6 Jun 2010 at 12:47
from python4delphi.
Another thing in PythonEngine.pas
If DELPHI2010: TheType is avoided entirely thus 'killing' demos 6 and 7 that
use
TheType structure.
The thing is that with Delphi 2010 WITH can not be used with a property name
anymore. The with keyword can no longer be used to provide write-access to
record fields, through the read-only property name. use the field name
instead to provide writeable record properties.
So with Delphi 2010, we can use the provided field name FType instead of
TheType.
I attached PythonEngine.pas with the changes. Search file for mmh.
Removed DEF from TheType property declaration.
Then later if DELPHI2010 use: with FType do
ELSE use: with TheType do
In demos 6 and 7 use the with keyword appropriately. With Delphi 2010 use:
var FType : PyTypeobject
then use:
with FType do
where with TheType appears.
In demos 6 and 7 - they run partially now then I get an exception that I need
to
look at.
Original comment by [email protected]
on 6 Jun 2010 at 10:55
Attachments:
from python4delphi.
[deleted comment]
from python4delphi.
Furthermore (not included in PythonEngine.pas I attached before).
In PythonEngine,pas I moved:
FType : PyTypeObject;
from the Protected section of TPythonType = class(TGetSetContainer)
to the Public section.
This allows TheType to be accessed via FType in Demos 6 and 7. These work now
with no exceptions. Of course declaring FType in demos 6 and 7 is not
necessary and WRONG!
Anyone reads thiese comments anyway? Anyone working on this project?
Original comment by [email protected]
on 12 Jun 2010 at 4:56
from python4delphi.
Fixed in version control.
Updated and tested everything (including demos) except from stuff in
C:\Delphi\progs32PythonForDelphi\Components\Sources\VCL (database stuff) which
I do not use.
Included package for Delphi 2010.
If someone comes along with an update for these 4 units I will update the SVN.
Original comment by pyscripter
on 25 Aug 2010 at 10:32
- Changed state: Fixed
from python4delphi.
I have updated the database stuff for Unicode as well. However there are
various issues when running the related demos. I checked with Delphi 2006 and
the issues existed there as well. If someone is interested in maintaining the
database units in PythonForDelphi\Components\Sources\VCL then I would be happy
to update them. Otherwise you should consider them as deprecated and possibly
unstable. I am not planning to do any work on them.
In any case a better way to wrap the database stuff would be to use the
WrapDelphi appproach.
Original comment by pyscripter
on 26 Aug 2010 at 1:01
from python4delphi.
I have applied a fix by Lee Shaver to the database components and they now seem
to work well with Delphi 2010 and 2006.
Original comment by pyscripter
on 1 Sep 2010 at 6:21
from python4delphi.
Related Issues (20)
- Running Demos from Delphi-12 HOT 1
- Pagecontrol.ActivePage wrapper function causes AV error HOT 8
- "demo33 -- three interpreter" causes the thread to hang. HOT 7
- floating point division by zero HOT 1
- python dll HOT 1
- VarPyIterate raises EPyStopIteration exception with message 'Stop Iteration' HOT 2
- numpy and TTask HOT 8
- Running python code in Delphi threads issue HOT 1
- Pyhton4Delphi and streamlit HOT 3
- How to specify the path to Python libraries? HOT 4
- Run the .py file immediately with parameters HOT 8
- How can I output the results of a py script? HOT 9
- OnSendUniData event does not work HOT 4
- Wrongly throwing an exception from the wrapping object HOT 2
- A little problem HOT 2
- Error in ExtractPythonObjectFrom when creating Enum? HOT 1
- [dcc64 fatal error] PythonVcl.dpk: F2084 Internal Error on RAD Studio 12.1 HOT 6
- Minor: Typo in error message
- Pandas with Python 3.12 HOT 12
- using python4delphi via compiled DLL, avoids reading variables from python to delphi HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python4delphi.