Git Product home page Git Product logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024

Original comment by pyscripter on 6 Dec 2009 at 12:16

  • Changed state: Started

from python4delphi.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
[deleted comment]

from python4delphi.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
[deleted comment]

from python4delphi.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.