Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-10-22 Thread Noah Gift
Brian, Thanks, I was just considering doing this myself. I would be happy to help document this if there is a suitable wiki for it, once a clear path gets figured out. If you do google searches for readline os x, or ipython, etc, you will tons, of people who have had this problem for quite some

Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-10-22 Thread Brian Granger
I am forwarding this to the ipython-dev list. A number of the core ipython dev's use OS X, so we will surely jump on this one as soon as we get our hands on Leopard. This (libedit support) is great news as it has been one of the main problems with the built-in Python on OS X for a long time. Che

Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Bill Janssen
> Unfortunately, it seems to be somewhat complicated, requiring the > checkout and install of cmake, gccxml, and ctypeslib. And now svn.python.org is down, so I can't get it anyway. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mai

Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Bill Janssen
> For cross-platform stuff, ctypes is probably the way to go. But if > you're targeting OS X anyway, the PyObjC approach has worked well for > me. Thanks, but no thanks. I see no need to drag Objective-C (and PyObjC) into this. Anyone generated the CF types for CoreFoundation? Bill ___

Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-10-22 Thread Boyd Waters
Interesting. FWIW I just built IPython against the system python (with libedit, apparently) and it works fine; I have readline-like command navigation, history support, etc. I was not aware of any change from using readline (which is what I used with 10.4.x) On Oct 22, 2007, at 12:35 PM,

Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-10-22 Thread Edward Moy
We did fix a few bugs related to IPython and Leopard's python, so to some degree, it does work (sorry, I don't use IPython myself). There was a problem with IPython explicitly loading ~/.inputrc when readline support is available, which will fail due to the command syntax problem. Just gu

Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-10-22 Thread Noah Gift
Edward, Thanks for the information. Do you know of a way to get IPython to use edline instead? IPython is growing in popularity for Python programmers, and it seems like getting a way forward that works with edline makes sense, or maybe I am wrong and people will need to just manually install rea

Re: [Pythonmac-SIG] Python on Mac Book

2007-10-22 Thread has
Ronald Oussoren wrote: >> Is there a good book out there on programming python on mac ? > > No. There are a number of good books on Python programming in > general and those should get you going on the Python side. For the > most part Python on the mac is just like Python on other unixy > pl

Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-10-22 Thread Edward Moy
On Oct 21, 2007, at 10:51 PM, Noah Gift wrote: I have been getting ready for the official leopard release in a few days, and have been a bit worried about readline support. I forgot what I did to get it to work for IPython, which I absolutely cannot live without anymore. Is there a plan f

Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Dethe Elza
On 10/22/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > CoreFoundation is C, not C++. That said, it'd probably be easier to > > use PyObjC with NSMetadataQuery instead. > > Unfortunately, the Objective-C API is not as functional. Another option is to write the C wrapper in Objective-C (or find a

Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Bill Janssen
Looks like Thomas Heller has a system for doing this: http://starship.python.net/crew/theller/wiki/Code_generation_for_Mac_OS_X_frameworks Unfortunately, it seems to be somewhat complicated, requiring the checkout and install of cmake, gccxml, and ctypeslib. Bill

Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Bill Janssen
> CoreFoundation is C, not C++. That said, it'd probably be easier to > use PyObjC with NSMetadataQuery instead. Unfortunately, the Objective-C API is not as functional. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.or

Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Bill Janssen
> Are you asking about struct definitions and such? For example: Yes, that's right. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Anyone having luck py2app on wxPython (wxGlade)?

2007-10-22 Thread Christopher Barker
I've had no problems using py2app with simpler wxPython programs. Richard Bronosky wrote: > py2app was giving me macholib errors (from strip) > trying to install py2app from source complained of not finding > site-packages/site.py How did you do the source install? For py2app in particular, easy

Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Nicholas Riley
On Mon, Oct 22, 2007 at 08:26:37AM -0700, Bill Janssen wrote: > I'm trying to call the Spotlight system from Python, and I thought I'd > try using the ctypes support in Python 2.5 to use the MDQuery > framework. However, it seems that I'll have to unearth and write > ctypes definitions for a numbe

Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Daniel Miller
AFAIK you don't need to do anything special (i.e. write "ctypes definitions") to call the CF functions with ctypes. Just call them. Here's a snippet of code that I use to open a PDF document and get the number of pages: from ctypes import cdll, byref, c_void_p, c_int, c_uint, c_float, c_d

Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Daniel Miller
Please ignore my previous email. I hope it didn't come across as condescending. Really, I was only trying to help. Unfortunately, I had not read your question thoroughly enough. Bill Janssen wrote: > I'm trying to call the Spotlight system from Python, and I thought I'd > try using the ctypes

[Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Bill Janssen
I'm trying to call the Spotlight system from Python, and I thought I'd try using the ctypes support in Python 2.5 to use the MDQuery framework. However, it seems that I'll have to unearth and write ctypes definitions for a number of Core Foundation C++ types, in order to do that. Has anyone alrea

[Pythonmac-SIG] Safari Bookmarks via Python (or Applescript, etc).

2007-10-22 Thread Schollnick, Benjamin
Has anyone found a reliable method to add Safari bookmarks via Python (or Applescript, etc?) I have used plistlib to modify the Safari Bookmarks plist, but something is ³going wrong². Safari happily uses the bookmarks, but iTunes is not syncing the new bookmarks to the iPodTouch that I am trying t

Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-10-22 Thread skip
Noah> ... if someone has any easy fix to get readline to work, I would Noah> greatly appreciate it. Just install GNU readline and point the build system at it. For example, I have MacPorts (http://www.macports.org/) installed in /opt/local. GNU readline is installed there, and my readli

Re: [Pythonmac-SIG] Python on Mac Book

2007-10-22 Thread Ronald Oussoren
On Monday, October 22, 2007, at 02:56PM, "Michele Hjorleifsson" <[EMAIL PROTECTED]> wrote: >Is there a good book out there on programming python on mac ? No. There are a number of good books on Python programming in general and those should get you going on the Python side. For the most part P

[Pythonmac-SIG] Python on Mac Book

2007-10-22 Thread Michele Hjorleifsson
Is there a good book out there on programming python on mac ? ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] readline support for OS X Leopard

2007-10-22 Thread Noah Gift
I have been getting ready for the official leopard release in a few days, and have been a bit worried about readline support. I forgot what I did to get it to work for IPython, which I absolutely cannot live without anymore. Is there a plan for a Leopard binary that fixes readline, or can I help s