Re: [Pythonmac-SIG] building bundles with setuptools, py2app, 64-bit python 2.6

2008-08-25 Thread Michael VanLandingham
olib/ ptypes.py", line 48, in from_str return cls.from_tuple(struct.unpack(endian + cls._format_, s), **kw) error: unpack requires a string argument of length 8 > /Volumes/max/Sandbox/pyobjc_public/pyobjc/macholib/macholib/ ptypes.py(48)from_str() -> return cls.from_tuple(stru

[Pythonmac-SIG] building bundles with setuptools, py2app, 64-bit python 2.6

2008-08-19 Thread Michael VanLandingham
I recently built a Python64.framework & interpreter from the 2.6 sources (using Ronald O's recently recommended build settings), and then build PyObjC. Because I got an error running PyObjC's build script, (setup tries to pull down an URL that's non-existent: http://pypi.python.org/packages/2.6/s

Re: [Pythonmac-SIG] locating Python.h

2008-05-14 Thread Michael VanLandingham
If you're using Xcode, you just #include in your source file, then add the Python framework to your project (in Xcode, right click on your project file in the "Groups & Files" pane, select "Add->Existing Frameworks..."). You might need to configure the build rules to make sure the right v

[Pythonmac-SIG] giving an embedded interactive interpreter access to objc & app objects

2008-05-10 Thread Michael VanLandingham
Hi, I'm working on a (mostly cocoa) application, and want to embed an interactive interpreter into the app. I think I have that working, at least in a Foundation-based test CLI app. (I'm sure it will be more difficult outside of the terminal environment). However, how do I give the interpreter a

[Pythonmac-SIG] Multi-line history problems in ipython (mac osx)

2008-01-14 Thread Michael VanLandingham
Hi Group, Perhaps this has been covered elsewhere, but I'm seeing problems in iPython (0.8.2, 0.8.3 r2919) on OS X 10.5.1 when using the up arrow to do history completion after multi-line input (a function def, for example). Like this: #define a silly function or any multi-line statement: In [1]

Re: [Pythonmac-SIG] more tab completion issues.

2007-11-01 Thread Michael VanLandingham
add__ > i.__add__ i.__and__ i.__and__ > i.__class__ i.__class__ i.__class__ > i.__class__ i.__cmp__ i.__cmp__ > i.__coerce__i.__coerce__i.__delattr__ > i.__delattr__ i.__delattr__

[Pythonmac-SIG] more tab completion issues.

2007-11-01 Thread Michael VanLandingham
Following along the whole rlcompleter/readline/editline thread, I noticed today that when I do tab completion on a class, I get everything listed twice.Happens in python and ipython. Example: >>> i = int(5) >>> i 5 >>> i.__ Display all 121 possibilities? (y or n) i.__abs__ i.__abs__

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

2007-10-30 Thread Michael VanLandingham
have Leopard running on my system for a few more weeks so I can't help with this. Can anyone play around to see if it is possible to detect which readline is installed? Thanks, Brian On 10/29/07, Michael Vanlandingham <[EMAIL PROTECTED]> wrote: FWIW, this patch works for me. I'm

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

2007-10-29 Thread Michael Vanlandingham
FWIW, this patch works for me. I'm on IPython 0.8.2.svn.r2841. This was driving me nuts for some time -- after all, the _Ruby_ shell (irb) had tab-completion in Leopard, so why shouldn't Python/ iPython? I hadn't found the time to figure out a solution, so hooray for user communities. I s