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)
- Bring back PythonAtom HOT 1
- bug: HOT 1
- bug: pythonXX.dll is in the system32 directroy HOT 1
- p4d is awesome HOT 1
- Does not work in 64-bit environment HOT 4
- Suggestion - make exposing Delphi objects to python painless by utilizing the new RTTI feature in D2010 (and above) HOT 8
- Suggestion - make exposing Delphi objects to python painless by utilizing the new RTTI feature in D2010 (and above) HOT 1
- TPythonEngine.VariantAsPyObject cuts String containing #0 HOT 2
- ERROR IN DEMO 29? HOT 3
- Delphi XE3 / 64 bits? HOT 2
- Running Delphi 2007 with Python 2.7 HOT 3
- Problems after upgrade HOT 2
- Exposing classes and objects to python HOT 1
- AttributeError: NoneType HOT 2
- Development stalled ? HOT 1
- Compilation Error on Delphi 5 HOT 1
- Bug: unneeded line in GUIOutput HOT 2
- Bug: TypeError produced not immediately, but with a next func call HOT 2
- Bug: "input" gives strange result
- P4D not working with Python 3.4 HOT 3
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.