• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Parse Python class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parse Python class


  • Subject: Re: Parse Python class
  • From: Bill Bumgarner <email@hidden>
  • Date: Thu, 28 Jun 2007 07:45:38 -0700

On Jun 28, 2007, at 7:36 AM, Daniel T. Staal wrote:
On Thu, June 28, 2007 10:22 am, Bill Bumgarner said:
On Jun 28, 2007, at 6:23 AM, saj c wrote:
can anyone tell me a way to convert python class to C/C++/ Objective-C

Rewrite it by hand or add C++/Objective-C support to Psyco (http://psyco.sourceforge.net/ ) or one of the other python -> C compiler/converter/tools.

You can also take a look here: http://pyobjc.sourceforge.net/

I'm not a python programmer, so I've never tried this framework, but it
may be useful to you.

Heh -- You'd think I would have mentioned that one as I do have a bit of familiarity with it. ;-)


But, really, PyObjC can't convert a python class to Objective-C. What it can do, though, is provide you with the ability to write a Python based subclass of NSObject that wraps the pure Python classes with an Objective-C friendly API.

Not exactly a conversion, but definitely a viable means of making a Python class available to the Objective-C runtime.

b.bum



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Parse Python class (From: "saj c" <email@hidden>)
 >Re: Parse Python class (From: Bill Bumgarner <email@hidden>)
 >Re: Parse Python class (From: "Daniel T. Staal" <email@hidden>)

  • Prev by Date: Re: window swapping
  • Next by Date: Re: window swapping
  • Previous by thread: Re: Parse Python class
  • Next by thread: window swapping
  • Index(es):
    • Date
    • Thread