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
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
> 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
> 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
___
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,
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
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
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
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
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
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
> 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
> 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
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
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
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
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
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
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
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
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
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
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
23 matches
Mail list logo